<UserControl x:Class="FFXIV_TexTools.Views.Controls.HexTextBox"
             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:FFXIV_TexTools.Views.Controls"
             mc:Ignorable="d" 
             d:DesignHeight="30" d:DesignWidth="150">
    <Grid>
        <TextBox x:Name="_HexBox">
            <Binding Path="HexVal" UpdateSourceTrigger="PropertyChanged">
                <Binding.ValidationRules>
                    <local:HexValidationRule />
                </Binding.ValidationRules>
                <Binding.Converter>
                    <local:HexValueConverter />
                </Binding.Converter>
            </Binding>
        </TextBox>
    </Grid>
</UserControl>
