|
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151 |
- <UserControl x:Class="BPASmart.UserManagement.View.ChangeUser"
- xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
- xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
- xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
- xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
- xmlns:local="clr-namespace:BPASmart.UserManagement.View"
- xmlns:common="clr-namespace:BPASmart.UserManagement.Helper"
- xmlns:vm ="clr-namespace:BPASmart.UserManagement.ViewModel"
- mc:Ignorable="d"
- d:DesignHeight="450" d:DesignWidth="800" FontFamily="楷体">
- <UserControl.DataContext>
- <vm:ChangeUserViewModel/>
- </UserControl.DataContext>
- <Border Margin="100,40">
- <Border.Background>
- <ImageBrush ImageSource="../Image/user背景.png" Stretch="Fill"/>
- </Border.Background>
- <Grid>
- <Grid.RowDefinitions>
- <RowDefinition Height="13*"/>
- <RowDefinition Height="44*"/>
- <RowDefinition Height="27*"/>
- <RowDefinition Height="173*"/>
- <RowDefinition Height="40*"/>
- <RowDefinition Height="77*"/>
- </Grid.RowDefinitions>
- <TextBlock Grid.Row="1" Text="修改密码" VerticalAlignment="Center" HorizontalAlignment="Center" Foreground="#009DFF"
- FontSize="24" Height="30" Width="96" />
- <TextBlock Grid.Row="2" Text="{Binding UserName}" VerticalAlignment="Bottom" HorizontalAlignment="Center" Foreground="Orange" FontSize="20" Height="23" />
- <Grid Grid.Row="3" VerticalAlignment="Center" Height="150" Width="260">
- <Grid.RowDefinitions>
- <RowDefinition Height="*"/>
- <RowDefinition Height="*"/>
- <RowDefinition Height="*"/>
- </Grid.RowDefinitions>
-
- <PasswordBox
- Name="pb0"
- Margin="5"
- common:PasswordHelper.Attach="True"
- common:PasswordHelper.Password="{Binding LastPassword, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
- BorderBrush="#009DFF"
- BorderThickness="3"
- FontSize="20"
- Height="40"
- Foreground="#009DFF"
- KeyDown="pb_KeyDown"
- PasswordChanged="pb0_PasswordChanged"
- Style="{DynamicResource PasswordBoxStyle}"
- TabIndex="2" />
- <PasswordBox
- Name="pb1"
- Grid.Row="1"
- Margin="5"
- common:PasswordHelper.Attach="True"
- common:PasswordHelper.Password="{Binding UserPassword, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
- BorderBrush="#009DFF"
- BorderThickness="3"
- FontSize="20"
- Height="40"
- Foreground="#009DFF"
- KeyDown="pb_KeyDown"
- PasswordChanged="PasswordBox_PasswordChanged"
- Style="{DynamicResource PasswordBoxStyle}"
- TabIndex="2" />
- <PasswordBox
- Name="pb2"
- Grid.Row="2"
- Margin="5"
- common:PasswordHelper.Attach="True"
- common:PasswordHelper.Password="{Binding ConfirmPassword, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
- BorderBrush="#009DFF"
- BorderThickness="3"
- FontSize="20"
- Height="40"
- Foreground="#009DFF"
- KeyDown="pb2_KeyDown"
- PasswordChanged="PasswordBox2_PasswordChanged"
- Style="{DynamicResource PasswordBoxStyle}"
- TabIndex="2" />
- <TextBlock
- Name="mark0Text"
- Grid.Row="0"
- Margin="58,5"
- HorizontalAlignment="Left"
- VerticalAlignment="Center"
- FontSize="16"
- Foreground="#88009dff"
- IsHitTestVisible="False"
- Text="请输入原始密码"
- Visibility="Visible" />
-
- <TextBlock
- Name="markText"
- Grid.Row="1"
- Margin="58,5"
- HorizontalAlignment="Left"
- VerticalAlignment="Center"
- FontSize="16"
- Foreground="#88009dff"
- IsHitTestVisible="False"
- Text="请输入账号密码"
- Visibility="Visible" />
-
- <TextBlock
- Name="mark2Text"
- Grid.Row="2"
- Margin="58,5"
- HorizontalAlignment="Left"
- VerticalAlignment="Center"
- FontSize="16"
- Foreground="#88009dff"
- IsHitTestVisible="False"
- Text="请再次确认密码"
- Visibility="Visible" />
- </Grid>
- <StackPanel Grid.Row="4" Orientation="Horizontal" HorizontalAlignment="Center" VerticalAlignment="Top" Height="29" Width="320">
- <Button
- x:Name="saveButton"
- Grid.Column="1"
- Command="{Binding SaveUserCommand}"
- Content="保 存"
- Style="{StaticResource CommonButton}"
- FontSize="20"
- TabIndex="3"
- Width="120"
- Background="#009DFF"
- Foreground="White"
- VerticalAlignment="Top"
- Margin="20,0"/>
- <Button
- Command="{Binding ExitCommand}"
- Content="退 出" FontSize="20"
- Width="120"
- Style="{StaticResource CommonButton}"
- Background="#009DFF"
- Foreground="White"
- VerticalAlignment="Top"
- Margin="20,0"
- />
-
- </StackPanel>
-
- <StackPanel Grid.Row="5" Orientation="Horizontal" HorizontalAlignment="Center" VerticalAlignment="Top" Visibility="{Binding ErrorVisibility}" Width="auto" >
- <Image Source="../image/科技警告.png" Width="25" Height="25" Stretch="Fill"/>
- <TextBlock Margin="10,0" Text="{Binding ErrorMessage}" Foreground="#FF3F36" FontSize="20" HorizontalAlignment="Center" VerticalAlignment="Center"/>
- </StackPanel>
- </Grid>
- </Border>
-
- </UserControl>
|