Files
6098/Cowain.Bake.UI/Home/Views/ModifyPassWordView.xaml

34 lines
2.3 KiB
XML

<Window x:Class="Cowain.Bake.UI.Home.Views.ModifyPassWordView"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:pwdHelper="clr-namespace:Cowain.Bake.Common;assembly=Cowain.Bake.Common"
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:Cowain.Bake.UI.Home.Views"
xmlns:prism ="http://prismlibrary.com/"
prism:ViewModelLocator.AutoWireViewModel="True"
mc:Ignorable="d"
Title="修改用户密码" Height="250" Width="400"
ResizeMode="NoResize" WindowStartupLocation="CenterScreen">
<Grid>
<StackPanel>
<WrapPanel Margin="0,10,0,0">
<TextBlock Text="旧密码:" TextAlignment="Right" Foreground="Black" FontWeight="Bold" Margin="40,10,0,0" Width="90" Height="26" />
<PasswordBox pwdHelper:PasswordHelper.Password="{Binding OldPassWord,Mode=TwoWay}" pwdHelper:PasswordHelper.Attach="True" FontWeight="Bold" Margin="10,0,0,0" Height="30" Width="200" />
</WrapPanel>
<WrapPanel Margin="0,10,0,0">
<TextBlock Text="新密码:" TextAlignment="Right" Foreground="Black" FontWeight="Bold" Margin="40,10,0,0" Width="90" Height="26" />
<PasswordBox pwdHelper:PasswordHelper.Password="{Binding NewPassWord,Mode=TwoWay}" pwdHelper:PasswordHelper.Attach="True" FontWeight="Bold" Margin="10,0,0,0" Height="30" Width="200" />
</WrapPanel>
<WrapPanel Margin="0,10,0,0">
<TextBlock Text="验证密码:" TextAlignment="Right" Foreground="Black" FontWeight="Bold" Margin="40,10,0,0" Width="90" Height="26" />
<PasswordBox pwdHelper:PasswordHelper.Password="{Binding CheckPassWord,Mode=TwoWay}" pwdHelper:PasswordHelper.Attach="True" FontWeight="Bold" Margin="10,0,0,0" Height="30" Width="200" />
</WrapPanel>
<WrapPanel Margin="0,10,0,0">
<Button Content="修改" x:Name="judge" Background="DeepSkyBlue" Command="{Binding ModifyCommand}" Margin="150,20,0,30" Width="90" />
</WrapPanel>
</StackPanel>
</Grid>
</Window>