PageLogin.xaml 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. <Page x:Class="NEIntelligentControl2.Pages.User.PageLogin"
  2. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  3. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  4. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  5. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  6. xmlns:local="clr-namespace:NEIntelligentControl2.Pages.User"
  7. mc:Ignorable="d"
  8. d:DesignHeight="450" d:DesignWidth="800"
  9. Title="PageLogin" Loaded="Page_Loaded">
  10. <Page.Resources>
  11. <Style x:Key="TextBlockStyleMain" TargetType="TextBlock">
  12. <Setter Property="VerticalAlignment" Value="Center"/>
  13. <Setter Property="FontSize" Value="14"/>
  14. </Style>
  15. </Page.Resources>
  16. <Grid>
  17. <Grid.RowDefinitions>
  18. <RowDefinition/>
  19. <RowDefinition Height="Auto"/>
  20. </Grid.RowDefinitions>
  21. <Grid Margin="30,0">
  22. <Grid.RowDefinitions>
  23. <RowDefinition/>
  24. <RowDefinition/>
  25. <RowDefinition/>
  26. <RowDefinition/>
  27. <RowDefinition/>
  28. <RowDefinition/>
  29. <RowDefinition/>
  30. <RowDefinition/>
  31. <RowDefinition/>
  32. <RowDefinition/>
  33. <RowDefinition/>
  34. </Grid.RowDefinitions>
  35. <TextBlock Text="用户登录" HorizontalAlignment="Center" VerticalAlignment="Center" FontSize="16"/>
  36. <TextBlock Grid.Row="1" x:Name="_TBTitle" HorizontalAlignment="Center" FontSize="14" Foreground="#FFFF5200" VerticalAlignment="Center"/>
  37. <TextBlock Grid.Row="2" Text="用户名:" Style="{StaticResource TextBlockStyleMain}"/>
  38. <TextBox Grid.Row="3" x:Name="_TBUserName" HorizontalContentAlignment="Left" VerticalContentAlignment="Center" FontSize="14"/>
  39. <TextBlock Grid.Row="4" Text="密码:" Style="{StaticResource TextBlockStyleMain}"/>
  40. <PasswordBox x:Name="_TBPassword" Grid.Row="5" HorizontalContentAlignment="Left" VerticalContentAlignment="Center" FontSize="14"/>
  41. <TextBlock Grid.Row="6" Text="验证码:" Style="{StaticResource TextBlockStyleMain}"/>
  42. <Grid Grid.Row="7">
  43. <Grid.ColumnDefinitions>
  44. <ColumnDefinition Width="1.2*"/>
  45. <ColumnDefinition/>
  46. </Grid.ColumnDefinitions>
  47. <TextBox x:Name="_TBVerifyCode" HorizontalContentAlignment="Left" VerticalContentAlignment="Center" FontSize="14"/>
  48. <Image x:Name="_Image" Grid.Column="1" MouseLeftButtonUp="Image_MouseLeftButtonUp" Margin="10,0,0,0"/>
  49. </Grid>
  50. <Button Grid.Row="9" Content="登 录" Click="Button_Click" Tag="login" IsDefault="True"/>
  51. </Grid>
  52. <TextBlock Grid.Row="1" HorizontalAlignment="Right" Margin="10">
  53. <Hyperlink Click="Hyperlink_Click">切换至指纹登录</Hyperlink>
  54. </TextBlock>
  55. </Grid>
  56. </Page>