ChangeUserWindow.xaml 6.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. <Window x:Class="CCDCountWpf.WpfFrom.ChangeUserWindow"
  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:CCDCountWpf.WpfFrom"
  7. mc:Ignorable="d"
  8. Title="ChangeUserWindow" Height="430" Width="320" ResizeMode="NoResize"
  9. WindowStartupLocation="CenterScreen" Icon="/FromImage/mmexport1752891278116.jpg" Loaded="Window_Loaded">
  10. <Grid>
  11. <Grid Height="60" VerticalAlignment="Top" Background="#B20092FF">
  12. <Label Content="编辑用户" Margin="0,15,0,0" FontWeight="Bold" FontSize="20" VerticalAlignment="Top" HorizontalAlignment="Center"/>
  13. </Grid>
  14. <StackPanel Orientation="Vertical" Margin="0,60,0,0">
  15. <StackPanel Orientation="Horizontal" HorizontalAlignment="Left" Margin="30,0,0,0">
  16. <Label Content="ID:" HorizontalAlignment="Left" Margin="0,10,0,0" VerticalAlignment="Top" FontWeight="Bold" FontSize="20"/>
  17. <TextBox x:Name="UserIDTbx" HorizontalAlignment="Left" Margin="77,15,0,0" Width="120" FontWeight="Bold" FontSize="20" Background="{x:Null}" IsReadOnly="True"/>
  18. </StackPanel>
  19. <StackPanel Orientation="Horizontal" HorizontalAlignment="Left" Margin="30,0,0,0">
  20. <Label Content="用户名:" HorizontalAlignment="Left" Margin="0,10,0,0" VerticalAlignment="Top" FontWeight="Bold" FontSize="20"/>
  21. <TextBox x:Name="UserNameTbx" HorizontalAlignment="Left" Margin="40,15,0,0" Width="120" FontWeight="Bold" FontSize="20" Background="{x:Null}"/>
  22. </StackPanel>
  23. <StackPanel Orientation="Horizontal" HorizontalAlignment="Left" Margin="30,0,0,0">
  24. <Label Content="旧密码:" HorizontalAlignment="Left" Margin="0,10,0,0" VerticalAlignment="Top" FontWeight="Bold" FontSize="20"/>
  25. <PasswordBox x:Name="UserOldPassTbx" HorizontalAlignment="Left" Margin="40,15,0,0" VerticalAlignment="Top" Width="120" FontWeight="Bold" FontSize="20" Background="{x:Null}" />
  26. </StackPanel>
  27. <StackPanel Orientation="Horizontal" HorizontalAlignment="Left" Margin="30,0,0,0">
  28. <Label Content="新密码:" HorizontalAlignment="Left" Margin="0,10,0,0" VerticalAlignment="Top" FontWeight="Bold" FontSize="20"/>
  29. <PasswordBox x:Name="UserNewPassTbx" HorizontalAlignment="Left" Margin="40,15,0,0" VerticalAlignment="Top" Width="120" FontWeight="Bold" FontSize="20" Background="{x:Null}" />
  30. </StackPanel>
  31. <StackPanel Orientation="Horizontal" HorizontalAlignment="Left" Margin="30,0,0,0">
  32. <Label Content="重复新密码:" HorizontalAlignment="Left" Margin="0,10,0,0" VerticalAlignment="Top" FontWeight="Bold" FontSize="20"/>
  33. <PasswordBox x:Name="UserReNewPassTbx" HorizontalAlignment="Left" Margin="0,15,0,0" VerticalAlignment="Top" Width="120" FontWeight="Bold" FontSize="20" Background="{x:Null}" />
  34. </StackPanel>
  35. <StackPanel Orientation="Horizontal" VerticalAlignment="Top" HorizontalAlignment="Left" Margin="19,0,0,0">
  36. <Label Content="权限:" HorizontalAlignment="Left" Margin="10,10,0,0" VerticalAlignment="Top" FontWeight="Bold" FontSize="20"/>
  37. <ComboBox x:Name="UserLevelCbx" HorizontalAlignment="Left" Margin="61,12,0,0" VerticalAlignment="Top" Width="120" FontWeight="Bold" FontSize="20" Background="{x:Null}" IsReadOnly="True"/>
  38. </StackPanel>
  39. <StackPanel Orientation="Horizontal" HorizontalAlignment="Center">
  40. <Button x:Name="UserChangeBtn" Content="修改" BorderThickness="1" HorizontalAlignment="Left" Margin="0,10,10,0" VerticalAlignment="Top" Width="80" Height="40" Background="#B20123FF" FontWeight="Bold" FontSize="20" Foreground="White" Click="UserChangeBtn_Click" Cursor="Hand">
  41. <Button.Template>
  42. <ControlTemplate TargetType="Button">
  43. <Border CornerRadius="5"
  44. Background="{TemplateBinding Background}"
  45. BorderBrush="{TemplateBinding BorderBrush}"
  46. BorderThickness="{TemplateBinding BorderThickness}">
  47. <ContentPresenter HorizontalAlignment="Center" VerticalAlignment="Center"/>
  48. </Border>
  49. </ControlTemplate>
  50. </Button.Template>
  51. </Button>
  52. <Button x:Name="UserResetPassBtn" Content="密码重置" BorderThickness="1" HorizontalAlignment="Left" Margin="5,10,5,0" VerticalAlignment="Top" Width="100" Height="40" Background="#B20123FF" FontWeight="Bold" FontSize="20" Foreground="White" Click="UserResetPassBtn_Click" Cursor="Hand">
  53. <Button.Template>
  54. <ControlTemplate TargetType="Button">
  55. <Border CornerRadius="5"
  56. Background="{TemplateBinding Background}"
  57. BorderBrush="{TemplateBinding BorderBrush}"
  58. BorderThickness="{TemplateBinding BorderThickness}">
  59. <ContentPresenter HorizontalAlignment="Center" VerticalAlignment="Center"/>
  60. </Border>
  61. </ControlTemplate>
  62. </Button.Template>
  63. </Button>
  64. <Button x:Name="UserCancelBtn" Content="取消" BorderThickness="1" HorizontalAlignment="Left" Margin="10,10,0,0" VerticalAlignment="Top" Width="80" Height="40" Background="#B20123FF" FontWeight="Bold" FontSize="20" Foreground="White" Click="UserCancelBtn_Click" Cursor="Hand">
  65. <Button.Template>
  66. <ControlTemplate TargetType="Button">
  67. <Border CornerRadius="5"
  68. Background="{TemplateBinding Background}"
  69. BorderBrush="{TemplateBinding BorderBrush}"
  70. BorderThickness="{TemplateBinding BorderThickness}">
  71. <ContentPresenter HorizontalAlignment="Center" VerticalAlignment="Center"/>
  72. </Border>
  73. </ControlTemplate>
  74. </Button.Template>
  75. </Button>
  76. </StackPanel>
  77. </StackPanel>
  78. </Grid>
  79. </Window>