67 lines
2.7 KiB
XML
67 lines
2.7 KiB
XML
<UserControl x:Name="_this"
|
|
x:Class="C4IT_CustomerPanel.UserControls.PasswordInputBox"
|
|
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"
|
|
xmlns:local="clr-namespace:C4IT_CustomerPanel.UserControls"
|
|
xmlns:ico="clr-namespace:C4IT.AdaptableIcons;assembly=C4IT-AdaptableIcons"
|
|
xmlns:sys="clr-namespace:System;assembly=mscorlib"
|
|
mc:Ignorable="d"
|
|
d:DesignWidth="400"
|
|
>
|
|
<Border
|
|
Margin="8 5"
|
|
CornerRadius="2"
|
|
BorderThickness="0.5"
|
|
BorderBrush="Gray"
|
|
VerticalAlignment="Center"
|
|
Padding="3 2"
|
|
>
|
|
<Grid>
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="*" />
|
|
<ColumnDefinition Width="auto" />
|
|
</Grid.ColumnDefinitions>
|
|
<PasswordBox Grid.Column="0"
|
|
x:Name="pwBoxPassword" x:FieldModifier="private"
|
|
BorderThickness="0"
|
|
BorderBrush="Transparent"
|
|
VerticalAlignment="Center"
|
|
Margin="0 0 3 0"
|
|
Password="123"
|
|
Visibility="Visible"
|
|
PasswordChanged="pwBoxPassword_PasswordChanged"
|
|
/>
|
|
<TextBox Grid.Column="0"
|
|
x:Name="txtBoxPassword" x:FieldModifier="private"
|
|
BorderThickness="0"
|
|
BorderBrush="Transparent"
|
|
VerticalAlignment="Center"
|
|
Visibility="Collapsed"
|
|
Margin="0 0 3 0"
|
|
Text="123"
|
|
TextChanged="txtBoxPassword_TextChanged"
|
|
/>
|
|
<ico:AdaptableIcon
|
|
x:Name="iconShow" x:FieldModifier="private"
|
|
Grid.Column="1"
|
|
SelectedMaterialIcon="ic_visibility"
|
|
BorderPadding="0"
|
|
IconWidth="17" IconHeight="17"
|
|
Visibility="Visible"
|
|
MouseLeftButtonDown="iconPasswordShow_MouseLeftButtonDown"
|
|
/>
|
|
<ico:AdaptableIcon
|
|
x:Name="iconHide" x:FieldModifier="private"
|
|
Grid.Column="1"
|
|
SelectedMaterialIcon="ic_visibility_off"
|
|
BorderPadding="0"
|
|
IconWidth="17" IconHeight="17"
|
|
Visibility="Collapsed"
|
|
MouseLeftButtonDown="iconPasswordShow_MouseLeftButtonDown"
|
|
/>
|
|
</Grid>
|
|
</Border>
|
|
</UserControl>
|