12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879 |
- <Window x:Class="CCDCountWpf.WpfFrom.ChangeUserWindow"
- xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
- xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
- xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
- xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
- xmlns:local="clr-namespace:CCDCountWpf.WpfFrom"
- mc:Ignorable="d"
- Title="ChangeUserWindow" Height="430" Width="320" ResizeMode="NoResize"
- WindowStartupLocation="CenterScreen" Icon="/FromImage/mmexport1752891278116.jpg" Loaded="Window_Loaded">
- <Grid>
- <Grid Height="60" VerticalAlignment="Top" Background="#B20092FF">
- <Label Content="编辑用户" Margin="0,15,0,0" FontWeight="Bold" FontSize="20" VerticalAlignment="Top" HorizontalAlignment="Center"/>
- </Grid>
- <StackPanel Orientation="Vertical" Margin="0,60,0,0">
- <StackPanel Orientation="Horizontal" HorizontalAlignment="Left" Margin="30,0,0,0">
- <Label Content="ID:" HorizontalAlignment="Left" Margin="0,10,0,0" VerticalAlignment="Top" FontWeight="Bold" FontSize="20"/>
- <TextBox x:Name="UserIDTbx" HorizontalAlignment="Left" Margin="77,15,0,0" Width="120" FontWeight="Bold" FontSize="20" Background="{x:Null}" IsReadOnly="True"/>
- </StackPanel>
- <StackPanel Orientation="Horizontal" HorizontalAlignment="Left" Margin="30,0,0,0">
- <Label Content="用户名:" HorizontalAlignment="Left" Margin="0,10,0,0" VerticalAlignment="Top" FontWeight="Bold" FontSize="20"/>
- <TextBox x:Name="UserNameTbx" HorizontalAlignment="Left" Margin="40,15,0,0" Width="120" FontWeight="Bold" FontSize="20" Background="{x:Null}"/>
- </StackPanel>
- <StackPanel Orientation="Horizontal" HorizontalAlignment="Left" Margin="30,0,0,0">
- <Label Content="旧密码:" HorizontalAlignment="Left" Margin="0,10,0,0" VerticalAlignment="Top" FontWeight="Bold" FontSize="20"/>
- <PasswordBox x:Name="UserOldPassTbx" HorizontalAlignment="Left" Margin="40,15,0,0" VerticalAlignment="Top" Width="120" FontWeight="Bold" FontSize="20" Background="{x:Null}" />
- </StackPanel>
- <StackPanel Orientation="Horizontal" HorizontalAlignment="Left" Margin="30,0,0,0">
- <Label Content="新密码:" HorizontalAlignment="Left" Margin="0,10,0,0" VerticalAlignment="Top" FontWeight="Bold" FontSize="20"/>
- <PasswordBox x:Name="UserNewPassTbx" HorizontalAlignment="Left" Margin="40,15,0,0" VerticalAlignment="Top" Width="120" FontWeight="Bold" FontSize="20" Background="{x:Null}" />
- </StackPanel>
- <StackPanel Orientation="Horizontal" HorizontalAlignment="Left" Margin="30,0,0,0">
- <Label Content="重复新密码:" HorizontalAlignment="Left" Margin="0,10,0,0" VerticalAlignment="Top" FontWeight="Bold" FontSize="20"/>
- <PasswordBox x:Name="UserReNewPassTbx" HorizontalAlignment="Left" Margin="0,15,0,0" VerticalAlignment="Top" Width="120" FontWeight="Bold" FontSize="20" Background="{x:Null}" />
- </StackPanel>
- <StackPanel Orientation="Horizontal" VerticalAlignment="Top" HorizontalAlignment="Left" Margin="19,0,0,0">
- <Label Content="权限:" HorizontalAlignment="Left" Margin="10,10,0,0" VerticalAlignment="Top" FontWeight="Bold" FontSize="20"/>
- <ComboBox x:Name="UserLevelCbx" HorizontalAlignment="Left" Margin="61,12,0,0" VerticalAlignment="Top" Width="120" FontWeight="Bold" FontSize="20" Background="{x:Null}" IsReadOnly="True"/>
- </StackPanel>
- <StackPanel Orientation="Horizontal" HorizontalAlignment="Center">
- <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">
- <Button.Template>
- <ControlTemplate TargetType="Button">
- <Border CornerRadius="5"
- Background="{TemplateBinding Background}"
- BorderBrush="{TemplateBinding BorderBrush}"
- BorderThickness="{TemplateBinding BorderThickness}">
- <ContentPresenter HorizontalAlignment="Center" VerticalAlignment="Center"/>
- </Border>
- </ControlTemplate>
- </Button.Template>
- </Button>
- <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">
- <Button.Template>
- <ControlTemplate TargetType="Button">
- <Border CornerRadius="5"
- Background="{TemplateBinding Background}"
- BorderBrush="{TemplateBinding BorderBrush}"
- BorderThickness="{TemplateBinding BorderThickness}">
- <ContentPresenter HorizontalAlignment="Center" VerticalAlignment="Center"/>
- </Border>
- </ControlTemplate>
- </Button.Template>
- </Button>
- <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">
- <Button.Template>
- <ControlTemplate TargetType="Button">
- <Border CornerRadius="5"
- Background="{TemplateBinding Background}"
- BorderBrush="{TemplateBinding BorderBrush}"
- BorderThickness="{TemplateBinding BorderThickness}">
- <ContentPresenter HorizontalAlignment="Center" VerticalAlignment="Center"/>
- </Border>
- </ControlTemplate>
- </Button.Template>
- </Button>
- </StackPanel>
- </StackPanel>
- </Grid>
- </Window>
|