<Window x:Class="CCDCountWpf.UserLoginWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
        xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
        xmlns:local="clr-namespace:CCDCountWpf"
        mc:Ignorable="d"
        Title="UserLoginWindow" Height="300" Width="450"
        WindowStyle="None" AllowsTransparency="True"
        WindowStartupLocation="CenterScreen" Icon="/FromImage/mmexport1752891278116.jpg" KeyDown="Window_KeyDown">
    <Grid Background="#B2E0E0E0">
        <Grid VerticalAlignment="Top" Height="60" Background="#FF1200D1">
            <Border BorderBrush="Black" BorderThickness="1"/>
            <Label Content="用户登录" Foreground="White" FontSize="20" VerticalAlignment="Center" HorizontalAlignment="Center"/>
            <Button x:Name="KeyBoardBtn" Height="60" Background="{x:Null}" Click="KeyBoardBtn_Click" Width="60" HorizontalAlignment="Right">
                <StackPanel Orientation="Vertical" HorizontalAlignment="Center">
                    <Image  Source="/FromImage/键盘_白.png" Width="40" Height="40" />
                    <TextBlock Text="键盘" FontSize="10" FontWeight="Bold" Margin="0,0,0,0" HorizontalAlignment="Center" Foreground="White" />
                </StackPanel>
            </Button>
        </Grid>
        <Border  Background="#FF0087FF" 
                    CornerRadius="8"
                    BorderBrush="Gray"
                    BorderThickness="1"
                    Margin="80,120,80,0" Height="155" VerticalAlignment="Top">
            <StackPanel Orientation="Vertical">
                <StackPanel Orientation="Horizontal" Height="95">
                    <StackPanel Orientation="Vertical" Margin="30,0,0,0">
                        <Label  Content="用户名：" HorizontalAlignment="Left" Margin="10,10,0,0" VerticalAlignment="Top" FontWeight="Bold" FontSize="20" Foreground="White"/>
                        <Label  Content="密码：" HorizontalAlignment="Left" Margin="10,10,0,0" VerticalAlignment="Top" FontWeight="Bold" FontSize="20" Foreground="White"/>
                    </StackPanel>
                    <StackPanel Orientation="Vertical">
                        <TextBox x:Name="UserNameTbx" HorizontalAlignment="Left" Margin="0,15,0,0"  Width="120" FontWeight="Bold" FontSize="20" Background="{x:Null}" GotFocus="UserNameTbx_GotFocus"/>
                        <PasswordBox x:Name="UserPassTbx"  HorizontalAlignment="Left" Margin="0,17,0,0" VerticalAlignment="Top" Width="120" FontWeight="Bold" FontSize="20" Background="{x:Null}" GotFocus="UserPassTbx_GotFocus"  />
                    </StackPanel>
                </StackPanel>
                <StackPanel Orientation="Horizontal">
                    <Button x:Name="UserLoginBtn" Content="登录" BorderThickness="1" HorizontalAlignment="Left" Margin="50,10,10,0" VerticalAlignment="Top" Width="80" Height="40" Background="#B20123FF" FontWeight="Bold" FontSize="20" Foreground="White" Click="UserLoginBtn_Click" Cursor="Hand">
                        <Button.Template>
                            <ControlTemplate TargetType="Button">
                                <Border CornerRadius="5" 
                                            Background="{TemplateBinding Background}"
                                            BorderBrush="{TemplateBinding BorderBrush}"
                                            BorderThickness="{TemplateBinding BorderThickness}">
                                    <ContentPresenter HorizontalAlignment="Center" VerticalAlignment="Center"/>
                                </Border>
                            </ControlTemplate>
                        </Button.Template>
                    </Button>
                    <Button x:Name="UserCancelBtn" Content="取消" BorderThickness="1" HorizontalAlignment="Left" Margin="10,10,10,0" VerticalAlignment="Top" Width="80" Height="40" Background="#B20123FF" FontWeight="Bold" FontSize="20" Foreground="White" Click="UserCancelBtn_Click" Cursor="Hand">
                        <Button.Template>
                            <ControlTemplate TargetType="Button">
                                <Border CornerRadius="5" 
                                            Background="{TemplateBinding Background}"
                                            BorderBrush="{TemplateBinding BorderBrush}"
                                            BorderThickness="{TemplateBinding BorderThickness}">
                                    <ContentPresenter HorizontalAlignment="Center" VerticalAlignment="Center"/>
                                </Border>
                            </ControlTemplate>
                        </Button.Template>
                    </Button>
                </StackPanel>
            </StackPanel>
            <!-- 卡片内容 -->
        </Border>
    </Grid>
</Window>
