You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

36 lines
1.7 KiB

<Window x:Class="WpfApp.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:local="clr-namespace:WpfApp"
mc:Ignorable="d"
Title="Interface Kinect" Height="450" Width="800">
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="*"/>
</Grid.RowDefinitions>
<StackPanel Grid.Row="0" Orientation="Horizontal" VerticalAlignment="Top">
<Ellipse Width="20" Height="20" Fill="{Binding CurrentKinectStream.KinectManager.KinectStatusColor}" />
<TextBlock Text="{Binding CurrentKinectStream.KinectManager.StatusText}" VerticalAlignment="Center" Margin="5,0,0,0"/>
</StackPanel>
<StackPanel Grid.Row="1" Orientation="Horizontal" VerticalAlignment="Top">
<Button Content="Color" Margin="5" Click="ToColorImageStream"/>
<Button Content="Depth" Margin="5" Click="ToDepthImageStream"/>
<Button Content="Infrared" Margin="5" Click="ToInfraredImageStream"/>
<Button Content="Body" Margin="5" Click="ToBodyImageStream"/>
<Button Content="BodyAndColor" Margin="5" Click="ToColorAndBodyImageStream"/>
</StackPanel>
<Viewbox Grid.Row="2" Stretch="Uniform">
<Grid>
<Image Grid.Row="2" Source="{Binding CurrentKinectStream.Bitmap}" />
<Canvas Grid.Row="2" x:Name="skeletonCanvas" />
</Grid>
</Viewbox>
</Grid>
</Window>