LoginView.xaml 1.1 KB

12345678910111213141516171819202122
  1. <UserControl x:Class="Module.Login.LoginView"
  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. mc:Ignorable="d" d:DesignHeight="300" d:DesignWidth="360">
  7. <Grid>
  8. <Grid.RowDefinitions>
  9. <RowDefinition Height="*"/>
  10. <RowDefinition Height="*"/>
  11. </Grid.RowDefinitions>
  12. <StackPanel Grid.Row="0" Orientation="Horizontal">
  13. <Label Content="用户名: " Height="25"></Label>
  14. <TextBox Name="tbUsername" Text="{Binding Username}" Width="100" Height="25"></TextBox>
  15. <Label Content="密码: " Height="25"></Label>
  16. <PasswordBox Name="pbPassword" Width="100" Height="25"></PasswordBox>
  17. <Button Name="btnLogin" Content="登录" Width="50" Height="25" Click="btnLogin_Click"></Button>
  18. </StackPanel>
  19. <TextBox Grid.Row="1" Height="100" Name="tbLogInfo" Text="{Binding LogInfo}"
  20. VerticalScrollBarVisibility="Visible" TextChanged="tbLogInfo_TextChanged"></TextBox>
  21. </Grid>
  22. </UserControl>