1 | <Window x:Class="Microsoft.Samples.Kinect.WebserverBasics.MainWindow"
|
---|
2 | xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
---|
3 | xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
---|
4 | xmlns:tk="clr-namespace:Microsoft.Kinect.Toolkit;assembly=Microsoft.Kinect.Toolkit"
|
---|
5 | xmlns:local="clr-namespace:Microsoft.Samples.Kinect.WebserverBasics"
|
---|
6 | Title="Playing in the Street" SizeToContent="Height" Width="800" FontSize="16"
|
---|
7 | Loaded="WindowLoaded" Closing="WindowClosing">
|
---|
8 |
|
---|
9 | <Window.Resources>
|
---|
10 | <local:InverseBooleanConverter x:Key="inverseBooleanConverter"/>
|
---|
11 | </Window.Resources>
|
---|
12 |
|
---|
13 | <Grid>
|
---|
14 | <Grid.ColumnDefinitions>
|
---|
15 | <ColumnDefinition Width="Auto"/>
|
---|
16 | <ColumnDefinition Width="Auto"/>
|
---|
17 | <ColumnDefinition Width="33*"/>
|
---|
18 | <ColumnDefinition Width="284*"/>
|
---|
19 | </Grid.ColumnDefinitions>
|
---|
20 | <Grid.RowDefinitions>
|
---|
21 | <RowDefinition Height="Auto"/>
|
---|
22 | <RowDefinition Height="*"/>
|
---|
23 | </Grid.RowDefinitions>
|
---|
24 | <tk:KinectSensorChooserUI Grid.Row="0" Grid.Column="0" KinectSensorChooser="{Binding KinectSensorChooser}" HorizontalAlignment="Left" IsListening="False" Margin="5,5,0,241.6"/>
|
---|
25 | <DockPanel Grid.Row="0" Grid.Column="1" Margin="5.4,5,5,241.6">
|
---|
26 | <Button DockPanel.Dock="Top" Height="50" Width="100" Content="Start"
|
---|
27 | IsEnabled="{Binding Path=IsStarted, Converter={StaticResource inverseBooleanConverter}}" Click="StartButtonOnClick"/>
|
---|
28 | <Button DockPanel.Dock="Top" Height="50" Width="100" Content="Stop"
|
---|
29 | IsEnabled="{Binding Path=IsStarted}" Click="StopButtonOnClick"/>
|
---|
30 | </DockPanel>
|
---|
31 | <StackPanel Grid.Row="0" Grid.Column="2" Margin="10,0,9.6,236.6" Grid.ColumnSpan="2">
|
---|
32 | <TextBlock x:Name="OpenBrowserText" Margin="0 5">
|
---|
33 | <Hyperlink FontSize="16" x:Name="UriLink" Click="UriLinkOnClick">Click to launch Playing in the Street in your default browser</Hyperlink>
|
---|
34 | <LineBreak/>
|
---|
35 | <!--
|
---|
36 | <Run FontSize="11">See documentation for list of supported browsers</Run>
|
---|
37 | -->
|
---|
38 | </TextBlock>
|
---|
39 | <TextBlock Visibility="Collapsed" x:Name="ServingFilesText" Margin="0 5" FontSize="11" TextWrapping="WrapWithOverflow">
|
---|
40 | <Run FontSize="14" FontWeight="Bold">Serving files from:</Run>
|
---|
41 | <Run x:Name="RootDirectoryTextRun"/>
|
---|
42 | <LineBreak/>
|
---|
43 | Edit FileRootDirectory property in configuration file (.exe.config) and restart server application to serve files from a different directory.
|
---|
44 | </TextBlock>
|
---|
45 | <TextBlock x:Name="NotServingFilesText" Margin="0 5" FontSize="14" FontWeight="Bold" Visibility="Collapsed">
|
---|
46 | Not Serving Files
|
---|
47 | </TextBlock>
|
---|
48 | </StackPanel>
|
---|
49 | <Expander Grid.Column="0" Grid.ColumnSpan="4" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" VerticalContentAlignment="Stretch" Margin="5,109,4.6,11.6"
|
---|
50 | ExpandDirection="Down" IsExpanded="True"
|
---|
51 | Header="Errors:" FontWeight="Black">
|
---|
52 | <TextBox IsReadOnly="True" VerticalScrollBarVisibility="Visible" HorizontalScrollBarVisibility="Auto" MinHeight="200"
|
---|
53 | FontSize="10" Text="{Binding Path=ErrorText}"/>
|
---|
54 | </Expander>
|
---|
55 | </Grid>
|
---|
56 | </Window>
|
---|