LoginView.xaml 1002 B

123456789101112131415161718192021
  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"
  7. d:DesignHeight="600" d:DesignWidth="800">
  8. <Grid>
  9. <StackPanel>
  10. <StackPanel Orientation="Horizontal">
  11. <Label Content="用户名: "/>
  12. <TextBox Width="150" x:Name="tBUsername" Text="{Binding Username}" />
  13. <Label Content="密码: "/>
  14. <TextBox Width="150" x:Name="tBPassword" Text="{Binding Password}" />
  15. <Button Content="登录" HorizontalAlignment="Center" VerticalAlignment="Center" Command="{Binding LoginCmd}" />
  16. </StackPanel>
  17. <TextBox x:Name="tBInfo" Margin="10" Padding="1" Height="200" VerticalScrollBarVisibility="Visible"
  18. Text="{Binding LoginInfo}" />
  19. </StackPanel>
  20. </Grid>
  21. </UserControl>