39 lines
2.1 KiB
Plaintext
39 lines
2.1 KiB
Plaintext
|
<UserControl x:Class="MECF.Framework.UI.Client.Ctrlib.Controls.PanelLocker"
|
||
|
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"
|
||
|
d:DesignHeight="1000" d:DesignWidth="1000">
|
||
|
<Border Background="Transparent">
|
||
|
<Border Width="318" Height="148"
|
||
|
BorderBrush="{DynamicResource Button_BG}"
|
||
|
BorderThickness="10,10,10,10" CornerRadius="10,10,10,10"
|
||
|
Background="{DynamicResource Color_BD_LoginPanel}"
|
||
|
Padding="5,5,5,5">
|
||
|
<Grid VerticalAlignment="Center">
|
||
|
<Grid.RowDefinitions>
|
||
|
<RowDefinition Height="Auto"/>
|
||
|
<RowDefinition Height="30"/>
|
||
|
<RowDefinition Height="Auto"/>
|
||
|
<RowDefinition/>
|
||
|
</Grid.RowDefinitions>
|
||
|
<TextBlock Text="Input password to unlock" HorizontalAlignment="Center" Margin="0,0,10,5" VerticalAlignment="Center"/>
|
||
|
<PasswordBox
|
||
|
x:Name="txtPass" Grid.Column="1" Height="28"
|
||
|
HorizontalContentAlignment="Center"
|
||
|
VerticalContentAlignment="Center"
|
||
|
MaxLength="15" Grid.Row="1"
|
||
|
FocusManager.FocusedElement="{Binding RelativeSource={RelativeSource Self}}"
|
||
|
PreviewKeyDown="TxtPass_OnPreviewKeyDown"/>
|
||
|
<TextBlock x:Name="txtInfo" Grid.Row="2" Grid.ColumnSpan="3" FontSize="9" HorizontalAlignment="Center" Margin="0,5,0,0" FontStyle="Italic" Foreground="Red"/>
|
||
|
<Button
|
||
|
x:Name="btnUnlock" Content="Unlock"
|
||
|
Grid.Column="0" Grid.Row="3" Grid.ColumnSpan="2"
|
||
|
HorizontalAlignment="Center" Margin="0,10,0,0"
|
||
|
Click="BtnUnlock_OnClick"/>
|
||
|
</Grid>
|
||
|
</Border>
|
||
|
</Border>
|
||
|
</UserControl>
|