-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMainWindow.xaml
More file actions
36 lines (33 loc) · 2.41 KB
/
MainWindow.xaml
File metadata and controls
36 lines (33 loc) · 2.41 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
<Window x:Class="Microsoft.Samples.Kinect.DiscreteGestureBasics.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:local="clr-namespace:Microsoft.Samples.Kinect.DiscreteGestureBasics"
Title="39C3 - Habitat Augmented Virtuality Experiment One"
Height="650" Width="750"
Closing="MainWindow_Closing">
<Window.Resources>
<SolidColorBrush x:Key="MediumGreyBrush" Color="#ff6e6e6e" />
<SolidColorBrush x:Key="KinectPurpleBrush" Color="#ff52318f" />
<SolidColorBrush x:Key="KinectBlueBrush" Color="#ff00BCF2" />
<DataTemplate DataType="{x:Type local:GestureResultView}">
<Grid Width="Auto" Margin="5" Background="{Binding BodyColor}">
<Grid.RowDefinitions>
<RowDefinition Height="Auto"/>
<RowDefinition />
<RowDefinition Height="Auto" />
<RowDefinition Height="Auto" />
</Grid.RowDefinitions>
<TextBlock HorizontalAlignment="Stretch" Text="{Binding BodyIndex, StringFormat='Body Index: {0}'}" FontSize="14" FontFamily="Segoe UI" FontWeight="SemiBold" Margin="5"/>
<Image Source="{Binding ImageSource}" Stretch="Uniform" Grid.Row="1" Margin="5"/>
<TextBlock Text="{Binding Detected, StringFormat='Seated: {0}'}" FontSize="18" FontFamily="Segoe UI" FontWeight="SemiBold" Grid.Row="2" Margin="5 5 0 0"/>
<TextBlock Text="{Binding Confidence, StringFormat='Confidence: {0}'}" FontSize="18" FontFamily="Segoe UI" FontWeight="SemiBold" Grid.Row="3" Margin="5 0 0 0"/>
</Grid>
</DataTemplate>
</Window.Resources>
<StackPanel Orientation="Vertical" Grid.Column="0" Grid.RowSpan="1" Margin="0 0 0 0" HorizontalAlignment="Center" VerticalAlignment="Center">
<Viewbox x:Name="kinectBodyViewbox">
<Image Source="{Binding ImageSource}" Stretch="UniformToFill" />
</Viewbox>
<!--TextBlock Text="This program can track up to 6 people simultaneously. Stand in front of the sensor to get tracked. Sit down to trigger the 'Seated' gesture." TextWrapping="Wrap" Margin="5 10 5 5" Foreground="{StaticResource MediumGreyBrush}" FontFamily="Segoe UI" FontSize="14"/-->
</StackPanel>
</Window>