当我尝试构建我的应用程序时出现此错误消息,但它仍然找到KinectSensorChooserUI元素。我正在使用Kinect for Windows v1传感器和SDK 1.8
<Window x:Class="Jump.Desktop.View.GameWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:k="http://schemas.microsoft.com/kinect/2013"
WindowStartupLocation="CenterScreen"
WindowStyle="None"
ResizeMode="NoResize"
WindowState="Maximized"
Title="Jump" Height="300" Width="300">
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="Auto" />
<RowDefinition Height="*" />
<RowDefinition Height="Auto" />
</Grid.RowDefinitions>
<StackPanel Orientation="Horizontal" Margin="10" Grid.Row="0">
<TextBlock Text="{Binding ElapsedTime}"></TextBlock>
</StackPanel>
<k:KinectSensorChooserUI HorizontalAlignment="Center" VerticalAlignment="Top" Name="sensorChooserUi" />
<k:KinectRegion x:Name="kinectRegion" Grid.Row="1">
<Grid>
</Grid>
</k:KinectRegion>
</Grid>
</Window>
答案 0 :(得分:0)
我刚遇到这个问题,你必须下载并安装Kinect Toolkit(这是在安装SDK之后)
https://www.microsoft.com/en-us/download/details.aspx?id=40276
然后您必须在您的项目中添加对Microsoft.Kinect.Toolkit的引用,如果您无法在“程序集”选项卡中找到它,请手动浏览它,它应该位于此默认位置
C:\ Program Files \ Microsoft SDKs \ Kinect \ Developer Toolkit v1.7.0 \ Assemblies
答案 1 :(得分:0)
实际上你需要添加Microsoft.Kinect.Toolkit.Controls