-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathKeyBindingsWindow.xaml
More file actions
73 lines (64 loc) · 4.45 KB
/
KeyBindingsWindow.xaml
File metadata and controls
73 lines (64 loc) · 4.45 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
<?xml version="1.0" encoding="windows-1251"?>
<Window x:Class="LOLSummonerTiming.KeyBindingsWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:local="clr-namespace:LOLSummonerTiming"
Title="Íàçíà÷åíèÿ êëàâèø" Height="300" Width="450"
WindowStartupLocation="CenterOwner"
PreviewKeyDown="Window_PreviewKeyDown">
<Window.Resources>
<local:KeyToStringConverter x:Key="KeyToStringConverter"/>
</Window.Resources>
<Grid Margin="12">
<Grid.RowDefinitions>
<RowDefinition Height="Auto"/>
<RowDefinition Height="*"/>
<RowDefinition Height="Auto"/>
</Grid.RowDefinitions>
<TextBlock x:Name="InfoText" Grid.Row="0" Text="Âûáåðèòå, êàêóþ êëàâèøó èçìåíèòü, çàòåì íàæìèòå íîâóþ."
TextWrapping="Wrap" HorizontalAlignment="Center" Margin="10" Padding="10"/>
<Grid Grid.Row="1">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="0.6*"/>
<ColumnDefinition/>
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition/>
<RowDefinition/>
<RowDefinition/>
<RowDefinition/>
<RowDefinition/>
<RowDefinition/>
</Grid.RowDefinitions>
<!-- Top -->
<TextBlock Grid.Row="0" Grid.Column="0" VerticalAlignment="Center" Margin="0,0,10,8" Text="Top:" HorizontalAlignment="Right"/>
<TextBox Grid.Row="0" Grid.Column="1" Margin="0,0,8,8" IsReadOnly="True" HorizontalAlignment="Left" MinWidth="150"
Text="{Binding TopKey, Converter={StaticResource KeyToStringConverter}}" MouseLeftButtonDown="SelectTop_Click" Cursor="Hand"/>
<!-- Jungle -->
<TextBlock Grid.Row="1" Grid.Column="0" VerticalAlignment="Center" Margin="0,0,10,8" Text="Jungle:" HorizontalAlignment="Right"/>
<TextBox Grid.Row="1" Grid.Column="1" Margin="0,0,8,8" IsReadOnly="True" HorizontalAlignment="Left" MinWidth="150"
Text="{Binding JungleKey, Converter={StaticResource KeyToStringConverter}}" MouseLeftButtonDown="SelectJungle_Click" Cursor="Hand"/>
<!-- Mid -->
<TextBlock Grid.Row="2" Grid.Column="0" VerticalAlignment="Center" Margin="0,0,10,8" Text="Mid:" HorizontalAlignment="Right"/>
<TextBox Grid.Row="2" Grid.Column="1" Margin="0,0,8,8" IsReadOnly="True" HorizontalAlignment="Left" MinWidth="150"
Text="{Binding MidKey, Converter={StaticResource KeyToStringConverter}}" MouseLeftButtonDown="SelectMid_Click" Cursor="Hand"/>
<!-- ADC -->
<TextBlock Grid.Row="3" Grid.Column="0" VerticalAlignment="Center" Margin="0,0,10,8" Text="ADC:" HorizontalAlignment="Right"/>
<TextBox Grid.Row="3" Grid.Column="1" Margin="0,0,8,8" IsReadOnly="True" HorizontalAlignment="Left" MinWidth="150"
Text="{Binding AdcKey, Converter={StaticResource KeyToStringConverter}}" MouseLeftButtonDown="SelectAdc_Click" Cursor="Hand"/>
<!-- Support -->
<TextBlock Grid.Row="4" Grid.Column="0" VerticalAlignment="Center" Margin="0,0,10,0" Text="Support:" HorizontalAlignment="Right"/>
<TextBox Grid.Row="4" Grid.Column="1" Margin="0,0,8,0" IsReadOnly="True" HorizontalAlignment="Left" MinWidth="150"
Text="{Binding SupportKey, Converter={StaticResource KeyToStringConverter}}" MouseLeftButtonDown="SelectSupport_Click" Cursor="Hand"/>
<!-- Send -->
<TextBlock Grid.Row="5" Grid.Column="0" VerticalAlignment="Center" Margin="0,0,10,8" Text="Send:" HorizontalAlignment="Right"/>
<TextBox Grid.Row="5" Grid.Column="1" Margin="0,0,8,8" IsReadOnly="True" HorizontalAlignment="Left" MinWidth="150"
Text="{Binding SendKey, Converter={StaticResource KeyToStringConverter}}" MouseLeftButtonDown="SelectSend_Click" Cursor="Hand"/>
</Grid>
<StackPanel Grid.Row="2" Orientation="Horizontal" HorizontalAlignment="Right" Margin="0,8,0,0">
<TextBlock x:Name="CaptureHint" VerticalAlignment="Center" Foreground="DarkOrange" Visibility="Collapsed" Margin="0,0,12,0"
Text="Capture mode: press a key..."/>
<Button Width="90" Margin="0,0,8,0" Content="Çàêðûòü" IsDefault="True" Click="Close_Click"/>
</StackPanel>
</Grid>
</Window>