-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMainWindow.xaml
More file actions
41 lines (38 loc) · 2.38 KB
/
MainWindow.xaml
File metadata and controls
41 lines (38 loc) · 2.38 KB
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
<Window x:Class="PCRemoteControlServer.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:PCRemoteControlServer"
mc:Ignorable="d"
Title="Remote Control Server" Height="450" Width="800" Background="#FF1F1F1F" Icon="/icon/icon.ico">
<Grid Margin="10">
<Grid.RowDefinitions>
<RowDefinition Height="Auto" />
<RowDefinition Height="Auto" />
<RowDefinition Height="*" />
</Grid.RowDefinitions>
<DockPanel Grid.Row="0" Margin="0,0,0,8">
<StackPanel DockPanel.Dock="Right" Orientation="Horizontal">
<TextBox x:Name="PinTextBox" Width="80" MaxLength="6" FontSize="16" FontFamily="Consolas"
VerticalAlignment="Center" Background="White" IsReadOnly="True" Margin="0,0,4,0" />
<Button x:Name="RandomizePinButton" Content="🔄" ToolTip="Randomize PIN" Width="26" Height="26"
VerticalAlignment="Center" Margin="0,0,8,0" Click="RandomizePinButton_Click" />
<CheckBox x:Name="RequireAuthCheckBox" Content="Require PIN" VerticalAlignment="Center"
Foreground="White" Checked="RequireAuthCheckBox_Changed" Unchecked="RequireAuthCheckBox_Changed" />
</StackPanel>
<StackPanel Orientation="Horizontal">
<TextBlock Text="Port:" VerticalAlignment="Center" Margin="0,0,5,0" Foreground="White" />
<TextBox x:Name="PortTextBox" Width="60" Text="8080" Margin="0,0,10,0" Background="White" />
<Button x:Name="StartStopButton" Width="100" Content="Start" Click="StartStopButton_Click" />
<TextBlock x:Name="StatusTextBlock" Margin="10,0,0,0" VerticalAlignment="Center" Foreground="White" />
</StackPanel>
</DockPanel>
<TextBlock Grid.Row="1" Text="Log:" Margin="0,0,0,4" Foreground="White" />
<TextBox Grid.Row="2"
x:Name="LogTextBox"
IsReadOnly="True"
TextWrapping="Wrap"
VerticalScrollBarVisibility="Auto" Background="#FF333333" Foreground="White" />
</Grid>
</Window>