-
Notifications
You must be signed in to change notification settings - Fork 8
/
MainWindow.xaml
executable file
·60 lines (57 loc) · 3.56 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
<Window x:Class="TouchInjector.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:controls="clr-namespace:TCD.Controls"
xmlns:properties="clr-namespace:TouchInjector.Properties"
Title="Touch Injector"
Height="350"
Width="271"
ResizeMode="NoResize"
ShowInTaskbar="False"
StateChanged="MainWindow_StateChanged">
<!--Icon="pack://application:,,,/Resources/iconGray.ico"-->
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="Auto" />
<RowDefinition Height="Auto" />
<RowDefinition Height="Auto" />
<RowDefinition Height="*" />
</Grid.RowDefinitions>
<GroupBox Grid.Row="0" Header="TUIO" FontWeight="Bold">
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="Auto" />
<RowDefinition Height="Auto" />
</Grid.RowDefinitions>
<Label Grid.Row="0" FontWeight="Normal" Content="Status" HorizontalAlignment="Left" />
<Label Grid.Row="0" FontWeight="Normal" x:Name="tuioStatus" HorizontalAlignment="Right"/>
<Label Grid.Row="1" FontWeight="Normal" Content="Port" HorizontalAlignment="Left" />
<controls:NumberOnlyTextBox Grid.Row="1" x:Name="portBox" HorizontalAlignment="Right" Width="50" FontWeight="Normal" HorizontalContentAlignment="Center" VerticalContentAlignment="Center" IsEnabled="False" />
</Grid>
</GroupBox>
<GroupBox Grid.Row="1" Header="Touch Injection" FontWeight="Bold">
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="Auto" />
<RowDefinition Height="Auto" />
<RowDefinition Height="Auto" />
</Grid.RowDefinitions>
<Label Grid.Row="0" FontWeight="Normal" Content="Status" HorizontalAlignment="Left" />
<Label Grid.Row="0" FontWeight="Normal" x:Name="touchInjectionStatus" HorizontalAlignment="Right" />
<Label Grid.Row="1" FontWeight="Normal" Content="Targeted screen" HorizontalAlignment="Left" Margin="0" />
<ComboBox x:Name="screenSelector" Grid.Row="1" Margin="0" HorizontalAlignment="Right" FontWeight="Normal" Width="Auto" MinWidth="100" HorizontalContentAlignment="Right" SelectionChanged="screenSelector_SelectionChanged"/>
<CheckBox x:Name="feedbackCheckBox" Margin="5" Grid.Row="2" FontWeight="Normal" Content="show Feedback" IsChecked="False" ToolTip="enable/disable touch feedback" Checked="feedbackCheckBox_Changed" Unchecked="feedbackCheckBox_Changed"/>
</Grid>
</GroupBox>
<GroupBox Grid.Row="2" Header="Application" FontWeight="Bold">
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="Auto" />
<RowDefinition Height="Auto" />
</Grid.RowDefinitions>
<CheckBox x:Name="autostartCheckBox" Margin="5" FontWeight="Normal" Content="Start with Windows" IsChecked="False" ToolTip="The app will be started by a scheduled task - you can configure it using the administrative tools." />
</Grid>
</GroupBox>
<Button x:Name="startStopButton" Grid.Row="3" Content="stop" Margin="15" HorizontalAlignment="Center" VerticalAlignment="Bottom" Width="75" Click="StartStop_Click" />
</Grid>
</Window>