This repository has been archived by the owner on Dec 29, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathMainWindow.xaml
58 lines (55 loc) · 3.86 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
<Window x:Class="WMR_USB_Controller.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:local="clr-namespace:WMR_USB_Controller"
mc:Ignorable="d"
Title="WMR USB Controller"
Height="512"
Width="512"
Icon="WMR USB Controller Main Icon.ico">
<Grid>
<TabControl>
<TabItem Header="WMR status" FontSize="24">
<TabItem.Content>
<StackPanel Background="#FF5B5B5B">
<ToggleButton Name="WmrStatusToggle" Content="Disable WMR device" FontSize="24" Width="256" Height="124" Margin="25" Checked="DisableWmrDeviceAction"
Unchecked="EnableWmrDeviceAction" HorizontalAlignment="Center" />
<Button FontSize="24" Width="256" Height="124" Margin="0, 0, 0, 25" Click="StartWMR" ClickMode="Press" HorizontalAlignment="Center">
<TextBlock TextWrapping="Wrap" TextAlignment="Center">Start WMR with specified screen resolution</TextBlock>
</Button>
<CheckBox Name="VirtualScreensCheckbox" Content="Disable virtual screens" FontSize="14" Margin="10" HorizontalAlignment="Center" Checked="DisableVirtualScreens" Unchecked="EnableVirtualScreens">
<CheckBox.LayoutTransform>
<ScaleTransform ScaleX="2" ScaleY="2" />
</CheckBox.LayoutTransform>
</CheckBox>
<CheckBox Name="AutostartCheckbox" Click="SwitchAutostartStatus" Content="Add to autostart" FontSize="14" Margin="10" HorizontalAlignment="Center">
<CheckBox.LayoutTransform>
<ScaleTransform ScaleX="2" ScaleY="2" />
</CheckBox.LayoutTransform>
</CheckBox>
</StackPanel>
</TabItem.Content>
</TabItem>
<TabItem Header="WMR sleep mode" FontSize="24">
<TabItem.Content>
<StackPanel Background="#FF5B5B5B">
<Label Content="Current sleep delay in minutes" Margin="0, 15, 0 , 5" HorizontalAlignment="Center"></Label>
<Label Name="SleepDelayValue" HorizontalAlignment="Center"></Label>
<Label Content="Set new sleep delay value in minutes" Margin="0, 10, 0 , 5" HorizontalAlignment="Center"></Label>
<TextBox Name="SleepDelayInputField" Width="300" Height="35" KeyUp="TrySetNewSleepDelayValue" PreviewTextInput="NumberValidationTextBox" HorizontalAlignment="Center"></TextBox>
<Label Content="Status of screensaver mode" Margin="0, 15, 0 ,5" HorizontalAlignment="Center"></Label>
<Label Name="ScreensaverModeStatus" HorizontalAlignment="Center"></Label>
<CheckBox Name="ScreensaverModeStatusCheckbox" Checked="EnableScreensaverMode" Unchecked="DisableScreensaverMode" Content="Enable screensaver mode" FontSize="14" HorizontalAlignment="Center">
<CheckBox.LayoutTransform>
<ScaleTransform ScaleX="2" ScaleY="2" />
</CheckBox.LayoutTransform>
</CheckBox>
<Button Content="Reset sleep mode changes" Width="300" Height="50" Margin="25" Click="ResetSleepModeValues"></Button>
</StackPanel>
</TabItem.Content>
</TabItem>
</TabControl>
</Grid>
</Window>