This repository has been archived on 2024-01-02. You can view files and clone it, but cannot push or open issues or pull requests.
Sic06/SicUI/Models/RecipeEditors/EditorPassChangeView.xaml

148 lines
4.8 KiB
Plaintext
Raw Normal View History

2023-01-13 10:57:37 +08:00
<Window
x:Class="SicUI.EditorPassChangeView"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:controls="clr-namespace:OpenSEMI.Ctrlib.Controls;assembly=MECF.Framework.UI.Client"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:local="clr-namespace:SicUI"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
Title="Password Change"
Width="365"
Height="200"
ResizeMode="NoResize"
Topmost="True"
WindowStartupLocation="CenterScreen"
mc:Ignorable="d">
<Grid>
<Grid.Resources>
<Style TargetType="PasswordBox">
<Setter Property="VerticalContentAlignment" Value="Center" />
<Setter Property="HorizontalContentAlignment" Value="Center" />
<Setter Property="HorizontalAlignment" Value="Stretch" />
<Setter Property="VerticalAlignment" Value="Center" />
<Setter Property="Height" Value="26" />
<Setter Property="Margin" Value="0,0,5,0" />
</Style>
</Grid.Resources>
<Grid.RowDefinitions>
<RowDefinition Height="35" />
<RowDefinition Height="35" />
<RowDefinition Height="35" />
<RowDefinition Height="35" />
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="120" />
<ColumnDefinition Width="130" />
<ColumnDefinition Width="*" />
</Grid.ColumnDefinitions>
<!-- 1 -->
<Border
Grid.Row="0"
Grid.Column="0"
Padding="1,1,0,0"
Background="{DynamicResource Table_BG_Title}"
BorderBrush="{DynamicResource Table_BD}"
BorderThickness="1,0,1,1">
<TextBlock
VerticalAlignment="Center"
Foreground="{DynamicResource FG_Black}"
Text="Current Password:"
TextWrapping="Wrap" />
</Border>
<Border
Grid.Row="0"
Grid.Column="1"
Grid.ColumnSpan="2"
Padding="1,1"
Background="{Binding LLBStatusBackground}"
BorderBrush="{DynamicResource Table_BD}"
BorderThickness="1,1,1,1">
<PasswordBox Name="CurPass" />
</Border>
<!-- 2 -->
<Border
Grid.Row="1"
Grid.Column="0"
Padding="1,1,0,0"
Background="{DynamicResource Table_BG_Title}"
BorderBrush="{DynamicResource Table_BD}"
BorderThickness="1,0,1,1">
<TextBlock
VerticalAlignment="Center"
Foreground="{DynamicResource FG_Black}"
Text="New Password:"
TextWrapping="Wrap" />
</Border>
<Border
Grid.Row="1"
Grid.Column="1"
Grid.ColumnSpan="2"
Padding="1,1"
Background="{Binding LLBStatusBackground}"
BorderBrush="{DynamicResource Table_BD}"
BorderThickness="1,1,1,1">
<PasswordBox Name="NewPass1" />
</Border>
<!-- 3 -->
<Border
Grid.Row="2"
Grid.Column="0"
Padding="1,1,0,0"
Background="{DynamicResource Table_BG_Title}"
BorderBrush="{DynamicResource Table_BD}"
BorderThickness="1,0,1,1">
<TextBlock
VerticalAlignment="Center"
Foreground="{DynamicResource FG_Black}"
Text="Confirm Password:"
TextWrapping="Wrap" />
</Border>
<Border
Grid.Row="2"
Grid.Column="1"
Grid.ColumnSpan="2"
Padding="1,1"
Background="{Binding LLBStatusBackground}"
BorderBrush="{DynamicResource Table_BD}"
BorderThickness="1,1,1,1">
<PasswordBox Name="NewPass2" />
</Border>
<!-- 4 -->
<Border
Grid.Row="3"
Grid.Column="0"
Grid.ColumnSpan="2"
Background="{Binding LLBStatusBackground}"
BorderBrush="{DynamicResource Table_BD}"
BorderThickness="1,1,1,1" />
<Border
Grid.Row="3"
Grid.Column="2"
Padding="5,1,0,0"
Background="{DynamicResource Table_BG_Title}"
BorderBrush="{DynamicResource Table_BD}"
BorderThickness="0,1,1,1">
<Button
Width="80"
Height="28"
Margin="0,0,0,0"
HorizontalAlignment="Center"
VerticalAlignment="Center"
Click="Button_Click"
Content="Change" />
</Border>
</Grid>
</Window>