This repository has been archived by the owner on Jun 5, 2023. It is now read-only.
/
MainWindow.xaml
61 lines (55 loc) · 3.29 KB
/
MainWindow.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
<Window x:Class="GesturalMusic.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="Gestural Music"
Height="800" Width="1100"
Loaded="MainWindow_Loaded"
Closing="MainWindow_Closing">
<Window.Resources>
<SolidColorBrush x:Key="MediumGreyBrush" Color="#ff6e6e6e" />
</Window.Resources>
<Grid Margin="10 0 10 0">
<Grid.RowDefinitions>
<RowDefinition Height="Auto" />
<RowDefinition Height="*" />
<RowDefinition Height="Auto" />
</Grid.RowDefinitions>
<TextBlock Grid.Row="0" Margin="0 0 -1 0" HorizontalAlignment="Center" VerticalAlignment="Bottom" Foreground="{StaticResource MediumGreyBrush}" FontFamily="Segoe UI" FontSize="18">GesturalMusic</TextBlock>
<GroupBox Header="Number of Partitions" Grid.Row="1" HorizontalAlignment="Left" Margin="0,0,0,636" Width="148">
<StackPanel Margin="0,0,-0.2,-0.4" Name="PartitionRadio">
<RadioButton Name="onePartition" Content="One" IsChecked="True" Checked="SetNumPartitions"/>
<RadioButton Name="twoPartitionLR" Content="Two (L/R)" Checked="SetNumPartitions"/>
<RadioButton Name="twoPartitionFB" Content="Two (F/B)" Checked="SetNumPartitions"/>
<RadioButton Name="quadPartition" Content="Four" Checked="SetNumPartitions"/>
</StackPanel>
</GroupBox>
<GroupBox Header="Set Recipient" Grid.Row="1" HorizontalAlignment="Left" Margin="0,104,0,550" Width="148">
<StackPanel Margin="0,0,-0.2,-0.4">
<TextBox x:Name="RecipientIpAddress" TextWrapping="Wrap" Text="127.0.0.1" />
<Button x:Name="SetRecipientButton" Content="Set!" Click="SetRecipient"/>
</StackPanel>
</GroupBox>
<Viewbox Grid.Row="1" HorizontalAlignment="Right">
<Image Source="{Binding ImageSource}" Stretch="UniformToFill" />
</Viewbox>
<StatusBar Grid.Row="2" HorizontalAlignment="Stretch" Name="statusBar" VerticalAlignment="Bottom" Background="White" Foreground="{StaticResource MediumGreyBrush}">
<StatusBarItem />
</StatusBar>
<GroupBox Header="Set Mode" Grid.Row="1" HorizontalAlignment="Left" Margin="0,194,0,476" Width="148">
<StackPanel Margin="0,0,-0.2,-0.4">
<RadioButton x:Name="AdvancedMode" Content="Advanced Mode" IsChecked="True" Checked="SetMode"/>
<RadioButton x:Name="DemoMode" Content="Demo Mode" Checked="SetMode"/>
</StackPanel>
</GroupBox>
<!--GroupBox Header="Send Message" Grid.Row="1" HorizontalAlignment="Left" Margin="0,104,0,518" Width="129">
<StackPanel Margin="0,0,-0.2,-0.4">
<Button x:Name="SendMessageButton" Content="Send Message" Click="SendMessage"/>
</StackPanel>
</-->
<GroupBox Header="Launch Projector Screen" Grid.Row="1" HorizontalAlignment="Left" Margin="0,268,0,354" Width="148">
<StackPanel Margin="0,0,-0.2,-0.4">
<Button x:Name="LaunchProjectorScreenButton" Content="Launch Projector Screen" Click="LaunchProjectorScreen"/>
</StackPanel>
</GroupBox>
</Grid>
</Window>