<UserControl x:Class="AdbTools.CustomControl.HintTextBox"
             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" x:Name="parent"
             d:DesignHeight="40" d:DesignWidth="300" Loaded="UserControl_Loaded">
    <Grid  x:Name="grid">
        <TextBox x:Name="textBox" Margin="0" VerticalContentAlignment="Center" Background="{x:Null}"
                 TextChanged="textBox_TextChanged" TextInput="textBox_TextInput" BorderBrush="{Binding  ElementName=parent, Path=BorderBrush}" BorderThickness="{Binding ElementName=parent, Path=BorderThickness}" 
                 Foreground="{Binding ElementName=parent, Path=Foreground}" 
                 DataObject.Pasting="textBox_Pasting" PreviewKeyDown="textBox_PreviewKeyDown" PreviewTextInput="textBox_PreviewTextInput"/>
        <Label x:Name="hint" Content="" Foreground="#FF797A80" IsHitTestVisible="False" Background="{x:Null}"  Margin="0" Padding="0" VerticalContentAlignment="Center"/>
        <Line x:Name="line" X1="0" X2="{Binding ElementName=textBox, Path=ActualWidth}" Y1="{Binding ElementName=textBox, Path=ActualHeight}" Y2="{Binding ElementName=textBox, Path=ActualHeight}"/>
        <!--<Image x:Name="image" Width="20" Height="20"  HorizontalAlignment="Left" Margin="10,0,0,0" VerticalAlignment="Center" />-->
    </Grid>
</UserControl>
