<ui:ContextAwareControl x:Class="Valg.EVA.Skanning.JobManagement.Startup.UI.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:ui="clr-namespace:Valg.EVA.Skanning.JobManagement.Startup.UI"
             xmlns:filter="clr-namespace:Valg.EVA.Skanning.JobManagement.Startup.UI.Filter"
             mc:Ignorable="d"
             d:DataContext="{d:DesignInstance d:Type=filter:FilterViewModel}"
             d:DesignHeight="300" d:DesignWidth="300">

    <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>
            <TextBox Width="350"                     
                     Text="{Binding FilterText, UpdateSourceTrigger=PropertyChanged}"
                     Style="{StaticResource TextBoxFilter}" />
        </Border>        
        <Button
            Margin="10,0,0,0"
            Style="{StaticResource BlueButton}"
            Content="{Binding JobManagementLanguageString.Filter_ClearButtonText}"
            Command="{Binding ClearTextFieldCommand}" />
    </StackPanel>
</ui:ContextAwareControl>
