<UserControl x:Class="Valg.EVA.Skanning.Verify.Startup.Filter.FilterView"
             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:filter="clr-namespace:Valg.EVA.Skanning.Verify.Startup.Filter"
             mc:Ignorable="d"
             d:DataContext="{d:DesignInstance d:Type=filter:FilterViewModel}">

    <StackPanel Orientation="Horizontal" Margin="0,0,0,10">
        <StackPanel.Resources>
            <Style TargetType="Border">
                <Setter Property="BorderBrush" Value="{StaticResource GrayBorder}" />
                <Setter Property="BorderThickness" Value="1" />
                <Style.Triggers>
                    <DataTrigger Binding="{ Binding IsFilterActive }" Value="True">
                        <Setter Property="BorderBrush" Value="{StaticResource ActiveElementBorderBrush}" />
                        <Setter Property="BorderThickness" Value="2" />
                    </DataTrigger>
                </Style.Triggers>
            </Style>
        </StackPanel.Resources>

        <Border Width="450">
            <TextBox
                     Text="{Binding FilterText, UpdateSourceTrigger=PropertyChanged}"
                     Style="{StaticResource TextBoxFilter}" />
        </Border>        
        <Button Width="70"
                Margin="10,0,0,0"
                Style="{StaticResource BlueButton}"
                Content="{Binding JobManagementLanguageString.Filter_ClearButtonText}"
                Command="{Binding ClearTextFieldCommand}" />
    </StackPanel>
</UserControl>
