23 lines
1.3 KiB
XML
23 lines
1.3 KiB
XML
<UserControl x:Class="com.muldersoft.slunkcrypt.gui.ctrls.PasswordToggleBox"
|
|
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="25" d:DesignWidth="300" Focusable="True">
|
|
|
|
<UserControl.Resources>
|
|
<ScaleTransform x:Key="FontStretchExpanded" ScaleX="1.2" />
|
|
<Style TargetType="Control" x:Key="ExpanedFontStyle">
|
|
<Style.Setters>
|
|
<Setter Property="LayoutTransform" Value="{StaticResource FontStretchExpanded}" />
|
|
</Style.Setters>
|
|
</Style>
|
|
</UserControl.Resources>
|
|
|
|
<Grid>
|
|
<PasswordBox Name="Edit_Hidden" MinHeight="{Binding ActualHeight,ElementName=Edit_Normal}" VerticalContentAlignment="Center" Style="{StaticResource ExpanedFontStyle}" KeyDown="Edit_KeyDown" Panel.ZIndex="1"/>
|
|
<TextBox DockPanel.Dock="Left" Name="Edit_Normal" MinHeight="{Binding ActualHeight,ElementName=Edit_Hidden}" VerticalContentAlignment="Center" Style="{StaticResource ExpanedFontStyle}" KeyDown="Edit_KeyDown" Panel.ZIndex="0"/>
|
|
</Grid>
|
|
</UserControl>
|