<UserControl x:Class="Valg.Eva.Skanning.Scan.Presentation.RegisterBarcode.RegisterBarcodeControl"
             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:registerBarcode="clr-namespace:Valg.Eva.Skanning.Scan.Presentation.RegisterBarcode"
             xmlns:binding1="clr-namespace:Valg.EVA.Skanning.UserInterfaceElements.Binding;assembly=Valg.EVA.Skanning.UserInterfaceElements"
             xmlns:userInterfaceElements="clr-namespace:Valg.EVA.Skanning.UserInterfaceElements;assembly=Valg.EVA.Skanning.UserInterfaceElements"
             mc:Ignorable="d"
             d:DataContext="{d:DesignInstance registerBarcode:RegisterBarcodeViewModel}">

    <UserControl.Resources>
        <ResourceDictionary>
            <ResourceDictionary.MergedDictionaries>
                <ResourceDictionary Source="/Valg.EVA.Skanning.Assets;component/ResourceDictionaries/ResourceLibrary.xaml" />
            </ResourceDictionary.MergedDictionaries>
        </ResourceDictionary>
    </UserControl.Resources>

    <StackPanel Orientation="Vertical" HorizontalAlignment="Left" VerticalAlignment="Top">
        <TextBlock HorizontalAlignment="Left" Style="{StaticResource TextBlockLargeHeader}" Text="{Binding RegisterBarcodeInfoText}" TextWrapping="WrapWithOverflow"
                   Margin="0,20,0,0" />
        <Image HorizontalAlignment="Left" Margin="0,20,0,0" Source="/Valg.EVA.Skanning.Assets;component/Images/BarcodeLong.png" Height="23" Width="408" />
        <TextBox HorizontalAlignment="Left"
            Text="{Binding Path=BarcodeLongText, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged, ValidatesOnExceptions=True, UpdateSourceExceptionFilter={x:Static binding1:ExceptionRethrower.Rethrow}}"
            Width="358"
            Margin="0,20,0,0"
            userInterfaceElements:FocusExtension.IsFocused="{Binding IsBarcodeLongFocused}"
            KeyboardNavigation.TabIndex="3"
            MaxLength="{Binding BarCodeLongLength}"
            Style="{StaticResource TextBoxMediumFontSize }"
            CharacterCasing="Upper" />
        <Image HorizontalAlignment="Left" Margin="0,20,0,0" Source="/Valg.EVA.Skanning.Assets;component/Images/BarcodeShort.png" Height="23" Width="326" />
        <TextBox HorizontalAlignment="Left"
            Text="{Binding Path=BarcodeShortText, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged, ValidatesOnExceptions=True, UpdateSourceExceptionFilter={x:Static binding1:ExceptionRethrower.Rethrow}}"
            Width="276"
            Margin="0,20,0,0"
            userInterfaceElements:FocusExtension.IsFocused="{Binding IsBarcodeShortFocused}"
            KeyboardNavigation.TabIndex="4"
            MaxLength="{Binding BarCodeShortLength}"
            Style="{StaticResource TextBoxMediumFontSize}"
            CharacterCasing="Upper" />
        <Button Style="{StaticResource BlueButton}"
                Content="{Binding ScanLanguageString.ClearBarcodes, FallbackValue=Clear}"
                Command="{Binding ClearBarcodesCommand}"
                Margin="0,20,0,0"
                Height="49"
                Width="70"
                HorizontalAlignment="Left"></Button>
    </StackPanel>
</UserControl>
