-
Notifications
You must be signed in to change notification settings - Fork 26
/
KeyboardControl.xaml
167 lines (164 loc) · 11.5 KB
/
KeyboardControl.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
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
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
<UserControl
x:Class="moonlight_xbox_dx.KeyboardControl"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:local="using:moonlight_xbox_dx"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
mc:Ignorable="d"
d:DesignHeight="300"
d:DesignWidth="900">
<UserControl.Resources>
<Style TargetType="Button">
<Setter Property="HorizontalAlignment" Value="Stretch" />
<Setter Property="Margin" Value="2,2,2,2" />
<Setter Property="Padding" Value="0,8,0,8" />
<Setter Property="Foreground" Value="White" />
<Setter Property="FontSize" Value="10" />
<Setter Property="Opacity" Value="1" />
<Setter Property="CornerRadius" Value="4" />
</Style>
</UserControl.Resources>
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition></ColumnDefinition>
<ColumnDefinition></ColumnDefinition>
<ColumnDefinition></ColumnDefinition>
<ColumnDefinition></ColumnDefinition>
<ColumnDefinition></ColumnDefinition>
<ColumnDefinition></ColumnDefinition>
<ColumnDefinition></ColumnDefinition>
<ColumnDefinition></ColumnDefinition>
<ColumnDefinition></ColumnDefinition>
<ColumnDefinition></ColumnDefinition>
<ColumnDefinition></ColumnDefinition>
<ColumnDefinition></ColumnDefinition>
<ColumnDefinition></ColumnDefinition>
<ColumnDefinition></ColumnDefinition>
<ColumnDefinition></ColumnDefinition>
<ColumnDefinition></ColumnDefinition>
<ColumnDefinition></ColumnDefinition>
<ColumnDefinition></ColumnDefinition>
<ColumnDefinition></ColumnDefinition>
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition></RowDefinition>
<RowDefinition></RowDefinition>
<RowDefinition></RowDefinition>
<RowDefinition></RowDefinition>
<RowDefinition></RowDefinition>
<RowDefinition></RowDefinition>
</Grid.RowDefinitions>
<Button Grid.Row="0" Grid.Column="0" Click="Click" Name="Key_01" XYFocusLeft="{x:Bind Key_58}">ESC</Button>
<Button Grid.Row="0" Grid.Column="1" Click="Click" Name="Key_3B">F1</Button>
<Button Grid.Row="0" Grid.Column="2" Click="Click" Name="Key_3C">F2</Button>
<Button Grid.Row="0" Grid.Column="3" Click="Click" Name="Key_3D">F3</Button>
<Button Grid.Row="0" Grid.Column="4" Click="Click" Name="Key_3E">F4</Button>
<Button Grid.Row="0" Grid.Column="5" Click="Click" Name="Key_3F">F5</Button>
<Button Grid.Row="0" Grid.Column="6" Click="Click" Name="Key_40">F6</Button>
<Button Grid.Row="0" Grid.Column="7" Click="Click" Name="Key_41">F7</Button>
<Button Grid.Row="0" Grid.Column="8" Click="Click" Name="Key_42">F8</Button>
<Button Grid.Row="0" Grid.Column="9" Click="Click" Name="Key_43">F9</Button>
<Button Grid.Row="0" Grid.Column="10" Click="Click" Name="Key_44">F10</Button>
<Button Grid.Row="0" Grid.Column="11" Click="Click" Name="Key_57">F11</Button>
<Button Grid.Row="0" Grid.Column="12" Click="Click" Name="Key_58" XYFocusRight="{x:Bind Key_01}">F12</Button>
<Button Grid.Row="1" Grid.Column="0" Click="Click" Name="Key_29" XYFocusLeft="{x:Bind Key_E049}">29</Button>
<Button Grid.Row="1" Grid.Column="1" Click="Click" Name="Key_02">02</Button>
<Button Grid.Row="1" Grid.Column="2" Click="Click" Name="Key_03">03</Button>
<Button Grid.Row="1" Grid.Column="3" Click="Click" Name="Key_04">04</Button>
<Button Grid.Row="1" Grid.Column="4" Click="Click" Name="Key_05">05</Button>
<Button Grid.Row="1" Grid.Column="5" Click="Click" Name="Key_06">06</Button>
<Button Grid.Row="1" Grid.Column="6" Click="Click" Name="Key_07">07</Button>
<Button Grid.Row="1" Grid.Column="7" Click="Click" Name="Key_08">08</Button>
<Button Grid.Row="1" Grid.Column="8" Click="Click" Name="Key_09">09</Button>
<Button Grid.Row="1" Grid.Column="9" Click="Click" Name="Key_0A">0A</Button>
<Button Grid.Row="1" Grid.Column="10" Click="Click" Name="Key_0B">0B</Button>
<Button Grid.Row="1" Grid.Column="11" Click="Click" Name="Key_0C">0C</Button>
<Button Grid.Row="1" Grid.Column="12" Click="Click" Name="Key_0D">0D</Button>
<Button Grid.Row="1" Grid.Column="13" Click="Click" Name="Key_0E" Grid.ColumnSpan="2">
<StackPanel Orientation="Horizontal">
<TextBlock HorizontalAlignment="Center" VerticalAlignment="Center" Margin="0,0,8,0"><Run FontFamily="Segoe Fluent Icons"></Run></TextBlock>
<TextBlock HorizontalAlignment="Center" VerticalAlignment="Center">←</TextBlock>
</StackPanel>
</Button>
<Button Grid.Row="1" Grid.Column="16" Name="Key_E052">Ins</Button>
<Button Grid.Row="1" Grid.Column="17" Name="Key_E047">Home</Button>
<Button Grid.Row="1" Grid.Column="18" Name="Key_E049" XYFocusRight="{x:Bind Key_29}">PgUp</Button>
<!--Row-->
<Button Grid.Row="2" Grid.Column="0" Grid.ColumnSpan="2" Click="Click" Name="Key_0F" XYFocusLeft="{x:Bind Key_E051}">↹</Button>
<Button Grid.Row="2" Grid.Column="2" Click="Click" Name="Key_10">10</Button>
<Button Grid.Row="2" Grid.Column="3" Click="Click" Name="Key_11">11</Button>
<Button Grid.Row="2" Grid.Column="4" Click="Click" Name="Key_12">12</Button>
<Button Grid.Row="2" Grid.Column="5" Click="Click" Name="Key_13">13</Button>
<Button Grid.Row="2" Grid.Column="6" Click="Click" Name="Key_14">14</Button>
<Button Grid.Row="2" Grid.Column="7" Click="Click" Name="Key_15">15</Button>
<Button Grid.Row="2" Grid.Column="8" Click="Click" Name="Key_16">16</Button>
<Button Grid.Row="2" Grid.Column="9" Click="Click" Name="Key_17">17</Button>
<Button Grid.Row="2" Grid.Column="10" Click="Click" Name="Key_18">18</Button>
<Button Grid.Row="2" Grid.Column="11" Click="Click" Name="Key_19">19</Button>
<Button Grid.Row="2" Grid.Column="12" Click="Click" Name="Key_1A">1A</Button>
<Button Grid.Row="2" Grid.Column="13" Click="Click" Name="Key_1B">1B</Button>
<Button Grid.Row="2" Grid.Column="14" Click="Click" Name="Key_2B">2B</Button>
<Button Grid.Row="2" Grid.Column="16" Click="Click" Name="Key_E053">Del</Button>
<Button Grid.Row="2" Grid.Column="17" Click="Click" Name="Key_E04F">End</Button>
<Button Grid.Row="2" Grid.Column="18" Click="Click" Name="Key_E051" XYFocusRight="{x:Bind Key_0F}">PgDn</Button>
<!--Row-->
<Button Grid.Row="3" Grid.Column="0" Grid.ColumnSpan="2" Click="Click" Name="Key_3A" XYFocusLeft="{x:Bind Key_1C}">⇪</Button>
<Button Grid.Row="3" Grid.Column="2" Click="Click" Name="Key_1E">1E</Button>
<Button Grid.Row="3" Grid.Column="3" Click="Click" Name="Key_1F">1F</Button>
<Button Grid.Row="3" Grid.Column="4" Click="Click" Name="Key_20">20</Button>
<Button Grid.Row="3" Grid.Column="5" Click="Click" Name="Key_21">21</Button>
<Button Grid.Row="3" Grid.Column="6" Click="Click" Name="Key_22">22</Button>
<Button Grid.Row="3" Grid.Column="7" Click="Click" Name="Key_23">23</Button>
<Button Grid.Row="3" Grid.Column="8" Click="Click" Name="Key_24">24</Button>
<Button Grid.Row="3" Grid.Column="9" Click="Click" Name="Key_25">25</Button>
<Button Grid.Row="3" Grid.Column="10" Click="Click" Name="Key_26">26</Button>
<Button Grid.Row="3" Grid.Column="11" Click="Click" Name="Key_27">27</Button>
<Button Grid.Row="3" Grid.Column="12" Click="Click" Name="Key_28">28</Button>
<Button Grid.Row="3" Grid.Column="13" Grid.ColumnSpan="2" Click="Click" Name="Key_1C" XYFocusRight="{x:Bind Key_3A}">
<StackPanel Orientation="Horizontal" HorizontalAlignment="Center">
<TextBlock HorizontalAlignment="Center" VerticalAlignment="Center" Margin="0,0,8,0"><Run FontFamily="Segoe Fluent Icons"></Run></TextBlock>
<TextBlock HorizontalAlignment="Center" VerticalAlignment="Center">↵</TextBlock>
</StackPanel>
</Button>
<!--Row-->
<Button Grid.Row="4" Grid.Column="0" Grid.ColumnSpan="2" Click="Click" Name="Key_2A" XYFocusLeft="{x:Bind Key_E048}">⇧</Button>
<Button Grid.Row="4" Grid.Column="2" Click="Click" Name="Key_2C">2C</Button>
<Button Grid.Row="4" Grid.Column="3" Click="Click" Name="Key_2D">2D</Button>
<Button Grid.Row="4" Grid.Column="4" Click="Click" Name="Key_2E">2E</Button>
<Button Grid.Row="4" Grid.Column="5" Click="Click" Name="Key_2F">2F</Button>
<Button Grid.Row="4" Grid.Column="6" Click="Click" Name="Key_30">30</Button>
<Button Grid.Row="4" Grid.Column="7" Click="Click" Name="Key_31">31</Button>
<Button Grid.Row="4" Grid.Column="8" Click="Click" Name="Key_32">32</Button>
<Button Grid.Row="4" Grid.Column="9" Click="Click" Name="Key_33">33</Button>
<Button Grid.Row="4" Grid.Column="10" Click="Click" Name="Key_34">34</Button>
<Button Grid.Row="4" Grid.Column="11" Click="Click" Name="Key_35">35</Button>
<Button Grid.Row="4" Grid.Column="12" Grid.ColumnSpan="2" Click="Click" Name="Key_36">⇧</Button>
<Button Grid.Row="4" Grid.Column="17" Click="Click" Name="Key_E048" XYFocusRight="{x:Bind Key_2A}">↑</Button>
<!--Row-->
<Button Grid.Row="5" Grid.Column="0" Click="Click" Name="Key_1D" XYFocusLeft="{x:Bind Key_E04D}">CTRL</Button>
<Button Grid.Row="5" Grid.Column="1" Click="Click" Name="Key_E05B">⊞</Button>
<Button Grid.Row="5" Grid.Column="2" Click="Click" Name="Key_38">Alt</Button>
<Button Grid.Row="5" Grid.Column="3" Click="Click" Grid.ColumnSpan="7" Name="Key_39">
<TextBlock><Run FontFamily="Segoe Fluent Icons"></Run></TextBlock>
</Button>
<Button Grid.Row="5" Grid.Column="10" Click="Click" Name="Key_E038">AltGr</Button>
<Button Grid.Row="5" Grid.Column="11" Click="Click" Name="Key_56">56</Button>
<Button Grid.Row="5" Grid.Column="12" Click="Click" Name="Key_E05C">⊞</Button>
<Button Grid.Row="5" Grid.Column="13" Click="Click" Name="Key_E05D">Menu</Button>
<Button Grid.Row="5" Grid.Column="14" Click="Click" Name="Key_E01D">CTRL</Button>
<Button Grid.Row="5" Grid.Column="16" Click="Click" Name="Key_E04B">
<StackPanel Orientation="Horizontal">
<TextBlock HorizontalAlignment="Center" VerticalAlignment="Center" Margin="0,0,8,0"><Run FontFamily="Segoe Fluent Icons"></Run></TextBlock>
<TextBlock HorizontalAlignment="Center" VerticalAlignment="Center">←</TextBlock>
</StackPanel>
</Button>
<Button Grid.Row="5" Grid.Column="17" Click="Click" Name="Key_E050" XYFocusRight="{x:Bind Key_E04D}">↓</Button>
<Button Grid.Row="5" Grid.Column="18" Click="Click" Name="Key_E04D" XYFocusRight="{x:Bind Key_1D}">
<StackPanel Orientation="Horizontal">
<TextBlock HorizontalAlignment="Center" VerticalAlignment="Center" Margin="0,0,8,0"><Run FontFamily="Segoe Fluent Icons"></Run></TextBlock>
<TextBlock HorizontalAlignment="Center" VerticalAlignment="Center">→</TextBlock>
</StackPanel>
</Button>
</Grid>
</UserControl>