MainView.xaml 1.2 KB

12345678910111213141516171819202122
  1. <UserControl
  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:i="http://schemas.microsoft.com/expression/2010/interactivity" xmlns:GalaSoft_MvvmLight_Command="clr-namespace:GalaSoft.MvvmLight.Command;assembly=GalaSoft.MvvmLight.Extras.WPF4" x:Class="Egametang.MainView"
  7. mc:Ignorable="d" d:DesignHeight="600" d:DesignWidth="800"
  8. DataContext="{Binding MainViewModel, Source={StaticResource Locator}}" >
  9. <Grid>
  10. <StackPanel Grid.Column="0">
  11. <StackPanel Orientation="Horizontal">
  12. <Label Content="用户名: "/>
  13. <TextBox Width="150" x:Name="tBUsername" Text="{Binding Username}" />
  14. <Label Content="密码: "/>
  15. <TextBox Width="150" x:Name="tBPassword" Text="{Binding Password}" />
  16. <Button Content="登录" HorizontalAlignment="Center" VerticalAlignment="Center" Command="{Binding LoginCmd}" />
  17. </StackPanel>
  18. <TextBox x:Name="tBInfo" Margin="10" Padding="1" Height="200" VerticalScrollBarVisibility="Visible"
  19. Text="{Binding LoginInfo}" />
  20. </StackPanel>
  21. </Grid>
  22. </UserControl>