60 lines
2.8 KiB
XML
60 lines
2.8 KiB
XML
<Window x:Class="MECF.Framework.UI.Client.Ctrlib.Controls.PanelLockerPasswordChanger"
|
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
|
mc:Ignorable="d"
|
|
Title="Change Password" Height="220" Width="356"
|
|
WindowStyle="ToolWindow"
|
|
ResizeMode="NoResize"
|
|
WindowStartupLocation="CenterScreen">
|
|
<Window.Resources>
|
|
<Style TargetType="PasswordBox">
|
|
<Setter Property="VerticalAlignment" Value="Center"/>
|
|
<Setter Property="VerticalContentAlignment" Value="Center"/>
|
|
<Setter Property="Height" Value="25"/>
|
|
<Setter Property="MaxLength" Value="15"/>
|
|
</Style>
|
|
|
|
<Style TargetType="TextBlock">
|
|
<Setter Property="VerticalAlignment" Value="Center"/>
|
|
<Setter Property="HorizontalAlignment" Value="Right"/>
|
|
<Setter Property="Margin" Value="0 0 10 0"/>
|
|
</Style>
|
|
</Window.Resources>
|
|
<Grid Margin="10">
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="130"/>
|
|
<ColumnDefinition/>
|
|
</Grid.ColumnDefinitions>
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="35"/>
|
|
<RowDefinition Height="35"/>
|
|
<RowDefinition Height="35"/>
|
|
<RowDefinition Height="auto"/>
|
|
<RowDefinition Height="auto"/>
|
|
</Grid.RowDefinitions>
|
|
|
|
<TextBlock Text="Old Password"/>
|
|
<TextBlock Grid.Row="1" Text="New Password"/>
|
|
<TextBlock Grid.Row="2" Text="Confirm Password"/>
|
|
|
|
<PasswordBox x:Name="txtOldPass" Grid.Row="0" Grid.Column="1" FocusManager.FocusedElement="{Binding RelativeSource={RelativeSource Self}}"/>
|
|
<PasswordBox x:Name="txtNewPass" Grid.Row="1" Grid.Column="1" />
|
|
<PasswordBox x:Name="txtConfirmPass" Grid.Row="2" Grid.Column="1" />
|
|
|
|
<TextBlock x:Name="txtInfo" Text="" Grid.Row="3" HorizontalAlignment="Center" Grid.ColumnSpan="2" FontStyle="Italic" Foreground="Red" Margin="0,5,0,5"/>
|
|
|
|
<StackPanel Orientation="Horizontal" Grid.Row="4" VerticalAlignment="Center" Grid.ColumnSpan="2" HorizontalAlignment="Right" Margin="0,5,0,0">
|
|
<StackPanel.Resources>
|
|
<Style TargetType="Button" BasedOn="{StaticResource {x:Type Button}}">
|
|
<Setter Property="Width" Value="70"/>
|
|
<Setter Property="Margin" Value="2 0"/>
|
|
</Style>
|
|
</StackPanel.Resources>
|
|
<Button x:Name="btnOk" Content="OK" Click="btnOk_Click"/>
|
|
<Button x:Name="btnCancel" Content="Cancel" Click="btnCancel_Click"/>
|
|
</StackPanel>
|
|
</Grid>
|
|
</Window>
|