Sic04/SicUI/Models/RecipeEditors/EditorPassChangeView.xaml

148 lines
5.2 KiB
XML

<Window x:Class="SicUI.EditorPassChangeView"
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:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:controls="clr-namespace:OpenSEMI.Ctrlib.Controls;assembly=MECF.Framework.UI.Client"
xmlns:local="clr-namespace:SicUI"
mc:Ignorable="d"
Title="Password Change"
Height="200"
Width="365" Topmost="True"
WindowStartupLocation="CenterScreen"
ResizeMode="NoResize" >
<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>
<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"
Content="Change"
Click="Button_Click"
HorizontalAlignment="Center"
VerticalAlignment="Center" />
</Border>
</Grid>
</Window>