<Window x:Class="Khd.Core.Wpf.LoginPage"
        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:Khd.Core.Wpf"
        mc:Ignorable="d"
        Title="LoginPage" Height="350" Width="500"  WindowStartupLocation="CenterScreen"   ResizeMode="NoResize" WindowStyle="None" Loaded="Window_Loaded">
    <Window.Resources>
        <ResourceDictionary>
            <ResourceDictionary.MergedDictionaries>
                <ResourceDictionary Source="/CSS/SearchBtnClass.xaml"></ResourceDictionary>
                <ResourceDictionary Source="/CSS/SearchTextClass.xaml"></ResourceDictionary>
                <ResourceDictionary Source="/CSS/DataGridClass.xaml"></ResourceDictionary>
            </ResourceDictionary.MergedDictionaries>
        </ResourceDictionary>
    </Window.Resources>
    <Window.Background>
        <LinearGradientBrush EndPoint="0.497,1.167" StartPoint="0.503,-0.167">
            <GradientStop Color="#FF000000" Offset="0"/>
            <GradientStop Color="#1AFFFFFF" Offset="1"/>
        </LinearGradientBrush>
    </Window.Background>
    <Grid>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="1*"/>
            <ColumnDefinition Width="10*"/>
            <ColumnDefinition Width="2*"/>
        </Grid.ColumnDefinitions>
        <Grid.RowDefinitions>
            <RowDefinition Height="50"  />
            <RowDefinition Height="20"  />
            <RowDefinition/>
            <RowDefinition  Height="50"/>
        </Grid.RowDefinitions>
        <Label  Grid.Row="0" Content="用户登录" Grid.ColumnSpan="3" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" HorizontalContentAlignment="Center" Background="#1f1c31" VerticalContentAlignment="Center"  FontSize="35"   FontWeight="Bold"  Foreground="White" MouseLeftButtonDown="ShuBiaoShuangJi" />
        <Grid Grid.Row="2" Grid.Column="1">
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="4*"/>
                <ColumnDefinition Width="6*"/>
            </Grid.ColumnDefinitions>
            <Grid.RowDefinitions>
                <RowDefinition Height="75"  />
                <RowDefinition Height="75"/>
                <RowDefinition/>
            </Grid.RowDefinitions>
            <Label  Content="员工账号:" Foreground="White" x:Name="lblUserNm"  Grid.Row="0" Grid.Column="0" Style="{StaticResource searchLabel}"  HorizontalAlignment="Center" Height="36" Width="94" />
            <TextBox   x:Name="txtUserNm"  TabIndex="0"  Grid.Row="0" Grid.Column="1" Style="{StaticResource searchText}" Text="" Height="28" />
            <Label x:Name="lblPwd" Content="登录密码:" Grid.Column="0"  Style="{StaticResource searchLabel}"  HorizontalAlignment="Center"  Height="33" Width="94" Margin="0" Grid.Row="1" />
            <PasswordBox  x:Name="txtPwd" Grid.Column="1"  Style="{StaticResource searchText}" Password="" Height="24" Margin="0" Grid.Row="1" />
            <Grid Grid.Row="2" Grid.Column="0" Grid.ColumnSpan="2">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition/>
                    <ColumnDefinition/>
                </Grid.ColumnDefinitions>
                <!--<RadioButton x:Name="rdoUserLogin"   Focusable="False"  Grid.Row="0" Grid.Column="0"  Foreground="White"   FontSize="26"   Content="账号登陆"  HorizontalAlignment="Center"   GroupName="LoginGroup" VerticalAlignment="Center"  Checked="rdoUserLogin_Checked" BorderThickness="10" IsChecked="True" Visibility="Hidden" />-->
                <!--<RadioButton  x:Name="rdoCardLogin"  Focusable="False"   Grid.Row="0" Grid.Column="1"   FontSize="26"    Foreground="White"  Content="打卡登陆" HorizontalAlignment="Center" GroupName="LoginGroup" VerticalAlignment="Center" Checked="rdoCardLogin_Checked" BorderThickness="10" Visibility="Hidden"/>-->
            </Grid>

        </Grid>
        <Grid Grid.Row="3" Grid.ColumnSpan="3">
            <Grid.ColumnDefinitions>
                <ColumnDefinition/>
                <ColumnDefinition/>
            </Grid.ColumnDefinitions>
            <Button  Grid.Row="0"  Grid.Column="0"    Focusable="False" Foreground="#FFFFFFFF"  x:Name="btnSubmit"   TabIndex="0" Content="提交" HorizontalAlignment="Center" VerticalAlignment="Center" Background="#385492" Width="129" Height="40" Click="btnSubmit_Click"/>
            <Button  Grid.Row="0"  Grid.Column="1"   Foreground="#FFFFFFFF" Content="取消" HorizontalAlignment="Center" VerticalAlignment="Center" Background="#385492" Width="121" Height="40" Click="Button_Click_1"/>
        </Grid>
    </Grid>
</Window>
