我試圖運行Kinect Explorer,我可以在之前運行它。但它突然未能展示整個Microsoft.Samples.Kinect.WpfViewers項目的設計師。另一個可以打開很好。這裏的標記無法創建「KinectViewer」實例
<l:KinectViewer x:Class="Microsoft.Samples.Kinect.WpfViewers.KinectDepthViewer"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:l="clr-namespace:Microsoft.Samples.Kinect.WpfViewers"
mc:Ignorable="d"
Loaded="KinectViewer_Loaded"
Unloaded="KinectViewer_Unloaded"
d:DesignHeight="300" d:DesignWidth="300">
<Image Name="kinectDepthImage" RenderTransformOrigin=".5,.5"
RenderTransform="{Binding HorizontalScaleTransform,
RelativeSource={RelativeSource Mode=FindAncestor, AncestorType={x:Type l:KinectViewer}}}" SnapsToDevicePixels="True">
</Image>
我得到的錯誤
在無法創建 「KinectViewer」
和設計師裏面,
的實例Microsoft.Visu alStudio.DesignTools.Platform.InstanceBuilders.InstanceBuilderOperations.InstantiateType(類型類型,布爾supportInternal) 在Microsoft.VisualStudio.DesignTools.Platform.InstanceBuilders.ClrObjectInstanceBuilder.InstantiateTargetType(IInstanceBuilderContext上下文,ViewNode viewNode) 在Microsoft.VisualStudio.DesignTools.Platform。 InstanceBuilders.ClrObjectInstanceBuilder.Instantiate(IInstanceBuilderContext上下文,viewNode viewNode) 在Microsoft.VisualStudio.DesignTools.WpfDesigner.InstanceBuilders.FrameworkElementInstanceBuilder.Instantiate(IInstanceBuilderContext上下文,viewNode viewNode) 在Microsoft.VisualStudio.DesignTools.WpfDesigner.InstanceBuilders.UserControlInstanceBuilder.Instantiate( IInstanceBuilderContext上下文,ViewNode viewNode) at Microsoft.VisualStudio.DesignTools.Platform.InstanceBuilders.ViewNodeM anager.CreateInstance(IInstanceBuilder建設者,ViewNode viewNode)
項目文件here
任何幫助深表感謝。謝謝!