<Page x:Class="NEIntelligentControl2.Pages.User.PageLogin"
      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:NEIntelligentControl2.Pages.User"
      mc:Ignorable="d" 
      d:DesignHeight="450" d:DesignWidth="800"
      Title="PageLogin" Loaded="Page_Loaded">

    <Page.Resources>
        <Style x:Key="TextBlockStyleMain" TargetType="TextBlock">
            <Setter Property="VerticalAlignment" Value="Center"/>
            <Setter Property="FontSize" Value="14"/>
        </Style>
    </Page.Resources>

    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition/>
            <RowDefinition Height="Auto"/>
        </Grid.RowDefinitions>
        <Grid Margin="30,0">
            <Grid.RowDefinitions>
                <RowDefinition/>
                <RowDefinition/>
                <RowDefinition/>
                <RowDefinition/>
                <RowDefinition/>
                <RowDefinition/>
                <RowDefinition/>
                <RowDefinition/>
                <RowDefinition/>
                <RowDefinition/>
                <RowDefinition/>
            </Grid.RowDefinitions>
            <TextBlock Text="用户登录" HorizontalAlignment="Center" VerticalAlignment="Center" FontSize="16"/>

            <TextBlock Grid.Row="1" x:Name="_TBTitle" HorizontalAlignment="Center" FontSize="14" Foreground="#FFFF5200" VerticalAlignment="Center"/>

            <TextBlock Grid.Row="2" Text="用户名：" Style="{StaticResource TextBlockStyleMain}"/>
            <TextBox Grid.Row="3" x:Name="_TBUserName" HorizontalContentAlignment="Left" VerticalContentAlignment="Center" FontSize="14"/>

            <TextBlock Grid.Row="4" Text="密码：" Style="{StaticResource TextBlockStyleMain}"/>
            <PasswordBox x:Name="_TBPassword" Grid.Row="5" HorizontalContentAlignment="Left" VerticalContentAlignment="Center" FontSize="14"/>

            <TextBlock Grid.Row="6" Text="验证码：" Style="{StaticResource TextBlockStyleMain}"/>
            <Grid Grid.Row="7">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="1.2*"/>
                    <ColumnDefinition/>
                </Grid.ColumnDefinitions>
                <TextBox x:Name="_TBVerifyCode" HorizontalContentAlignment="Left" VerticalContentAlignment="Center" FontSize="14"/>
                <Image x:Name="_Image" Grid.Column="1" MouseLeftButtonUp="Image_MouseLeftButtonUp" Margin="10,0,0,0"/>
            </Grid>

            <Button Grid.Row="9" Content="登 录" Click="Button_Click" Tag="login" IsDefault="True"/>
        </Grid>
        <TextBlock Grid.Row="1" HorizontalAlignment="Right" Margin="10">
            <Hyperlink Click="Hyperlink_Click">切换至指纹登录</Hyperlink>
        </TextBlock>
    </Grid>
</Page>
