AccountInfoWindow.xaml 3.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. <Window x:Class="AIPractice.LabellerServer.WPF.AccountInfoWindow"
  2. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  3. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  4. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  5. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  6. xmlns:local="clr-namespace:AIPractice.LabellerServer.WPF"
  7. mc:Ignorable="d"
  8. Title="用户信息" Height="400" Width="420" WindowStartupLocation="CenterScreen" ResizeMode="NoResize">
  9. <Grid>
  10. <Grid.RowDefinitions>
  11. <RowDefinition Height="56"/>
  12. <RowDefinition Height="48"/>
  13. <RowDefinition Height="48"/>
  14. <RowDefinition Height="48"/>
  15. <RowDefinition Height="48"/>
  16. <RowDefinition Height="48"/>
  17. <RowDefinition Height="*"/>
  18. </Grid.RowDefinitions>
  19. <Grid.ColumnDefinitions>
  20. <ColumnDefinition Width="0.3*"/>
  21. <ColumnDefinition Width="0.7*"/>
  22. </Grid.ColumnDefinitions>
  23. <Label Margin="4" VerticalAlignment="Center" Style="{StaticResource h3}" Grid.Row="0" Grid.Column="0" Grid.ColumnSpan="2" Content="用户信息:"/>
  24. <TextBlock Style="{StaticResource textblock-default}" Margin="18,0,0,0" Grid.Row="1" Grid.Column="0" VerticalAlignment="Center" Text="用户名:"/>
  25. <TextBox x:Name="UserName" Margin="8,4,8,4" Grid.Row="1" Grid.Column="1" VerticalAlignment="Center" Text="{Binding Name}"/>
  26. <TextBlock Style="{StaticResource textblock-default}" Margin="18,0,0,0" Grid.Row="2" Grid.Column="0" VerticalAlignment="Center" Text="密码:"/>
  27. <PasswordBox x:Name="UserPassword" Margin="8,4,8,4" Grid.Row="2" Grid.Column="1" VerticalAlignment="Center"/>
  28. <TextBlock Style="{StaticResource textblock-default}" Margin="18,0,0,0" Grid.Row="3" Grid.Column="0" VerticalAlignment="Center" Text="姓名:"/>
  29. <TextBox x:Name="FullName" Margin="8,4,8,4" Grid.Row="3" Grid.Column="1" VerticalAlignment="Center" Text="{Binding Description}"/>
  30. <TextBlock Style="{StaticResource textblock-default}" Margin="18,0,0,0" Grid.Row="4" Grid.Column="0" VerticalAlignment="Center" Text="邮箱:"/>
  31. <TextBox x:Name="Email" Margin="8,4,8,4" Grid.Row="4" Grid.Column="1" VerticalAlignment="Center" Text="{Binding Email}"/>
  32. <TextBlock Style="{StaticResource textblock-default}" Margin="18,0,0,0" Grid.Row="5" Grid.Column="0" VerticalAlignment="Center" Text="审核员:"/>
  33. <CheckBox x:Name="IsReviewer" HorizontalAlignment="Right" Margin="8,4,8,4" Grid.Row="5" Grid.Column="1" VerticalAlignment="Center" IsChecked="{Binding IsReviewer}"/>
  34. <StackPanel Orientation="Horizontal" Grid.Row="6" Grid.Column="1" Margin="8" VerticalAlignment="Center" HorizontalAlignment="Right">
  35. <Button Style="{StaticResource btn-primary}" Margin="4" VerticalAlignment="Center" HorizontalAlignment="Right" Height="32" Content="确定" Width="80" Click="OnOkClick"/>
  36. <Button Style="{StaticResource btn-danger}" Margin="4" VerticalAlignment="Center" HorizontalAlignment="Right" Height="32" Content="关闭" Width="80" Click="OnCloseClick"/>
  37. </StackPanel>
  38. </Grid>
  39. </Window>