-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathKinectSettings.xaml
67 lines (67 loc) · 3.98 KB
/
KinectSettings.xaml
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
<UserControl x:Class="Microsoft.Samples.Kinect.WpfViewers.KinectSettings"
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"
mc:Ignorable="d" Name="Root" x:ClassModifier="internal"
d:DesignHeight="180" d:DesignWidth="600">
<StackPanel Orientation="Horizontal" Background="Black" >
<StackPanel.Resources>
<Style TargetType="{x:Type Border}">
<Setter Property="Margin" Value="3" />
<Setter Property="Padding" Value="5" />
<Setter Property="CornerRadius" Value="10" />
<Setter Property="Background" Value="LightSteelBlue" />
</Style>
</StackPanel.Resources>
<!--<Border>
<StackPanel >
<Label FontWeight="Bold">.AudioStream</Label>
</StackPanel>
</Border>-->
<Border>
<StackPanel Margin="2" Grid.Column="1">
<Label FontWeight="Bold" Target="{Binding ElementName=ColorStreamEnable}">._ColorStream</Label>
<CheckBox IsChecked="True" Name="ColorStreamEnable"
Checked="ColorStreamEnabled"
Unchecked="ColorStreamEnabled"
>Enabled</CheckBox>
<ComboBox Name="colorFormats" SelectionChanged="ColorFormatsSelectionChanged" x:FieldModifier="public"/>
</StackPanel>
</Border>
<Border>
<StackPanel>
<Label FontWeight="Bold" Target="{Binding ElementName=DepthStreamEnable}">._DepthStream</Label>
<CheckBox IsChecked="True" Name="DepthStreamEnable"
Checked="DepthStreamEnabled"
Unchecked="DepthStreamEnabled"
>Enabled</CheckBox>
<ComboBox Name="depthFormats" SelectionChanged="DepthFormatsSelectionChanged" x:FieldModifier="public"/>
<StackPanel Orientation="Horizontal" >
<Label Target="{Binding ElementName=depthRanges}" VerticalAlignment="Center">_Range:</Label>
<ComboBox Name="depthRanges" SelectionChanged="DepthRangesSelectionChanged"/>
</StackPanel>
</StackPanel>
</Border>
<Border>
<StackPanel>
<Label FontWeight="Bold" Target="{Binding ElementName=SkeletonStreamEnable}">._SkeletonStream</Label>
<CheckBox Checked="SkeletonsChecked"
Name="SkeletonStreamEnable" Unchecked="SkeletonsChecked">Enabled</CheckBox>
<StackPanel Orientation="Horizontal" HorizontalAlignment="Right" VerticalAlignment="Top" Grid.Row="3" Margin="5">
<Label Target="{Binding ElementName=trackingModes}" >_Tracking Mode:</Label>
<ComboBox Name="trackingModes" VerticalAlignment="Center" SelectionChanged="TrackingModesSelectionChanged" x:FieldModifier="public"/>
</StackPanel>
</StackPanel>
</Border>
<Border>
<StackPanel >
<Label FontWeight="Bold" Target="{Binding ElementName=ElevationAngle}">._ElevationAngle</Label>
<TextBox Text="{Binding ElementName=ElevationAngle,Path=Value}" IsEnabled="False"/>
<Slider Name="ElevationAngle" Orientation="Vertical" Minimum="-27" Maximum="27" Height="100" HorizontalAlignment="Center"
TickFrequency="1" TickPlacement="BottomRight"
ValueChanged="ElevationAngleChanged" IsSnapToTickEnabled="True" />
</StackPanel>
</Border>
</StackPanel>
</UserControl>