<UserControl x:Class="AdbTools.CustomControl.HintPasswordBox"
             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="40" d:DesignWidth="300" Loaded="UserControl_Loaded">
    <Grid x:Name="grid">
        <PasswordBox x:Name="passwordBox" PasswordChar="*" Height="{Binding ElementName=grid, Path=ActualHeight}" Margin="0,0,0,2" Padding="0,1,1,1" VerticalContentAlignment="Center" Background="{x:Null}" BorderBrush="{x:Null}" SelectionBrush="#FF3399FF" BorderThickness="0" PasswordChanged="passwordBox_PasswordChanged"
                     DataObject.Pasting="passwordBox_Pasting" PreviewKeyDown="passwordBox_PreviewKeyDown" PreviewTextInput="passwordBox_PreviewTextInput"/>
        <Label x:Name="hint" Content="" HorizontalAlignment="Left" VerticalAlignment="Center" Foreground="#FF797A80" IsHitTestVisible="False" Background="{x:Null}" Margin="0,0,0,0"/>
        <Line x:Name="line" X1="0" X2="{Binding ElementName=grid, Path=ActualWidth}" Y1="{Binding ElementName=passwordBox, Path=ActualHeight}" Y2="{Binding ElementName=passwordBox, Path=ActualHeight}"/>
        <!--<Image x:Name="image" Width="20" Height="20"  HorizontalAlignment="Left" Margin="10,0,0,0" VerticalAlignment="Center" />-->
    </Grid>
</UserControl>
