-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMainWindow.xaml
54 lines (47 loc) · 2.02 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
<Window x:Class="AutoClicker.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:md="http://materialdesigninxaml.net/winfx/xaml/themes"
Title="AutoClicker"
MinWidth="250"
MinHeight="100"
SizeToContent="WidthAndHeight"
Background="{DynamicResource MaterialDesignPaper}"
TextElement.Foreground="{DynamicResource MaterialDesignBody}"
TextElement.FontWeight="Light"
TextElement.FontSize="14"
FontFamily="{md:MaterialDesignFont}">
<Grid Margin="10">
<Grid.Resources>
<Style TargetType="Border">
<Setter Property="Padding" Value="5,5,5,5" />
</Style>
</Grid.Resources>
<Grid.ColumnDefinitions>
<ColumnDefinition />
<ColumnDefinition />
<ColumnDefinition />
<ColumnDefinition />
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition />
<RowDefinition />
</Grid.RowDefinitions>
<Border Grid.Row="0" Grid.Column="0" Grid.ColumnSpan="2">
<ToggleButton Name="ToggleButtonAutoClick" Checked="ToggleButtonAutoClick_Checked"
Unchecked="ToggleButtonAutoClick_UnChecked" />
</Border>
<Border Grid.Row="0" Grid.Column="2">
<TextBox Name="TextBoxInterval" PreviewTextInput="TextBoxInterval_OnPreviewTextInput"
HorizontalContentAlignment="Center" VerticalContentAlignment="Center">
1
</TextBox>
</Border>
<Border Grid.Row="0" Grid.Column="3">
<Label VerticalContentAlignment="Center">ms</Label>
</Border>
<Border Grid.Row="1" Grid.Column="0" Grid.ColumnSpan="4">
<Label VerticalContentAlignment="Center" HorizontalAlignment="Center" FontSize="11">Press F8 to toggle the AutoClicker</Label>
</Border>
</Grid>
</Window>