forked from amkovkov/GranuSightSoftware2
1) remove unused components: camera view (due it causes segmentation faults), compute resources and all related, illuminator controller (due in useless without camera view), image storage service, temperature and humidity service 2) database schema - reduce tables references, features storing in records themselves in compressed form, add records creation and editing date and time, add separator comment column 3) analysis - rework of pipeline and ui, now database storing only raw data and all display values calculated from it 4) lights service - add reconnection if disconnected 5) add width and height command line arguments 6) fix some typos and other issues
423 lines
25 KiB
XML
423 lines
25 KiB
XML
<UserControl
|
||
x:Class="GSS2.Views.TextKeyboardView"
|
||
xmlns="https://github.com/avaloniaui"
|
||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||
xmlns:vm="using:GSS2.ViewModels"
|
||
x:DataType="vm:TextKeyboardViewModel"
|
||
Value="{Binding Value, Mode=TwoWay}"
|
||
IsMultiline="{Binding IsMultiline}">
|
||
|
||
<UserControl.Resources>
|
||
<SolidColorBrush x:Key="MainBackground" Color="#001e46" />
|
||
<SolidColorBrush x:Key="ButtonBackground" Color="#0865b2" />
|
||
<SolidColorBrush x:Key="ButtonForeground" Color="#ffffff" />
|
||
</UserControl.Resources>
|
||
|
||
<UserControl.Styles>
|
||
|
||
<Style Selector="Button">
|
||
<Setter Property="HorizontalAlignment" Value="Stretch" />
|
||
<Setter Property="VerticalAlignment" Value="Stretch" />
|
||
<Setter Property="HorizontalContentAlignment" Value="Center" />
|
||
<Setter Property="VerticalContentAlignment" Value="Center" />
|
||
<Setter Property="Background" Value="{StaticResource ButtonBackground}" />
|
||
<Setter Property="Foreground" Value="{StaticResource ButtonForeground}" />
|
||
<Setter Property="CornerRadius" Value="5" />
|
||
</Style>
|
||
|
||
<Style Selector="Button:pointerover /template/ ContentPresenter">
|
||
<Setter Property="Background" Value="#004a94" />
|
||
<Setter Property="Foreground" Value="#eef7ff" />
|
||
</Style>
|
||
|
||
<Style Selector="Button:pressed /template/ ContentPresenter">
|
||
<Setter Property="Background" Value="#004a94" />
|
||
<Setter Property="Foreground" Value="#eef7ff" />
|
||
</Style>
|
||
|
||
<!-- Стиль для поля ввода -->
|
||
<Style Selector="TextPresenter">
|
||
<Setter Property="VerticalAlignment" Value="Center" />
|
||
<Setter Property="HorizontalAlignment" Value="Center" />
|
||
<Setter Property="Focusable" Value="False" />
|
||
<Setter Property="CaretBrush" Value="#004a94" />
|
||
</Style>
|
||
|
||
<!-- Стиль обёртки TextPresenter -->
|
||
<Style Selector="Border.DisplayBorder">
|
||
<Setter Property="VerticalAlignment" Value="Stretch" />
|
||
<Setter Property="HorizontalAlignment" Value="Stretch" />
|
||
<Setter Property="Background" Value="#eef7ff" />
|
||
<Setter Property="CornerRadius" Value="5" />
|
||
</Style>
|
||
|
||
</UserControl.Styles>
|
||
|
||
<Grid Background="{StaticResource MainBackground}">
|
||
|
||
<Grid Margin="5" RowSpacing="5">
|
||
|
||
<Grid.RowDefinitions>
|
||
<RowDefinition Height="*"/>
|
||
<RowDefinition Height="*"/>
|
||
<RowDefinition Height="*"/>
|
||
<RowDefinition Height="*"/>
|
||
<RowDefinition Height="*"/>
|
||
<RowDefinition Height="*"/>
|
||
</Grid.RowDefinitions>
|
||
|
||
<Grid Grid.Row="0" ColumnSpacing="5">
|
||
|
||
<Grid.ColumnDefinitions>
|
||
<ColumnDefinition Width="3*"/>
|
||
<ColumnDefinition Width="*"/>
|
||
</Grid.ColumnDefinitions>
|
||
|
||
<Border Grid.Column="0" Classes="DisplayBorder" ClipToBounds="True" >
|
||
<TextPresenter x:Name="Text" Foreground="#004a94"
|
||
FontSize="20"
|
||
TextAlignment="Center" VerticalAlignment="Bottom" HorizontalAlignment="Stretch"
|
||
Margin="0,0,0,24"/>
|
||
</Border>
|
||
|
||
<Button Grid.Column="1" Click="Backspace" Content="⌫" />
|
||
|
||
</Grid>
|
||
|
||
<Grid x:Name="RussianLowercase" Grid.Row="1" Grid.RowSpan="4" ColumnSpacing="5" RowSpacing="5">
|
||
|
||
<Grid.RowDefinitions>
|
||
<RowDefinition Height="*"/>
|
||
<RowDefinition Height="*"/>
|
||
<RowDefinition Height="*"/>
|
||
<RowDefinition Height="*"/>
|
||
</Grid.RowDefinitions>
|
||
|
||
<Grid.ColumnDefinitions>
|
||
<ColumnDefinition Width="*"/>
|
||
<ColumnDefinition Width="*"/>
|
||
<ColumnDefinition Width="*"/>
|
||
<ColumnDefinition Width="*"/>
|
||
<ColumnDefinition Width="*"/>
|
||
<ColumnDefinition Width="*"/>
|
||
<ColumnDefinition Width="*"/>
|
||
<ColumnDefinition Width="*"/>
|
||
<ColumnDefinition Width="*"/>
|
||
<ColumnDefinition Width="*"/>
|
||
<ColumnDefinition Width="*"/>
|
||
<ColumnDefinition Width="*"/>
|
||
</Grid.ColumnDefinitions>
|
||
|
||
<Button Grid.Row="0" Grid.Column="0" Click="KeyPressed" Content="1" />
|
||
<Button Grid.Row="0" Grid.Column="1" Click="KeyPressed" Content="2" />
|
||
<Button Grid.Row="0" Grid.Column="2" Click="KeyPressed" Content="3" />
|
||
<Button Grid.Row="0" Grid.Column="3" Click="KeyPressed" Content="4" />
|
||
<Button Grid.Row="0" Grid.Column="4" Click="KeyPressed" Content="5" />
|
||
<Button Grid.Row="0" Grid.Column="5" Click="KeyPressed" Content="6" />
|
||
<Button Grid.Row="0" Grid.Column="6" Click="KeyPressed" Content="7" />
|
||
<Button Grid.Row="0" Grid.Column="7" Click="KeyPressed" Content="8" />
|
||
<Button Grid.Row="0" Grid.Column="8" Click="KeyPressed" Content="9" />
|
||
<Button Grid.Row="0" Grid.Column="9" Click="KeyPressed" Content="0" />
|
||
<Button Grid.Row="0" Grid.Column="10" Click="KeyPressed" Content="-" />
|
||
<Button Grid.Row="0" Grid.Column="11" Click="KeyPressed" Content="=" />
|
||
|
||
<Button Grid.Row="1" Grid.Column="0" Click="KeyPressed" Content="й" />
|
||
<Button Grid.Row="1" Grid.Column="1" Click="KeyPressed" Content="ц" />
|
||
<Button Grid.Row="1" Grid.Column="2" Click="KeyPressed" Content="у" />
|
||
<Button Grid.Row="1" Grid.Column="3" Click="KeyPressed" Content="к" />
|
||
<Button Grid.Row="1" Grid.Column="4" Click="KeyPressed" Content="е" />
|
||
<Button Grid.Row="1" Grid.Column="5" Click="KeyPressed" Content="н" />
|
||
<Button Grid.Row="1" Grid.Column="6" Click="KeyPressed" Content="г" />
|
||
<Button Grid.Row="1" Grid.Column="7" Click="KeyPressed" Content="ш" />
|
||
<Button Grid.Row="1" Grid.Column="8" Click="KeyPressed" Content="щ" />
|
||
<Button Grid.Row="1" Grid.Column="9" Click="KeyPressed" Content="з" />
|
||
<Button Grid.Row="1" Grid.Column="10" Click="KeyPressed" Content="х" />
|
||
<Button Grid.Row="1" Grid.Column="11" Click="KeyPressed" Content="ъ" />
|
||
|
||
<Button Grid.Row="2" Grid.Column="0" Click="SwitchCase" Content="⇧" FontSize="20" />
|
||
|
||
<Button Grid.Row="2" Grid.Column="1" Click="KeyPressed" Content="ф" />
|
||
<Button Grid.Row="2" Grid.Column="2" Click="KeyPressed" Content="ы" />
|
||
<Button Grid.Row="2" Grid.Column="3" Click="KeyPressed" Content="в" />
|
||
<Button Grid.Row="2" Grid.Column="4" Click="KeyPressed" Content="а" />
|
||
<Button Grid.Row="2" Grid.Column="5" Click="KeyPressed" Content="п" />
|
||
<Button Grid.Row="2" Grid.Column="6" Click="KeyPressed" Content="р" />
|
||
<Button Grid.Row="2" Grid.Column="7" Click="KeyPressed" Content="о" />
|
||
<Button Grid.Row="2" Grid.Column="8" Click="KeyPressed" Content="л" />
|
||
<Button Grid.Row="2" Grid.Column="9" Click="KeyPressed" Content="д" />
|
||
<Button Grid.Row="2" Grid.Column="10" Click="KeyPressed" Content="ж" />
|
||
<Button Grid.Row="2" Grid.Column="11" Click="KeyPressed" Content="э" />
|
||
|
||
<Button Grid.Row="3" Grid.Column="0" Click="SwitchLagnuage" Content="АНГ" />
|
||
|
||
<Button Grid.Row="3" Grid.Column="1" Click="KeyPressed" Content="я" />
|
||
<Button Grid.Row="3" Grid.Column="2" Click="KeyPressed" Content="ч" />
|
||
<Button Grid.Row="3" Grid.Column="3" Click="KeyPressed" Content="с" />
|
||
<Button Grid.Row="3" Grid.Column="4" Click="KeyPressed" Content="м" />
|
||
<Button Grid.Row="3" Grid.Column="5" Click="KeyPressed" Content="и" />
|
||
<Button Grid.Row="3" Grid.Column="6" Click="KeyPressed" Content="т" />
|
||
<Button Grid.Row="3" Grid.Column="7" Click="KeyPressed" Content="ь" />
|
||
<Button Grid.Row="3" Grid.Column="8" Click="KeyPressed" Content="б" />
|
||
<Button Grid.Row="3" Grid.Column="9" Click="KeyPressed" Content="ю" />
|
||
<Button Grid.Row="3" Grid.Column="10" Click="KeyPressed" Content="." />
|
||
|
||
<Button x:Name="EnterRussianLowercase" Grid.Row="3" Grid.Column="11" Click="EnterKeyPressed" Content="⏎" FontSize="20" />
|
||
|
||
</Grid>
|
||
|
||
<Grid x:Name="RussianUppercase" Grid.Row="1" Grid.RowSpan="4" ColumnSpacing="5" RowSpacing="5">
|
||
|
||
<Grid.RowDefinitions>
|
||
<RowDefinition Height="*"/>
|
||
<RowDefinition Height="*"/>
|
||
<RowDefinition Height="*"/>
|
||
<RowDefinition Height="*"/>
|
||
</Grid.RowDefinitions>
|
||
|
||
<Grid.ColumnDefinitions>
|
||
<ColumnDefinition Width="*"/>
|
||
<ColumnDefinition Width="*"/>
|
||
<ColumnDefinition Width="*"/>
|
||
<ColumnDefinition Width="*"/>
|
||
<ColumnDefinition Width="*"/>
|
||
<ColumnDefinition Width="*"/>
|
||
<ColumnDefinition Width="*"/>
|
||
<ColumnDefinition Width="*"/>
|
||
<ColumnDefinition Width="*"/>
|
||
<ColumnDefinition Width="*"/>
|
||
<ColumnDefinition Width="*"/>
|
||
<ColumnDefinition Width="*"/>
|
||
</Grid.ColumnDefinitions>
|
||
|
||
<Button Grid.Row="0" Grid.Column="0" Click="KeyPressed" Content="!" />
|
||
<Button Grid.Row="0" Grid.Column="1" Click="KeyPressed" Content=""" />
|
||
<Button Grid.Row="0" Grid.Column="2" Click="KeyPressed" Content="№" />
|
||
<Button Grid.Row="0" Grid.Column="3" Click="KeyPressed" Content=";" />
|
||
<Button Grid.Row="0" Grid.Column="4" Click="KeyPressed" Content="%" />
|
||
<Button Grid.Row="0" Grid.Column="5" Click="KeyPressed" Content=":" />
|
||
<Button Grid.Row="0" Grid.Column="6" Click="KeyPressed" Content="?" />
|
||
<Button Grid.Row="0" Grid.Column="7" Click="KeyPressed" Content="*" />
|
||
<Button Grid.Row="0" Grid.Column="8" Click="KeyPressed" Content="(" />
|
||
<Button Grid.Row="0" Grid.Column="9" Click="KeyPressed" Content=")" />
|
||
<Button Grid.Row="0" Grid.Column="10" Click="KeyPressed" Content="_" />
|
||
<Button Grid.Row="0" Grid.Column="11" Click="KeyPressed" Content="+" />
|
||
|
||
<Button Grid.Row="1" Grid.Column="0" Click="KeyPressed" Content="Й" />
|
||
<Button Grid.Row="1" Grid.Column="1" Click="KeyPressed" Content="Ц" />
|
||
<Button Grid.Row="1" Grid.Column="2" Click="KeyPressed" Content="У" />
|
||
<Button Grid.Row="1" Grid.Column="3" Click="KeyPressed" Content="К" />
|
||
<Button Grid.Row="1" Grid.Column="4" Click="KeyPressed" Content="Е" />
|
||
<Button Grid.Row="1" Grid.Column="5" Click="KeyPressed" Content="Н" />
|
||
<Button Grid.Row="1" Grid.Column="6" Click="KeyPressed" Content="Г" />
|
||
<Button Grid.Row="1" Grid.Column="7" Click="KeyPressed" Content="Ш" />
|
||
<Button Grid.Row="1" Grid.Column="8" Click="KeyPressed" Content="Щ" />
|
||
<Button Grid.Row="1" Grid.Column="9" Click="KeyPressed" Content="З" />
|
||
<Button Grid.Row="1" Grid.Column="10" Click="KeyPressed" Content="Х" />
|
||
<Button Grid.Row="1" Grid.Column="11" Click="KeyPressed" Content="Ъ" />
|
||
|
||
<Button Grid.Row="2" Grid.Column="0" Click="SwitchCase" Content="⇩" FontSize="20" />
|
||
|
||
<Button Grid.Row="2" Grid.Column="1" Click="KeyPressed" Content="Ф" />
|
||
<Button Grid.Row="2" Grid.Column="2" Click="KeyPressed" Content="Ы" />
|
||
<Button Grid.Row="2" Grid.Column="3" Click="KeyPressed" Content="В" />
|
||
<Button Grid.Row="2" Grid.Column="4" Click="KeyPressed" Content="А" />
|
||
<Button Grid.Row="2" Grid.Column="5" Click="KeyPressed" Content="П" />
|
||
<Button Grid.Row="2" Grid.Column="6" Click="KeyPressed" Content="Р" />
|
||
<Button Grid.Row="2" Grid.Column="7" Click="KeyPressed" Content="О" />
|
||
<Button Grid.Row="2" Grid.Column="8" Click="KeyPressed" Content="Л" />
|
||
<Button Grid.Row="2" Grid.Column="9" Click="KeyPressed" Content="Д" />
|
||
<Button Grid.Row="2" Grid.Column="10" Click="KeyPressed" Content="Ж" />
|
||
<Button Grid.Row="2" Grid.Column="11" Click="KeyPressed" Content="Э" />
|
||
|
||
<Button Grid.Row="3" Grid.Column="0" Click="SwitchLagnuage" Content="АНГ" />
|
||
|
||
<Button Grid.Row="3" Grid.Column="1" Click="KeyPressed" Content="Я" />
|
||
<Button Grid.Row="3" Grid.Column="2" Click="KeyPressed" Content="Ч" />
|
||
<Button Grid.Row="3" Grid.Column="3" Click="KeyPressed" Content="С" />
|
||
<Button Grid.Row="3" Grid.Column="4" Click="KeyPressed" Content="М" />
|
||
<Button Grid.Row="3" Grid.Column="5" Click="KeyPressed" Content="И" />
|
||
<Button Grid.Row="3" Grid.Column="6" Click="KeyPressed" Content="Т" />
|
||
<Button Grid.Row="3" Grid.Column="7" Click="KeyPressed" Content="Ь" />
|
||
<Button Grid.Row="3" Grid.Column="8" Click="KeyPressed" Content="Б" />
|
||
<Button Grid.Row="3" Grid.Column="9" Click="KeyPressed" Content="Ю" />
|
||
<Button Grid.Row="3" Grid.Column="10" Click="KeyPressed" Content="," />
|
||
|
||
<Button x:Name="EnterRussianUppercase" Grid.Row="3" Grid.Column="11" Click="EnterKeyPressed" Content="⏎" FontSize="20" />
|
||
|
||
</Grid>
|
||
|
||
<Grid x:Name="EnglishLowercase" Grid.Row="1" Grid.RowSpan="4" ColumnSpacing="5" RowSpacing="5">
|
||
|
||
<Grid.RowDefinitions>
|
||
<RowDefinition Height="*"/>
|
||
<RowDefinition Height="*"/>
|
||
<RowDefinition Height="*"/>
|
||
<RowDefinition Height="*"/>
|
||
</Grid.RowDefinitions>
|
||
|
||
<Grid.ColumnDefinitions>
|
||
<ColumnDefinition Width="*"/>
|
||
<ColumnDefinition Width="*"/>
|
||
<ColumnDefinition Width="*"/>
|
||
<ColumnDefinition Width="*"/>
|
||
<ColumnDefinition Width="*"/>
|
||
<ColumnDefinition Width="*"/>
|
||
<ColumnDefinition Width="*"/>
|
||
<ColumnDefinition Width="*"/>
|
||
<ColumnDefinition Width="*"/>
|
||
<ColumnDefinition Width="*"/>
|
||
<ColumnDefinition Width="*"/>
|
||
<ColumnDefinition Width="*"/>
|
||
</Grid.ColumnDefinitions>
|
||
|
||
<Button Grid.Row="0" Grid.Column="0" Click="KeyPressed" Content="1" />
|
||
<Button Grid.Row="0" Grid.Column="1" Click="KeyPressed" Content="2" />
|
||
<Button Grid.Row="0" Grid.Column="2" Click="KeyPressed" Content="3" />
|
||
<Button Grid.Row="0" Grid.Column="3" Click="KeyPressed" Content="4" />
|
||
<Button Grid.Row="0" Grid.Column="4" Click="KeyPressed" Content="5" />
|
||
<Button Grid.Row="0" Grid.Column="5" Click="KeyPressed" Content="6" />
|
||
<Button Grid.Row="0" Grid.Column="6" Click="KeyPressed" Content="7" />
|
||
<Button Grid.Row="0" Grid.Column="7" Click="KeyPressed" Content="8" />
|
||
<Button Grid.Row="0" Grid.Column="8" Click="KeyPressed" Content="9" />
|
||
<Button Grid.Row="0" Grid.Column="9" Click="KeyPressed" Content="0" />
|
||
<Button Grid.Row="0" Grid.Column="10" Click="KeyPressed" Content="-" />
|
||
<Button Grid.Row="0" Grid.Column="11" Click="KeyPressed" Content="=" />
|
||
|
||
<Button Grid.Row="1" Grid.Column="0" Click="KeyPressed" Content="q" />
|
||
<Button Grid.Row="1" Grid.Column="1" Click="KeyPressed" Content="w" />
|
||
<Button Grid.Row="1" Grid.Column="2" Click="KeyPressed" Content="e" />
|
||
<Button Grid.Row="1" Grid.Column="3" Click="KeyPressed" Content="r" />
|
||
<Button Grid.Row="1" Grid.Column="4" Click="KeyPressed" Content="t" />
|
||
<Button Grid.Row="1" Grid.Column="5" Click="KeyPressed" Content="y" />
|
||
<Button Grid.Row="1" Grid.Column="6" Click="KeyPressed" Content="u" />
|
||
<Button Grid.Row="1" Grid.Column="7" Click="KeyPressed" Content="i" />
|
||
<Button Grid.Row="1" Grid.Column="8" Click="KeyPressed" Content="o" />
|
||
<Button Grid.Row="1" Grid.Column="9" Click="KeyPressed" Content="p" />
|
||
<Button Grid.Row="1" Grid.Column="10" Click="KeyPressed" Content="[" />
|
||
<Button Grid.Row="1" Grid.Column="11" Click="KeyPressed" Content="]" />
|
||
|
||
<Button Grid.Row="2" Grid.Column="0" Click="SwitchCase" Content="⇧" FontSize="20" />
|
||
|
||
<Button Grid.Row="2" Grid.Column="1" Click="KeyPressed" Content="a" />
|
||
<Button Grid.Row="2" Grid.Column="2" Click="KeyPressed" Content="s" />
|
||
<Button Grid.Row="2" Grid.Column="3" Click="KeyPressed" Content="d" />
|
||
<Button Grid.Row="2" Grid.Column="4" Click="KeyPressed" Content="f" />
|
||
<Button Grid.Row="2" Grid.Column="5" Click="KeyPressed" Content="g" />
|
||
<Button Grid.Row="2" Grid.Column="6" Click="KeyPressed" Content="h" />
|
||
<Button Grid.Row="2" Grid.Column="7" Click="KeyPressed" Content="j" />
|
||
<Button Grid.Row="2" Grid.Column="8" Click="KeyPressed" Content="k" />
|
||
<Button Grid.Row="2" Grid.Column="9" Click="KeyPressed" Content="l" />
|
||
<Button Grid.Row="2" Grid.Column="10" Click="KeyPressed" Content=";" />
|
||
<Button Grid.Row="2" Grid.Column="11" Click="KeyPressed" Content="'" />
|
||
|
||
<Button Grid.Row="3" Grid.Column="0" Click="SwitchLagnuage" Content="РУС" />
|
||
|
||
<Button Grid.Row="3" Grid.Column="1" Click="KeyPressed" Content="z" />
|
||
<Button Grid.Row="3" Grid.Column="2" Click="KeyPressed" Content="x" />
|
||
<Button Grid.Row="3" Grid.Column="3" Click="KeyPressed" Content="c" />
|
||
<Button Grid.Row="3" Grid.Column="4" Click="KeyPressed" Content="v" />
|
||
<Button Grid.Row="3" Grid.Column="5" Click="KeyPressed" Content="b" />
|
||
<Button Grid.Row="3" Grid.Column="6" Click="KeyPressed" Content="n" />
|
||
<Button Grid.Row="3" Grid.Column="7" Click="KeyPressed" Content="m" />
|
||
<Button Grid.Row="3" Grid.Column="8" Click="KeyPressed" Content="," />
|
||
<Button Grid.Row="3" Grid.Column="9" Click="KeyPressed" Content="." />
|
||
<Button Grid.Row="3" Grid.Column="10" Click="KeyPressed" Content="/" />
|
||
|
||
<Button x:Name="EnterEnglishLowercase" Grid.Row="3" Grid.Column="11" Click="EnterKeyPressed" Content="⏎" FontSize="20" />
|
||
|
||
</Grid>
|
||
|
||
<Grid x:Name="EnglishUppercase" Grid.Row="1" Grid.RowSpan="4" ColumnSpacing="5" RowSpacing="5">
|
||
|
||
<Grid.RowDefinitions>
|
||
<RowDefinition Height="*"/>
|
||
<RowDefinition Height="*"/>
|
||
<RowDefinition Height="*"/>
|
||
<RowDefinition Height="*"/>
|
||
</Grid.RowDefinitions>
|
||
|
||
<Grid.ColumnDefinitions>
|
||
<ColumnDefinition Width="*"/>
|
||
<ColumnDefinition Width="*"/>
|
||
<ColumnDefinition Width="*"/>
|
||
<ColumnDefinition Width="*"/>
|
||
<ColumnDefinition Width="*"/>
|
||
<ColumnDefinition Width="*"/>
|
||
<ColumnDefinition Width="*"/>
|
||
<ColumnDefinition Width="*"/>
|
||
<ColumnDefinition Width="*"/>
|
||
<ColumnDefinition Width="*"/>
|
||
<ColumnDefinition Width="*"/>
|
||
<ColumnDefinition Width="*"/>
|
||
</Grid.ColumnDefinitions>
|
||
|
||
<Button Grid.Row="0" Grid.Column="0" Click="KeyPressed" Content="!" />
|
||
<Button Grid.Row="0" Grid.Column="1" Click="KeyPressed" Content="@" />
|
||
<Button Grid.Row="0" Grid.Column="2" Click="KeyPressed" Content="#" />
|
||
<Button Grid.Row="0" Grid.Column="3" Click="KeyPressed" Content="$" />
|
||
<Button Grid.Row="0" Grid.Column="4" Click="KeyPressed" Content="%" />
|
||
<Button Grid.Row="0" Grid.Column="5" Click="KeyPressed" Content="^" />
|
||
<Button Grid.Row="0" Grid.Column="6" Click="KeyPressed" Content="&" />
|
||
<Button Grid.Row="0" Grid.Column="7" Click="KeyPressed" Content="*" />
|
||
<Button Grid.Row="0" Grid.Column="8" Click="KeyPressed" Content="(" />
|
||
<Button Grid.Row="0" Grid.Column="9" Click="KeyPressed" Content=")" />
|
||
<Button Grid.Row="0" Grid.Column="10" Click="KeyPressed" Content="_" />
|
||
<Button Grid.Row="0" Grid.Column="11" Click="KeyPressed" Content="+" />
|
||
|
||
<Button Grid.Row="1" Grid.Column="0" Click="KeyPressed" Content="Q" />
|
||
<Button Grid.Row="1" Grid.Column="1" Click="KeyPressed" Content="W" />
|
||
<Button Grid.Row="1" Grid.Column="2" Click="KeyPressed" Content="E" />
|
||
<Button Grid.Row="1" Grid.Column="3" Click="KeyPressed" Content="R" />
|
||
<Button Grid.Row="1" Grid.Column="4" Click="KeyPressed" Content="T" />
|
||
<Button Grid.Row="1" Grid.Column="5" Click="KeyPressed" Content="Y" />
|
||
<Button Grid.Row="1" Grid.Column="6" Click="KeyPressed" Content="U" />
|
||
<Button Grid.Row="1" Grid.Column="7" Click="KeyPressed" Content="I" />
|
||
<Button Grid.Row="1" Grid.Column="8" Click="KeyPressed" Content="O" />
|
||
<Button Grid.Row="1" Grid.Column="9" Click="KeyPressed" Content="P" />
|
||
<Button Grid.Row="1" Grid.Column="10" Click="KeyPressed" Content="\{" />
|
||
<Button Grid.Row="1" Grid.Column="11" Click="KeyPressed" Content="}" />
|
||
|
||
<Button Grid.Row="2" Grid.Column="0" Click="SwitchCase" Content="⇩" FontSize="20" />
|
||
|
||
<Button Grid.Row="2" Grid.Column="1" Click="KeyPressed" Content="A" />
|
||
<Button Grid.Row="2" Grid.Column="2" Click="KeyPressed" Content="S" />
|
||
<Button Grid.Row="2" Grid.Column="3" Click="KeyPressed" Content="D" />
|
||
<Button Grid.Row="2" Grid.Column="4" Click="KeyPressed" Content="F" />
|
||
<Button Grid.Row="2" Grid.Column="5" Click="KeyPressed" Content="G" />
|
||
<Button Grid.Row="2" Grid.Column="6" Click="KeyPressed" Content="H" />
|
||
<Button Grid.Row="2" Grid.Column="7" Click="KeyPressed" Content="J" />
|
||
<Button Grid.Row="2" Grid.Column="8" Click="KeyPressed" Content="K" />
|
||
<Button Grid.Row="2" Grid.Column="9" Click="KeyPressed" Content="L" />
|
||
<Button Grid.Row="2" Grid.Column="10" Click="KeyPressed" Content=":" />
|
||
<Button Grid.Row="2" Grid.Column="11" Click="KeyPressed" Content=""" />
|
||
|
||
<Button Grid.Row="3" Grid.Column="0" Click="SwitchLagnuage" Content="РУС" />
|
||
|
||
<Button Grid.Row="3" Grid.Column="1" Click="KeyPressed" Content="Z" />
|
||
<Button Grid.Row="3" Grid.Column="2" Click="KeyPressed" Content="X" />
|
||
<Button Grid.Row="3" Grid.Column="3" Click="KeyPressed" Content="C" />
|
||
<Button Grid.Row="3" Grid.Column="4" Click="KeyPressed" Content="V" />
|
||
<Button Grid.Row="3" Grid.Column="5" Click="KeyPressed" Content="B" />
|
||
<Button Grid.Row="3" Grid.Column="6" Click="KeyPressed" Content="N" />
|
||
<Button Grid.Row="3" Grid.Column="7" Click="KeyPressed" Content="M" />
|
||
<Button Grid.Row="3" Grid.Column="8" Click="KeyPressed" Content="<" />
|
||
<Button Grid.Row="3" Grid.Column="9" Click="KeyPressed" Content=">" />
|
||
<Button Grid.Row="3" Grid.Column="10" Click="KeyPressed" Content="?" />
|
||
|
||
<Button x:Name="EnterEnglishUppercase" Grid.Row="3" Grid.Column="11" Click="EnterKeyPressed" Content="⏎" FontSize="20" />
|
||
|
||
</Grid>
|
||
|
||
<!-- Нижние кнопки управления -->
|
||
<Grid Grid.Row="5" ColumnDefinitions="*,*,*,*" ColumnSpacing="5">
|
||
<Button Grid.Column="0" Click="MoveCursorLeft" Content="◀" />
|
||
<Button Grid.Column="1" Click="Accept" Command="{Binding AcceptCommand}" Content="Применить" />
|
||
<Button Grid.Column="2" Click="Cancel" Command="{Binding CancelCommand}" Content="Отменить" />
|
||
<Button Grid.Column="3" Click="MoveCursorRight" Content="▶" />
|
||
</Grid>
|
||
</Grid>
|
||
|
||
</Grid>
|
||
|
||
</UserControl>
|