-
Notifications
You must be signed in to change notification settings - Fork 281
Expand file tree
/
Copy pathWindowButtonMapping.xaml
More file actions
93 lines (90 loc) · 3.32 KB
/
Copy pathWindowButtonMapping.xaml
File metadata and controls
93 lines (90 loc) · 3.32 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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
<Window x:Class="TabletDriverGUI.WindowButtonMapping"
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:TabletDriverGUI"
mc:Ignorable="d"
Title="Button Mapping" Height="350" Width="350"
SizeToContent="WidthAndHeight">
<Window.Resources>
<Style TargetType="GroupBox">
<Setter Property="HeaderTemplate">
<Setter.Value>
<DataTemplate>
<TextBlock Text="{Binding}" FontWeight="DemiBold"/>
</DataTemplate>
</Setter.Value>
</Setter>
</Style>
</Window.Resources>
<StackPanel Orientation="Vertical" Margin="5">
<GroupBox Header="Mouse" Padding="2">
<ComboBox Name="comboBoxMouse"
Padding="5"
KeyUp="OnEnterKeyUp"
SelectionChanged="ComboBoxMouse_SelectionChanged"
>
<ComboBoxItem IsSelected="True">None</ComboBoxItem>
</ComboBox>
</GroupBox>
<GroupBox Header="Keyboard" Padding="2" Margin="0,5,0,5">
<TextBox Name="textKeyboard"
BorderThickness="3"
BorderBrush="Black"
Padding="4"
FontWeight="Bold"
PreviewKeyDown="TextKeyboard_PreviewKeyDown"
/>
</GroupBox>
<GroupBox Header="Multimedia" Padding="2">
<ComboBox Name="comboBoxMultimedia"
Padding="5"
KeyUp="OnEnterKeyUp"
SelectionChanged="ComboBoxMultimedia_SelectionChanged"
>
<ComboBoxItem IsSelected="True">None</ComboBoxItem>
</ComboBox>
</GroupBox>
<GroupBox Header="Start application" Padding="2">
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition />
<ColumnDefinition Width="Auto"/>
</Grid.ColumnDefinitions>
<TextBox
Grid.Column="0"
Text=""
Name="textApplication"
Padding="2"
Margin="0,0,5,0"
/>
<Button
Grid.Column="1"
Name="buttonBrowse"
Content="Browse..."
Click="ButtonBrowse_Click"
Padding="15,3"
/>
</Grid>
</GroupBox>
<GroupBox Header="Custom" Padding="2">
<TextBox Grid.Column="1" Name="textCustom"
KeyUp="OnEnterKeyUp"
Padding="2"
MinWidth="300"
>CTRL+SHIFT+Z</TextBox>
</GroupBox>
<Grid Margin="0,0,0,10">
<Button Name="buttonSet" HorizontalAlignment="Left"
FontSize="14" FontWeight="Bold" Foreground="#363"
Padding="15,3" Margin="5" Click="ButtonSet_Click">Set</Button>
<Button Name="buttonClear" HorizontalAlignment="Center"
FontSize="14" FontWeight="Bold" Foreground="#336"
Padding="15,3" Margin="5" Click="ButtonClear_Click">Clear</Button>
<Button Name="buttonCancel" HorizontalAlignment="Right"
FontSize="14" FontWeight="Bold" Foreground="#633"
Padding="15,3" Margin="5" Click="ButtonCancel_Click">Cancel</Button>
</Grid>
</StackPanel>
</Window>