spc-kiosk-pb/Kiosk/Popup/SPC.Kiosk.Popup/NumPadPopup.xaml
2019-06-16 14:12:09 +09:00

116 lines
6.4 KiB
XML

<Window x:Class="SPC.Kiosk.Popup.NumPadPopup"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:local="clr-namespace:SPC.Kiosk.Popup"
xmlns:uc ="clr-namespace:SPC.Kiosk.Common;assembly=SPC.Kiosk.Common"
xmlns:vm ="clr-namespace:SPC.Kiosk.Popup.ViewModel;assembly=SPC.Kiosk.Popup.ViewModel"
mc:Ignorable="d"
d:DesignHeight="800" d:DesignWidth="540"
ShowInTaskbar="False"
Topmost="True"
WindowStyle="None"
WindowState="Normal"
AllowsTransparency="True"
Background="Transparent">
<Window.Resources>
<uc:BoolToVisibility x:Key="ToVisibility" />
</Window.Resources>
<Window.DataContext>
<vm:VmNumPadPopup/>
</Window.DataContext>
<Window.InputBindings>
<KeyBinding Modifiers="Alt" Key="F4" Command="{Binding ToExecuteNothing}" />
</Window.InputBindings>
<Grid x:Name="FormBase" Background="#C0000000">
<Grid x:Name="FrameBase" Width="540" Height="800" Background="White">
<Grid.RowDefinitions>
<RowDefinition Height="*"/>
<RowDefinition Height="80"/>
</Grid.RowDefinitions>
<Grid x:Name="FrameData" Grid.Row="0">
<Grid.RowDefinitions>
<RowDefinition Height="79"/>
<RowDefinition Height="82"/>
<RowDefinition Height="*"/>
</Grid.RowDefinitions>
<uc:MutiLanguageTextBlock x:Name="NumPadInput"
Grid.Row="1"
VerticalAlignment="Top"
Text="{Binding Path=ShowText ,ElementName=NumPad}"
FontFamily="NanumSquare"
Foreground="#1469cc"
FontSize="35"
FontWeight="Bold"
TextAlignment="Center"
Margin="0,16,0,0"
Visibility="{Binding NumPadInputVisible,Converter={StaticResource ToVisibility}}"
/>
<uc:MutiLanguageTextBlock x:Name="NumPadGuide"
Grid.Row="1"
VerticalAlignment="Top"
Text="{Binding Path=ShowText ,ElementName=NumPad}"
FontFamily="NanumSquare"
Foreground="#555555"
FontSize="24"
FontWeight="Normal"
TextAlignment="Center"
Margin="0,21,0,0"
Visibility="{Binding NumPadGuideVisible,Converter={StaticResource ToVisibility}}"
/>
<local:PBNumericPad x:Name="NumPad"
Grid.Row="2"
VerticalAlignment="Top"
HorizontalAlignment="Center"
Width="420"
Height="472"
Formated="{Binding Formated}"
IsPassWord="{Binding IsPassword}"
MaxLength="{Binding NumPadMaxLength}"
GuidText="{Binding NumPadGuidText}"
InputText="{Binding InputNumbers,Mode=TwoWay}"
DisplayLanguage="{Binding ShowLanguageType}"
/>
</Grid>
<StackPanel x:Name="ButtonStack" Grid.Row="1"
Orientation="Horizontal">
<uc:AnimationButton x:Name="Cancel_Button"
VerticalAlignment="Center"
HorizontalAlignment="Left"
Width="{Binding CancelButtonWidth}"
Height="80"
NormalBrush="#333333"
BrushStretch = "Fill"
ClickAnimationType="TextSizeDown"
TextFontFamily="NanumSquare"
TextVisible ="Visible"
TextFontSize ="30"
TextForeground = "White"
TextFontWeight ="Bold"
LanguageText="{Binding CancelButtonText}"
DisplayLanguage="{Binding ShowLanguageType}"
Command="{Binding CancelCommand}"/>
<uc:AnimationButton x:Name="OK_Button"
VerticalAlignment="Center"
HorizontalAlignment="Right"
Width="{Binding OKButtonWidth}"
Height="80"
NormalBrush="#1469cc"
BrushStretch = "Fill"
DisableBrush="#aaaaaa"
ClickAnimationType="TextSizeUp"
TextVisible ="Visible"
TextFontSize ="30"
TextForeground = "White"
DisableForeground="#dddddd"
TextFontWeight ="Bold"
Enabled="{Binding OKButtonEnabled}"
LanguageText="{Binding OkButtonText}"
DisplayLanguage="{Binding ShowLanguageType}"
Command="{Binding OkCommand}"/>
</StackPanel>
</Grid>
</Grid>
</Window>