XFE Git
XFE Studio Git
Git 首页 全局搜索
XFE 主站 文档 NuGet

XFEToolBox

【WPF】XFE工具箱

公开
关注 0 Fork 0 Star 0
UTF-8
<Page x:Class="XFEToolBox.Client.Views.Pages.Popups.ChangePasswordPopupPage"
      xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
      xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
      xmlns:controls="clr-namespace:XFEToolBox.WpfCore.Controls;assembly=XFEToolBox.WpfCore"
      Background="Transparent" Loaded="Page_Loaded">
    <Page.Resources>
        <Style x:Key="FieldLabel" TargetType="TextBlock">
            <Setter Property="Foreground" Value="#69697C"/>
            <Setter Property="FontSize" Value="11"/>
            <Setter Property="Margin" Value="2,0,0,6"/>
        </Style>
    </Page.Resources>

    <Grid x:Name="PasswordSurface" Margin="30,19,30,25" RenderTransformOrigin="0.5,0.5">
        <Grid.RenderTransform>
            <TranslateTransform X="0"/>
        </Grid.RenderTransform>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="*"/>
            <RowDefinition Height="Auto"/>
        </Grid.RowDefinitions>

        <TextBlock Text="当前密码" Style="{StaticResource FieldLabel}"/>
        <controls:PasswordEditor x:Name="CurrentPasswordBox" Grid.Row="1" Height="40"
                                      Padding="12,0,4,0" FontSize="13" Foreground="#44445A"
                                      Background="#F8F8FC" EditorBorderBrush="#E2E2EE"
                                      HintText="请输入当前密码" HintForeground="#77778A" HintTextMargin="0"/>

        <StackPanel Grid.Row="2" Margin="0,12,0,0">
            <TextBlock Text="新密码" Style="{StaticResource FieldLabel}"/>
            <controls:PasswordEditor x:Name="NewPasswordBox" Height="40"
                                          Padding="12,0,4,0" FontSize="13" Foreground="#44445A"
                                          Background="#F8F8FC" EditorBorderBrush="#E2E2EE"
                                          HintText="至少 8 位" HintForeground="#77778A" HintTextMargin="0"/>
        </StackPanel>

        <StackPanel Grid.Row="3" Margin="0,12,0,0">
            <TextBlock Text="确认新密码" Style="{StaticResource FieldLabel}"/>
            <controls:PasswordEditor x:Name="ConfirmPasswordBox" Height="40"
                                          Padding="12,0,4,0" FontSize="13" Foreground="#44445A"
                                          Background="#F8F8FC" EditorBorderBrush="#E2E2EE"
                                          HintText="再次输入新密码" HintForeground="#77778A" HintTextMargin="0"
                                          KeyDown="ConfirmPasswordBox_KeyDown"/>
        </StackPanel>

        <TextBlock Grid.Row="4" Margin="2,10,2,0" Text="修改后所有登录会话将失效,需要重新登录。"
                   Foreground="#9292A5" FontSize="9.5" TextWrapping="Wrap"/>
        <TextBlock x:Name="StatusText" Grid.Row="6" Margin="2,8,2,7" Foreground="#C65353"
                   FontSize="10.5" TextWrapping="Wrap" VerticalAlignment="Bottom"/>
        <Button x:Name="SubmitButton" Grid.Row="7" Content="确认修改" controls:ButtonAssist.IsPrimary="True" Height="42" FontSize="13"
                Click="SubmitButton_Click"/>
    </Grid>
</Page>