12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697 |
- <UserControl
- x:Class="ShakerManger.View.ResetPassWordView"
- 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:hc="https://handyorg.github.io/handycontrol"
- xmlns:local="clr-namespace:ShakerManger.View"
- xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
- xmlns:vm="clr-namespace:ShakerManger.ViewModel"
- Width="{x:Static SystemParameters.PrimaryScreenWidth}"
- Height="{x:Static SystemParameters.PrimaryScreenHeight}"
- d:DataContext="{d:DesignInstance {x:Type vm:ResetPassWordViewModel}}"
- d:DesignHeight="450"
- d:DesignWidth="800"
- Background="#AfAAAAAA"
- DataContext="{Binding Source={StaticResource MainViewModel}, Path=Data.SystemConfig.UserPage.ResetPassWord}"
- FontSize="14"
- Foreground="{StaticResource LableBrush}"
- mc:Ignorable="d">
- <Border
- HorizontalAlignment="Center"
- VerticalAlignment="Center"
- Background="{StaticResource MainBrush}"
- BorderBrush="{StaticResource AuxiliaryBrush}"
- BorderThickness="1"
- CornerRadius="6">
- <Grid Margin="60">
- <Grid.RowDefinitions>
- <RowDefinition Height="46" />
- <RowDefinition Height="46" />
- <RowDefinition Height="46" />
- <RowDefinition Height="46" />
- </Grid.RowDefinitions>
- <StackPanel Orientation="Horizontal">
- <TextBlock
- Width="120"
- HorizontalAlignment="Center"
- VerticalAlignment="Center"
- Text="请输入新密码:" />
- <hc:PasswordBox
- Width="220"
- Height="36"
- hc:PasswordBoxAttach.PasswordLength="20"
- Background="Transparent"
- CaretBrush="{Binding RelativeSource={RelativeSource Mode=FindAncestor, AncestorType=UserControl}, Path=Foreground}"
- Foreground="{Binding RelativeSource={RelativeSource Mode=FindAncestor, AncestorType=UserControl}, Path=Foreground}"
- IsSafeEnabled="False"
- ShowEyeButton="True"
- UnsafePassword="{Binding FirstPassword, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" />
- </StackPanel>
- <StackPanel Grid.Row="1" Orientation="Horizontal">
- <TextBlock
- Width="120"
- HorizontalAlignment="Center"
- VerticalAlignment="Center"
- Text="重复输入新密码:" />
- <hc:PasswordBox
- Width="220"
- Height="36"
- hc:PasswordBoxAttach.PasswordLength="20"
- Background="Transparent"
- CaretBrush="{Binding RelativeSource={RelativeSource Mode=FindAncestor, AncestorType=UserControl}, Path=Foreground}"
- Foreground="{Binding RelativeSource={RelativeSource Mode=FindAncestor, AncestorType=UserControl}, Path=Foreground}"
- IsSafeEnabled="False"
- ShowEyeButton="True"
- UnsafePassword="{Binding SecondPassword, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" />
- </StackPanel>
- <StackPanel
- Grid.Row="3"
- HorizontalAlignment="Center"
- VerticalAlignment="Center"
- Orientation="Horizontal">
- <Button
- Width="86"
- Height="36"
- hc:IconElement.Geometry="{StaticResource YesGeometry}"
- hc:IconElement.Height="20"
- hc:IconElement.Width="20"
- Command="{Binding OkCommand}"
- Content="确认"
- IsEnabled="{Binding CanOk}"
- Style="{StaticResource HasIconButton}" />
- <Button
- Width="86"
- Height="36"
- Margin="80,0,0,0"
- hc:IconElement.Geometry="{StaticResource NoGeometry}"
- hc:IconElement.Height="20"
- hc:IconElement.Width="20"
- Command="{Binding CancelCommand}"
- Content="取消"
- Style="{StaticResource HasIconButton}" />
- </StackPanel>
- </Grid>
- </Border>
- </UserControl>
|