2025-03-28 09:49:56 +08:00

556 lines
49 KiB
XML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<Window xmlns:TouchCashier="clr-namespace:TouchCashier" x:Class="TouchCashier.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:wfi="clr-namespace:System.Windows.Forms.Integration;assembly=WindowsFormsIntegration"
xmlns:winForms="clr-namespace:System.Windows.Forms;assembly=System.Windows.Forms"
xmlns:input="clr-namespace:System.Windows.Input;assembly=PresentationCore"
xmlns:PasswordStyle="clr-namespace:TouchCashier.Utils.Other"
Title="收银系统" Height="768" Width="1366" WindowStyle="None" HorizontalAlignment="Stretch"
VerticalAlignment="Stretch" Topmost="True" Background="Transparent" WindowState="Maximized"
WindowStartupLocation="CenterScreen" ResizeMode="NoResize" BorderThickness="0" AllowsTransparency="True"
Loaded="Window_Loaded" PreviewKeyDown="Window_KeyDown">
<Window.Resources>
<Style x:Key="zjCheckBoxStyle" TargetType="{x:Type CheckBox}">
<Setter Property="SnapsToDevicePixels" Value="true" />
<Setter Property="OverridesDefaultStyle" Value="False" />
<Setter Property="Height" Value="25"/>
<Setter Property="IsChecked" Value="False"/>
<Setter Property="Margin" Value="0,20"/>
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="{x:Type CheckBox}">
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="Auto"/>
<ColumnDefinition Width="*"/>
</Grid.ColumnDefinitions>
<Grid Height="{TemplateBinding Height}" Width="{TemplateBinding Height}">
<Rectangle x:Name="CheckBoxRectangle" Fill="White" Opacity="0.3" RadiusY="5" RadiusX="5"/>
<Rectangle x:Name="CheckBoxRectangleOut" Stroke="Black" StrokeThickness="1" RadiusY="5" RadiusX="5"/>
<Grid x:Name="CheckedMark" Width="20" Height="20" Visibility="Collapsed">
<Path SnapsToDevicePixels="False" StrokeThickness="3" Data="M1,9 L10,17" Stroke="White"/>
<Path SnapsToDevicePixels="False" StrokeThickness="3" Data="M8,17 L20,4" Stroke="White"/>
</Grid>
</Grid>
<TextBlock Grid.Column="1" Text="{TemplateBinding Content}" FontSize="16" Foreground="Black" VerticalAlignment="Center" Margin="5,0,0,0"/>
</Grid>
<ControlTemplate.Triggers>
<Trigger Property="IsChecked" Value="True">
<Setter TargetName="CheckedMark" Property="Visibility" Value="Visible"/>
<Setter TargetName="CheckBoxRectangle" Property="Fill" Value="#ff6640"/>
<Setter TargetName="CheckBoxRectangle" Property="Opacity" Value="1"/>
<Setter TargetName="CheckBoxRectangleOut" Property="Stroke" Value="Transparent"/>
</Trigger>
</ControlTemplate.Triggers>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
<Style x:Key="gzCheckBoxStyle" TargetType="{x:Type CheckBox}">
<Setter Property="SnapsToDevicePixels" Value="true" />
<Setter Property="OverridesDefaultStyle" Value="False" />
<Setter Property="Height" Value="25"/>
<Setter Property="IsChecked" Value="False"/>
<Setter Property="Margin" Value="0,20"/>
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="{x:Type CheckBox}">
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="Auto"/>
<ColumnDefinition Width="*"/>
</Grid.ColumnDefinitions>
<Grid Height="{TemplateBinding Height}" Width="{TemplateBinding Height}">
<Rectangle x:Name="CheckBoxRectangle" Fill="White" Opacity="0.3" RadiusY="5" RadiusX="5"/>
<Rectangle x:Name="CheckBoxRectangleOut" Stroke="Black" StrokeThickness="1" RadiusY="5" RadiusX="5"/>
<Grid x:Name="CheckedMark" Width="20" Height="20" Visibility="Collapsed">
<Path SnapsToDevicePixels="False" StrokeThickness="3" Data="M1,9 L10,17" Stroke="White"/>
<Path SnapsToDevicePixels="False" StrokeThickness="3" Data="M8,17 L20,4" Stroke="White"/>
</Grid>
</Grid>
<TextBlock Grid.Column="1" Text="{TemplateBinding Content}" FontSize="16" Foreground="Black" VerticalAlignment="Center" Margin="5,0,0,0"/>
</Grid>
<ControlTemplate.Triggers>
<Trigger Property="IsChecked" Value="True">
<Setter TargetName="CheckedMark" Property="Visibility" Value="Visible"/>
<Setter TargetName="CheckBoxRectangle" Property="Fill" Value="#00ad94"/>
<Setter TargetName="CheckBoxRectangle" Property="Opacity" Value="1"/>
<Setter TargetName="CheckBoxRectangleOut" Property="Stroke" Value="Transparent"/>
</Trigger>
</ControlTemplate.Triggers>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
<Style TargetType="{x:Type ProgressBar}">
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="{x:Type ProgressBar}" >
<Grid MinHeight="10" MinWidth="200">
<Border x:Name="PART_Track" CornerRadius="0" BorderBrush="#109EED" BorderThickness="0" Background="#FFCDCDCD" />
<Border x:Name="PART_Indicator" CornerRadius="0" BorderBrush="#109EED" BorderThickness="0" HorizontalAlignment="Left" >
<Border.Background>
<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0" Opacity="0.8">
<GradientStop Color="#FF1E7AD6" Offset="0"/>
<GradientStop Color="#FF1E7AD6" Offset="0.5"/>
<GradientStop Color="#FF1E7AD6" Offset="1"/>
</LinearGradientBrush>
</Border.Background>
</Border>
</Grid>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
</Window.Resources>
<Grid>
<Viewbox StretchDirection="UpOnly" Margin="0" MinWidth="1366" MinHeight="768">
<Border BorderBrush="#FFD3C9C9" CornerRadius="0" BorderThickness="0" Width="1366" Height="768">
<Grid>
<Grid.Background>
<ImageBrush ImageSource="/Image/LoginMain/背景.png" Stretch="Fill"/>
</Grid.Background>
<Grid Style="{StaticResource ResourceKey=TitleStyle}" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" >
<Grid.RowDefinitions>
<RowDefinition Height="*" />
<RowDefinition Height="6*" />
<RowDefinition Height="*" />
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*"/>
<ColumnDefinition Width="4*"/>
<ColumnDefinition Width="*"/>
</Grid.ColumnDefinitions>
<!--#region 界面顶部-->
<Grid Grid.Row="0" Grid.Column="0" Grid.ColumnSpan="3">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="150"/>
<ColumnDefinition Width="*"/>
<ColumnDefinition Width="150"/>
<ColumnDefinition Width="80"/>
</Grid.ColumnDefinitions>
<!--#region 左上角Logo-->
<Image Grid.Column="0" Margin="14" Stretch="None" HorizontalAlignment="Left"
VerticalAlignment="Top" Source="/Image/LoginMain/logo.png"/>
<!--#endregion-->
<!--#region 右上角设置按钮-->
<Button Grid.Column="2" Margin="0,12,15,0" Click="ButtonSet_Click" MinWidth="103"
MinHeight="45" HorizontalAlignment="Right" VerticalAlignment="Top"
Style="{StaticResource ResourceKey=ButtonUn}">
<Button.Template>
<ControlTemplate>
<Grid Background="Transparent">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="Auto"/>
<ColumnDefinition Width="*"/>
</Grid.ColumnDefinitions>
<Border Grid.ColumnSpan="2" CornerRadius="23" Background="#C8CFE2" Opacity="0.56"/>
<Image Stretch="None" Margin="10,6,0,6"
Source="/Image/LoginMain/设置.png"/>
<TextBlock Grid.Column="1" Margin="5,0" FontSize="18" Text="设置"
TextAlignment="Center" VerticalAlignment="Center" Foreground="#FFFFFF"
HorizontalAlignment="Left" FontFamily="Microsoft YaHei"/>
</Grid>
</ControlTemplate>
</Button.Template>
<Button.Background>
<ImageBrush ImageSource="/Image/LoginMain/设置.png" Stretch="None"/>
</Button.Background>
</Button>
<!--#endregion-->
<!--#region 右上角关闭按钮-->
<Button Grid.Column="3" Margin="10,15,25,0" Click="ButtonClose_Click" HorizontalAlignment="Right" VerticalAlignment="Top" MinWidth="45" MinHeight="40" Style="{StaticResource ResourceKey=ButtonUn}">
<Button.Background>
<ImageBrush ImageSource="/Image/LoginMain/退出.png" Stretch="None"/>
</Button.Background>
</Button>
<!--#endregion-->
</Grid>
<!--#endregion-->
<!--#region 界面中间-->
<Border Grid.Row="1" Grid.Column="1" CornerRadius="6" Background="White" >
<Border.Effect>
<DropShadowEffect Color="Black" BlurRadius="5" ShadowDepth="0" Opacity="0.3" Direction="0"/>
</Border.Effect>
<Grid>
<!--#region 中间Logo-->
<Grid.Background>
<ImageBrush Stretch="Uniform" AlignmentX="Left" ImageSource="/Image/LoginMain/渐变.png"/>
</Grid.Background>
<Grid.ColumnDefinitions >
<ColumnDefinition Width="2*"/>
<ColumnDefinition Width="2*"/>
</Grid.ColumnDefinitions>
<Image Grid.Row="0" Grid.Column="0" Stretch="Uniform" Source="/Image/LoginMain/LogoMax.png" Margin="50,150"/>
<!--#endregion-->
<Grid Grid.Column="1">
<Grid.RowDefinitions>
<RowDefinition Height="*"/>
<RowDefinition Height="*"/>
<RowDefinition Height="*"/>
<RowDefinition Height="*"/>
<RowDefinition Height="*"/>
<RowDefinition Height="*"/>
<RowDefinition Height="*"/>
</Grid.RowDefinitions>
<TextBlock Grid.Row="1" FontSize="22" Text="登 录" TextAlignment="Center"
VerticalAlignment="Center" HorizontalAlignment="Center"
FontFamily="Microsoft YaHei"/>
<!--#region 工号输入框-->
<TextBox x:Name="tbUserName" Grid.Row="2" Margin="50,15" KeyDown="TextBoxUserName_KeyDown"
TextAlignment="Left" BorderThickness="0,0,0,0" VerticalContentAlignment="Center" FontSize="18" FontFamily="Microsoft YaHei">
<!--#region 工名输入框特效-->
<TextBox.Style>
<Style TargetType="TextBox">
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="{x:Type TextBox}">
<Border x:Name="textBorder" CornerRadius="6" Background="#FFFFFF" >
<Border.Effect>
<DropShadowEffect Color="#39B5FA" BlurRadius="5" ShadowDepth="0" Opacity="1" Direction="0"/>
</Border.Effect>
<Grid Background="{Binding}">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="50"/>
<ColumnDefinition Width="*"/>
</Grid.ColumnDefinitions>
<Image Stretch="None" VerticalAlignment="Center" HorizontalAlignment="Center" Source="/Image/LoginMain/工号.png"/>
<ScrollViewer x:Name="PART_ContentHost" Grid.Column="1" Focusable="false" HorizontalScrollBarVisibility="Hidden" VerticalScrollBarVisibility="Hidden"/>
</Grid>
</Border>
<ControlTemplate.Triggers>
<Trigger Property="IsFocused" Value="False">
<Setter Property="Background" Value="#EEF0F4"/>
<Setter Property="Background" TargetName="textBorder" Value="#EEF0F4"/>
<Setter Property="Effect" TargetName="textBorder">
<Setter.Value>
<DropShadowEffect Color="#D8DBE2" BlurRadius="5" ShadowDepth="0" Opacity="1" Direction="0"/>
</Setter.Value>
</Setter>
</Trigger>
<MultiTrigger>
<MultiTrigger.Conditions>
<Condition Property="IsFocused" Value="False"/>
<Condition Property="Text" Value=""/>
</MultiTrigger.Conditions>
<Setter Property="Background" TargetName="PART_ContentHost">
<Setter.Value>
<VisualBrush AlignmentX="Left" AlignmentY="Center" Stretch="None">
<VisualBrush.Visual>
<TextBlock Padding="2,2" Background="{Binding}" Foreground="#878A90" FontSize="18" Text="请输入工号" />
</VisualBrush.Visual>
</VisualBrush>
</Setter.Value>
</Setter>
</MultiTrigger>
</ControlTemplate.Triggers>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
</TextBox.Style>
<!--#endregion-->
</TextBox>
<!--#endregion-->
<!--#region 密码输入框-->
<PasswordBox x:Name="pwbUserPassword" Grid.Row="3" Margin="50,15" Background="Transparent" KeyDown="PasswordBoxUserPassword_KeyDown"
VerticalContentAlignment="Center" BorderThickness="0,0,0,0" FontSize="18" FontFamily="Microsoft YaHei">
<!--#region 密码输入框特效-->
<PasswordBox.Style>
<Style TargetType="PasswordBox">
<Setter Property="PasswordStyle:PasswordBoxMonitor.IsMonitoring" Value="True"/>
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="{x:Type PasswordBox}">
<Border x:Name="pwbBorder" CornerRadius="6" Background="#FFFFFF" >
<Border.Effect>
<DropShadowEffect Color="#39B5FA" BlurRadius="5" ShadowDepth="0" Opacity="1" Direction="0"/>
</Border.Effect>
<Grid Background="{Binding}">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="50"/>
<ColumnDefinition Width="*"/>
</Grid.ColumnDefinitions>
<Image Stretch="None" VerticalAlignment="Center" HorizontalAlignment="Center" Source="/Image/LoginMain/密码.png"/>
<ScrollViewer x:Name="PART_ContentHost" Grid.Column="1" Focusable="false" HorizontalScrollBarVisibility="Hidden" VerticalScrollBarVisibility="Hidden"/>
</Grid>
</Border>
<ControlTemplate.Triggers>
<Trigger Property="IsFocused" Value="False">
<Setter Property="Background" Value="#EEF0F4"/>
<Setter Property="Background" TargetName="pwbBorder" Value="#EEF0F4"/>
<Setter Property="Effect" TargetName="pwbBorder">
<Setter.Value>
<DropShadowEffect Color="#D8DBE2" BlurRadius="5" ShadowDepth="0" Opacity="1" Direction="0"/>
</Setter.Value>
</Setter>
</Trigger>
<MultiTrigger>
<MultiTrigger.Conditions>
<Condition Property="IsFocused" Value="False"/>
<Condition Property="PasswordStyle:PasswordBoxMonitor.PasswordLength" Value="0"/>
</MultiTrigger.Conditions>
<Setter Property="Background" TargetName="PART_ContentHost">
<Setter.Value>
<VisualBrush AlignmentX="Left" AlignmentY="Center" Stretch="None">
<VisualBrush.Visual>
<TextBlock Padding="2,2" Background="{Binding}" Foreground="#878A90" FontSize="18" Text="请输入密码" />
</VisualBrush.Visual>
</VisualBrush>
</Setter.Value>
</Setter>
</MultiTrigger>
</ControlTemplate.Triggers>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
</PasswordBox.Style>
<!--#endregion-->
</PasswordBox>
<!--#endregion-->
<!--#region 登录按钮-->
<Button Grid.Row="5" Click="ButtonLogin_Click" Margin="50,15"
Style="{StaticResource ResourceKey=ButtonUn}">
<Button.Template>
<ControlTemplate>
<Border CornerRadius="4" Background="#E8514A" >
<Border.Effect>
<DropShadowEffect Color="#E8514A" BlurRadius="5" ShadowDepth="0"
Opacity="0.3" Direction="0"/>
</Border.Effect>
<Grid Background="Transparent">
<TextBlock Margin="5,0" FontSize="22" Foreground="#FFFFFF" Text="登录"
TextAlignment="Center" VerticalAlignment="Center"
HorizontalAlignment="Center" FontFamily="Microsoft YaHei"/>
</Grid>
</Border>
</ControlTemplate>
</Button.Template>
<Button.Background>
<ImageBrush ImageSource="/Image/LoginMain/设置.png" Stretch="None"/>
</Button.Background>
</Button>
<!--#endregion-->
</Grid>
</Grid>
</Border>
<!--#endregion-->
<!--#region 界面底部-->
<Grid Grid.Row="2" Grid.Column="0" Grid.ColumnSpan="3">
<Grid.RowDefinitions>
<RowDefinition Height="*"/>
<RowDefinition Height="2*"/>
<RowDefinition Height="3*"/>
</Grid.RowDefinitions>
<Border Grid.Row="1" Grid.RowSpan="2" CornerRadius="0" Background="#202035" Opacity="0.6"/>
<Border Grid.Row="1" CornerRadius="0" Background="#2B2C3E" Opacity="0.54">
<Border.Effect>
<DropShadowEffect Color="#2B2C3E" BlurRadius="2" ShadowDepth="0" Opacity="0.54" Direction="0"/>
</Border.Effect>
</Border>
<TextBlock x:Name="tbMessage" Grid.Row="1" Margin="5" Foreground="#CED1D6" Text="系统启动中..."
FontSize="14" TextAlignment="Center" VerticalAlignment="Center"
HorizontalAlignment="Center" FontFamily="Microsoft YaHei"/>
<TextBlock x:Name="tbVersion" Grid.Row="2" Margin="5" Foreground="#CED1D6" Text="版本1.0.1.6 2021110586400"
FontSize="12" TextAlignment="Center" VerticalAlignment="Top"
HorizontalAlignment="Center" FontFamily="Microsoft YaHei"/>
</Grid>
<!--#endregion-->
<!--#region 原界面元素,先隐藏-->
<!--<Grid Visibility="Collapsed">
<Grid Grid.Row="1" Grid.Column="1" HorizontalAlignment="Stretch" VerticalAlignment="Stretch">
<Image Stretch="None" Margin="155,0,628,0" x:Name="img_logo" VerticalAlignment="Stretch" HorizontalAlignment="Stretch"/>
<TextBlock Text="驿商统一收银系统" FontSize="55" x:Name="TxtSoftwareName" Margin="275,45,173,44" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Style="{DynamicResource FontStyle}">
<TextBlock.Effect>
<DropShadowEffect Color="#175d88" BlurRadius="8" ShadowDepth="4" Opacity="1"/>
</TextBlock.Effect>
<TextBlock.Foreground>
<LinearGradientBrush StartPoint="0.5,0" EndPoint="0.5,1">
<LinearGradientBrush.GradientStops>
<GradientStop Offset="3" Color="#309bf6" />
<GradientStop Color="#ffffff" />
</LinearGradientBrush.GradientStops>
</LinearGradientBrush>
</TextBlock.Foreground>
</TextBlock>
<Button Style="{StaticResource ResourceKey=ButtonUn}" Click="Button_Click" x:Name="btnarport" Margin="770,0,86,110" HorizontalAlignment="Stretch" VerticalAlignment="Stretch">
<Button.Background>
<ImageBrush ImageSource="/libESImage;Component/Image/新样式/菜单/显示器.png" Stretch="None"/>
</Button.Background>
</Button>
<Button Margin="725,0,130,110" Style="{StaticResource ResourceKey=ButtonUn}" Click="Button_Click" x:Name="btnScaveng" HorizontalAlignment="Stretch" VerticalAlignment="Stretch">
<Button.Background>
<ImageBrush ImageSource="/libESImage;Component/Image/Parameter/扫码配置.png" Stretch="None"/>
</Button.Background>
</Button>
<Button Style="{StaticResource ResourceKey=ButtonUn}" Click="Button_Click" x:Name="btnDownDate" HorizontalAlignment="Stretch" VerticalAlignment="Stretch">
<Button.Background>
<ImageBrush ImageSource="/libESImage;Component/Image/新样式/菜单/下载.png" Stretch="None"/>
</Button.Background>
</Button>
</Grid>
<Grid Grid.Row="1" HorizontalAlignment="Stretch" VerticalAlignment="Stretch">
<Border Grid.Row="0" Margin="20,0,20,0" BorderBrush="#FFF0F0F0" BorderThickness="0,1,0,1">
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="258*"/>
<ColumnDefinition Width="13*"/>
<ColumnDefinition Width="421*"/>
<ColumnDefinition Width="168*"/>
</Grid.ColumnDefinitions>
<CheckBox Margin="0,12,151,11" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Style="{StaticResource ResourceKey=CheckBoxStyle}"
x:Name="chk_log" Content="键盘版[F2]" IsChecked="False" Click="chk_log_Click_1" IsTabStop="False"/>
<Border Margin="115,10,11,10" BorderBrush="#FFC1BBBB" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" BorderThickness="1,0,0,0"/>
<CheckBox Margin="130,12,16,11" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Style="{StaticResource ResourceKey=CheckBoxStyle}"
x:Name="chk_other" Content="触屏版[F2]" IsChecked="True" Click="chk_other_Click_1" IsTabStop="False"/>
-->
<!--<TextBlock TextAlignment="Center" HorizontalAlignment="Stretch" VerticalAlignment="Center" FontSize="25" Text="用户登录" Margin="245,9,245,0" Height="39"></TextBlock>-->
<!--
<Border Margin="0,10,11,10" BorderBrush="#FFC1BBBB" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" BorderThickness="1,0,0,0" Grid.Column="1" />
<Button Margin="-260,1,7,1" Click="Button_Click" x:Name="btn_report" Grid.Column="2"
Style="{StaticResource ResourceKey=ButtonPay}" FontSize="16" Width="150"
Background="#ffffff" Height="46" VerticalAlignment="Center" Grid.Row="0" Focusable="False">
<Button.Template>
<ControlTemplate>
<Grid Background="#ffffff" x:Name="Grid_menu">
<Image Stretch="Uniform" Margin="0,6,100,0" Source="/libESImage;Component/Image/新样式/顶部菜单/系统菜单优化.png"/>
<TextBlock Text="报表查询[F5]" Margin="50,14,0,14" FontSize="16" VerticalAlignment="Center"/>
</Grid>
</ControlTemplate>
</Button.Template>
</Button>
<Button Margin="118,0,0,0" Style="{DynamicResource ResourceKey=ButtonPay}" Click="Button_Click" x:Name="btn_face" Grid.Column="3">
<Button.Background>
<ImageBrush ImageSource="/libESImage;Component/Image/支付/人脸识别.png" Stretch="None"/>
</Button.Background>
</Button>
<Button Margin="70,0,48,0" Style="{DynamicResource ResourceKey=ButtonPay}" Click="Button_Click" x:Name="btn_finger" Grid.Column="3">
<Button.Background>
<ImageBrush ImageSource="/libESImage;Component/Image/支付/指纹icon.png" Stretch="None"/>
</Button.Background>
</Button>
<Button Margin="22,0,96,0" Style="{DynamicResource ResourceKey=ButtonPay}" Click="Button_Click" x:Name="btn_user" Grid.Column="3">
<Button.Background>
<ImageBrush ImageSource="/libESImage;Component/Image/支付/账号.png" Stretch="None"/>
</Button.Background>
</Button>
-->
<!--<Button Margin="749,-1,0,0" Content="基础信息" FontSize="20" x:Name="btnarport" Click="Button_Click" Foreground="#ffffff" Style="{StaticResource ResourceKey=ButtonPay}" Visibility="Collapsed"/>-->
<!--
</Grid>
</Border>
</Grid>
<Grid Grid.Row="2" Margin="0,0,0,0" HorizontalAlignment="Stretch" VerticalAlignment="Stretch">
<Grid HorizontalAlignment="Stretch" VerticalAlignment="Stretch" x:Name="Grid_LoginUser" Visibility="Visible">
<Grid Margin="100,95,100,118" x:Name="Grid_User" HorizontalAlignment="Center" VerticalAlignment="Stretch">
<StackPanel Grid.Column="0" Orientation="Horizontal" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" x:Name="stp_title">
<Image Margin="50,4,0,0" Width="37" Height="35" VerticalAlignment="Top" x:Name="img_login" HorizontalAlignment="Stretch"/>
<TextBlock Margin="10,12,0,0" Width="90" Text="账号登录" FontSize="20" VerticalAlignment="Top" HorizontalAlignment="Stretch"/>
</StackPanel>
<StackPanel Grid.Column="0" Orientation="Horizontal" Margin="40,45,55,25" Visibility="Collapsed" x:Name="stp_img" HorizontalAlignment="Stretch" VerticalAlignment="Stretch">
<TouchCashier:LoadingTime />
<WindowsFormsHost Foreground="{x:Null}" Margin="0,0,0,0" Width="265" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Visibility="Collapsed">
<winForms:PictureBox SizeMode="Zoom" x:Name="imga" />
</WindowsFormsHost>
</StackPanel>
<StackPanel Grid.Column="0" Orientation="Horizontal" x:Name="stp_name" HorizontalAlignment="Stretch" VerticalAlignment="Stretch">
<Image Margin="80,65,0,0" Width="28" Height="28" VerticalAlignment="Top" x:Name="img_uname" HorizontalAlignment="Stretch"/>
<TextBlock Text="账号:" FontSize="20" Margin="5,68,0,0" Foreground="#000000" Height="26" VerticalAlignment="Top" HorizontalAlignment="Stretch"/>
-->
<!--<TextBox Margin="12,64,0,0" GotFocus="TxtUserName_GotFocus_1" VerticalContentAlignment="Center" Background="#f1f1f1"
HorizontalAlignment="Stretch" ContextMenu="{x:Null}" x:Name="TxtUserName" KeyDown="TextBoxUserName_KeyDown"
Width="199" FontSize="20" InputMethod.IsInputMethodEnabled="False" Height="34" VerticalAlignment="Top" TabIndex="1"/>-->
<!--
</StackPanel>
<StackPanel Grid.Column="0" Orientation="Horizontal" HorizontalAlignment="Stretch" x:Name="stp_pwd">
<Image Margin="80,127,0,0" Width="28" Height="29" VerticalAlignment="Top" x:Name="img_pwd" HorizontalAlignment="Stretch"/>
<TextBlock Text="密码:" FontSize="20" Margin="5,131,0,0" Foreground="#000000" Height="25" VerticalAlignment="Top" HorizontalAlignment="Stretch" />
<PasswordBox FontSize="20" GotFocus="TxtUserName_GotFocus_1" VerticalContentAlignment="Center" HorizontalAlignment="Stretch" Margin="12,127,0,0"
Background="#f1f1f1" x:Name="TxtPwd" Width="199" KeyDown="TxtPwd_KeyDown" PasswordChar="*" InputMethod.IsInputMethodEnabled="False" Height="34"
VerticalAlignment="Top" IsTabStop="False" ContextMenu="{x:Null}"/>
-->
<!--<Button Visibility="Visible" Cursor="Hand" x:Name="btn_detailed" Margin="10,129,0,0" Click="Button_Click" Content="参数设置" Background="White" Foreground="#63acf4" BorderBrush="#63acf4" BorderThickness="1" Style="{DynamicResource ResourceKey=ButtonParameter}" Width="56" Height="30" VerticalAlignment="Top" />-->
<!--
</StackPanel>
<StackPanel Grid.Column="0" Orientation="Horizontal" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Width="Auto">
<TextBlock Margin="0,177,0,0" FontSize="16" HorizontalAlignment="Center" TextAlignment="Center" x:Name="TxtMessage" Foreground="Red" MinWidth="450" Height="25" VerticalAlignment="Top"/>
</StackPanel>
</Grid>
<StackPanel Grid.Column="0" Orientation="Vertical" Margin="0,0,0,10" HorizontalAlignment="Left" VerticalAlignment="Bottom">
<TextBlock Width="200" Margin="15,10,10,0" x:Name="TxtVersion" FontSize="16" TextAlignment="Left" VerticalAlignment="Center" />
<TextBlock Width="200" Margin="15,3,10,0" x:Name="TxtExpiryDate" FontSize="16" TextAlignment="Left" VerticalAlignment="Center" Visibility="Collapsed"/>
<Button Cursor="Hand" x:Name="btn_login" Margin="24,190,0,49" Background="#FF0984FF" Content="登录" FontSize="20" Click="Button_Click"
Width="106" Foreground="White" Visibility="Collapsed" HorizontalAlignment="Stretch" VerticalAlignment="Stretch"/>
</StackPanel>
</Grid>
<Grid HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Visibility="Collapsed" x:Name="Grid_LoginFinger">
<Grid Margin="265,95,263,118" HorizontalAlignment="Stretch" VerticalAlignment="Stretch">
<StackPanel Orientation="Horizontal" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Margin="100,0,0,0">
<Image Margin="3,4,0,0" Width="37" Height="35" VerticalAlignment="Top" x:Name="img_loginfinger" HorizontalAlignment="Stretch" Source="/libESImage;Component/Image/支付/指纹icon.png"/>
<TextBlock Margin="10,12,0,0" Width="90" Text="指纹登录" FontSize="20" VerticalAlignment="Top" HorizontalAlignment="Stretch"/>
</StackPanel>
<StackPanel Orientation="Horizontal" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Margin="100,0,0,0">
<Image Source="/libESImage;Component/Image/基础/静态指纹.png" Width="132" Margin="20,70,0,0" x:Name="img_finger" Height="105" VerticalAlignment="Top" HorizontalAlignment="Stretch"/>
<WindowsFormsHost Width="130" Foreground="{x:Null}" Margin="20,70,0,0" Height="105" VerticalAlignment="Top" HorizontalAlignment="Stretch" x:Name="gif_finger" Visibility="Collapsed">
<winForms:PictureBox x:Name="PictureFigr" SizeMode="Zoom"/>
</WindowsFormsHost>
</StackPanel>
<StackPanel Grid.Column="0" Orientation="Horizontal" HorizontalAlignment="Stretch" VerticalAlignment="Stretch">
<TextBlock Margin="0,195,30,0" FontSize="18" HorizontalAlignment="Stretch" TextAlignment="Center" x:Name="TxtState" Foreground="Red" Width="370" Height="30" VerticalAlignment="Top"/>
</StackPanel>
</Grid>
</Grid>
<Grid HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Visibility="Collapsed" x:Name="Grid_LoginFace">
<Grid Margin="265,95,263,118" x:Name="Grid_Face" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Grid.Row="1">
<StackPanel Orientation="Horizontal" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Margin="100,0,0,0">
<Image Margin="3,4,0,0" Width="37" Height="35" VerticalAlignment="Top" HorizontalAlignment="Stretch" Source="/libESImage;Component/Image/支付/人脸识别.png"/>
<TextBlock Margin="10,12,0,0" Width="90" Text="人脸登录" FontSize="20" VerticalAlignment="Top" HorizontalAlignment="Stretch"/>
</StackPanel>
<StackPanel Orientation="Horizontal" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Margin="100,0,0,0">
<Image Source="/libESImage;Component/Image/基础/静态人脸.png" Width="129" Margin="20,70,0,0" x:Name="img_face" Height="105" VerticalAlignment="Top" HorizontalAlignment="Stretch"/>
<WindowsFormsHost Width="130" Foreground="{x:Null}" Margin="20,70,0,0" Height="105" VerticalAlignment="Top" Visibility="Collapsed" HorizontalAlignment="Stretch" x:Name="gif_face">
<winForms:PictureBox x:Name="PictureFace" SizeMode="Zoom"/>
</WindowsFormsHost>
</StackPanel>
<StackPanel Grid.Column="0" Orientation="Horizontal" HorizontalAlignment="Stretch" VerticalAlignment="Stretch">
<TextBlock Margin="0,195,0,0" FontSize="18" TextAlignment="Center" x:Name="TxtStateFace" Foreground="Red" Width="370" Height="25" VerticalAlignment="Top" HorizontalAlignment="Stretch"/>
</StackPanel>
</Grid>
</Grid>
<Grid HorizontalAlignment="Stretch" VerticalAlignment="Stretch" x:Name="GridLoad" Visibility="Collapsed">
<Grid Margin="265,95,263,118" x:Name="GridUser" HorizontalAlignment="Stretch" VerticalAlignment="Stretch">
<TouchCashier:LoadingTime Margin="0,0,0,55" />
<TextBlock Margin="0,195,0,0" Text="正在自动登录请稍候...." x:Name="TxtMsg" FontSize="20" TextAlignment="Center"/>
</Grid>
</Grid>
<Grid Grid.ColumnSpan="3" Margin="240,453,240,0" x:Name="Grid_keyboard" Focusable="False">
<Grid.Background>
<ImageBrush ImageSource="/libESImage;Component/Image/基础/bacgs.png"/>
</Grid.Background>
<TouchCashier:DigitalKeyboard Margin="25,20,20,10" />
</Grid>
<TextBox Margin="0,448,0,0" x:Name="txt_focus" HorizontalAlignment="Right" VerticalAlignment="Top" Width="444" Height="0"/>
<TextBlock Margin="196,44,198,382" TextAlignment="Center" Foreground="Red" VerticalAlignment="Center" FontSize="18" x:Name="TxtLogin" Grid.ColumnSpan="3" HorizontalAlignment="Stretch"/>
<WindowsFormsHost Foreground="{x:Null}" HorizontalAlignment="Stretch" Margin="275,10,240,0" Height="56" VerticalAlignment="Top" Focusable="False" x:Name="Grid_wf" Visibility="Collapsed">
<winForms:PictureBox x:Name="imgload" SizeMode="Zoom"/>
</WindowsFormsHost>
</Grid>
</Grid>-->
<!--#endregion-->
</Grid>
<!--<Grid x:Name="Grid_Load" Visibility="Collapsed">
<Grid Background="Black" Opacity="0.5"/>
<Grid VerticalAlignment="Center" HorizontalAlignment="Center" Height="300">
<TouchCashier:LoadingTime />
<TextBlock Text="正在加载数据,请稍候..." TextAlignment="Center" Foreground="White" FontSize="20" Height="30" Margin="0,260,0,0" VerticalAlignment="Top" x:Name="TxtLoad"></TextBlock>
</Grid>
<ProgressBar Margin="299,474,299,148" Maximum="100" x:Name="pbrDown"/>
</Grid>-->
</Grid>
</Border>
</Viewbox>
</Grid>
</Window>