C# Kinect开始后未显示图像
我正在尝试使用kinect 2.0和更新的SDK将图像覆盖在kinect视频提要上。我通过VisualStudio将图像导入到我的资源文件夹中,并在XAML builder中显示该图像,但当程序开始时,除了视频外,什么也不显示。任何帮助都将不胜感激 这是我的用于referenece的XAML代码C# Kinect开始后未显示图像,c#,wpf,xaml,kinect,kinect-sdk,C#,Wpf,Xaml,Kinect,Kinect Sdk,我正在尝试使用kinect 2.0和更新的SDK将图像覆盖在kinect视频提要上。我通过VisualStudio将图像导入到我的资源文件夹中,并在XAML builder中显示该图像,但当程序开始时,除了视频外,什么也不显示。任何帮助都将不胜感激 这是我的用于referenece的XAML代码 <Window x:Class="Bitness.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/prese
<Window x:Class="Bitness.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="MainWindow" Height="600" Width="700"
Loaded="MainWindow_Loaded"
Closing="MainWindow_Closing">
<Window.Resources>
<SolidColorBrush x:Key="MediumGreyBrush" Color="#ff6e6e6e" />
<SolidColorBrush x:Key="KinectPurpleBrush" Color="#ff52318f" />
<SolidColorBrush x:Key="KinectBlueBrush" Color="#ff00BCF2" />
</Window.Resources>
<Grid>
<Canvas>
<Image Source="Resources/Ball.png" Canvas.Left="20" Canvas.Top="200" />
</Canvas>
<Viewbox Grid.Row="1" HorizontalAlignment="Center">
<Grid Name="CompositeImage">
<Image Source="{Binding ImageSource}" Stretch="UniformToFill" />
<Image Source="{Binding BodySource}" Stretch="UniformToFill" />
</Grid>
</Viewbox>
<StatusBar HorizontalAlignment="Stretch" Name="statusBar" VerticalAlignment="Bottom" Background="White" Foreground="{StaticResource MediumGreyBrush}">
<StatusBarItem Content="{Binding StatusText}" />
</StatusBar>
</Grid>
带有Ball.png图像的画布位于Viewbox下方,这是由于它们在XAML中的显示顺序。更改它们的顺序,或者设置它们的ZIndex属性,或者在网格中定义行。当前Grid.Row=1无效,因为没有行定义。