LoginView.xaml 1.5 KB

123456789101112131415161718192021222324252627282930
  1. <UserControl x:Class="Modules.Robot.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. xmlns:xctk="http://schemas.xceed.com/wpf/xaml/toolkit"
  7. mc:Ignorable="d"
  8. d:DesignHeight="300" d:DesignWidth="300">
  9. <Grid>
  10. <xctk:ChildWindow Name="cwLoginWindow" Visibility="{Binding GridLoginVisiable}"
  11. HorizontalAlignment="Center" VerticalAlignment="Center" CloseButtonVisibility="Hidden">
  12. <Grid Name="gridLogin" Width="200" Height="120" >
  13. <Grid.RowDefinitions>
  14. <RowDefinition></RowDefinition>
  15. <RowDefinition></RowDefinition>
  16. <RowDefinition></RowDefinition>
  17. </Grid.RowDefinitions>
  18. <Grid.ColumnDefinitions>
  19. <ColumnDefinition Width="10*"></ColumnDefinition>
  20. <ColumnDefinition Width="40*"></ColumnDefinition>
  21. </Grid.ColumnDefinitions>
  22. <Label Content="帐号: " Grid.Row="0" Grid.Column="0" Margin="0,8"/>
  23. <TextBox Text="{Binding Account}" Grid.Row="0" Grid.Column="1" Margin="0,8,0,8" />
  24. <Label Content="密码: " Grid.Row="1" Grid.Column="0" Margin="0,8"/>
  25. <TextBox Text="{Binding Password}" Grid.Row="1" Grid.Column="1" Margin="0,8,0,8" />
  26. <Button Name="btnLogin" Content="登录" Click="btnLogin_Click" Grid.Row="2" Grid.Column="1" Margin="12,8" />
  27. </Grid>
  28. </xctk:ChildWindow>
  29. </Grid>
  30. </UserControl>