Sic04/SicUI/Models/RecipeEditors/EditorPassCheckView.xaml

85 lines
2.6 KiB
XML

<Window
x:Class="SicUI.EditorPassCheckView"
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="Log In"
Width="320"
Height="80"
ResizeMode="NoResize"
Topmost="True"
WindowStartupLocation="CenterScreen"
mc:Ignorable="d"
FocusManager.FocusedElement="{Binding ElementName=txtPass}">
<Grid Margin="1,1,1,1">
<Grid.RowDefinitions>
<RowDefinition Height="35" />
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="70" />
<ColumnDefinition Width="130" />
<ColumnDefinition Width="100" />
</Grid.ColumnDefinitions>
<!-- title -->
<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="Password:"
TextWrapping="Wrap" />
</Border>
<Border
Grid.Row="0"
Grid.Column="1"
Padding="1,1"
Background="{Binding LLBStatusBackground}"
BorderBrush="{DynamicResource Table_BD}"
BorderThickness="1,1,1,1">
<PasswordBox
Name="txtPass"
Height="26"
Margin="0,0,5,0"
HorizontalAlignment="Stretch"
VerticalAlignment="Center"
HorizontalContentAlignment="Center"
VerticalContentAlignment="Center"
KeyDown="txtPass_KeyDown"/>
</Border>
<Border
Grid.Row="0"
Grid.Column="2"
Margin="0,0,10,0"
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="Left"
VerticalAlignment="Center"
Click="Button_Click"
Content="OK" />
</Border>
</Grid>
</Window>