<UserControl x:Class="Valg.EVA.Skanning.UserInterfaceElements.TopBar.BoxCountingInformationView"
             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:topBar="clr-namespace:Valg.EVA.Skanning.UserInterfaceElements.TopBar"
             mc:Ignorable="d"
             d:DataContext="{d:DesignInstance d:Type=topBar:BoxCountingInformationViewModel}">
    <UserControl.Resources>
        <ResourceDictionary>
            <ResourceDictionary.MergedDictionaries>
                <ResourceDictionary Source="/Valg.EVA.Skanning.Assets;component/ResourceDictionaries/ResourceLibrary.xaml" />
            </ResourceDictionary.MergedDictionaries>
            <Style BasedOn="{StaticResource LinkButtonNormal}" TargetType="Button">
                <Setter Property="Margin" Value="0,0,20,0" />
            </Style>
            <Style x:Key="TextblockBaseStyle" TargetType="{x:Type TextBlock}">
                <Setter Property="FontFamily" Value="Arial" />
            </Style>
        </ResourceDictionary>
    </UserControl.Resources>
    <StackPanel Orientation="Vertical" Visibility="{Binding IsVisible, Converter={StaticResource BooleanToVisibilityConverter}}">
        <StackPanel.Resources>
            <Style x:Key="majorTextblocksStyle" TargetType="{x:Type TextBlock}" BasedOn="{StaticResource TextblockBaseStyle}">
                <Setter Property="FontWeight" Value="Bold"/>
                <Setter Property="FontSize" Value="20"/>
            </Style>
        </StackPanel.Resources>

        <TextBlock Style="{DynamicResource majorTextblocksStyle}" Text="{Binding VotingCategory}" />
        <StackPanel Orientation="Horizontal" Margin="0,5,0,0">
            <StackPanel.Resources>
                <Style x:Key="minorTextblocksStyle" TargetType="{x:Type TextBlock}" BasedOn="{StaticResource TextblockBaseStyle}">
                    <Setter Property="Margin" Value="0,0,5,0" />
                    <Setter Property="FontSize" Value="14"/>
                </Style>
            </StackPanel.Resources>
            <TextBlock Style="{DynamicResource minorTextblocksStyle}" Text="{Binding AreaDescription}" Visibility="{Binding ShowAreaDescription, Converter={StaticResource BooleanToVisibilityConverter}}" />
            <TextBlock Style="{DynamicResource minorTextblocksStyle}" Text="|" Visibility="{Binding ShowAreaDescription, Converter={StaticResource BooleanToVisibilityConverter}}" />
            <TextBlock Style="{DynamicResource minorTextblocksStyle}" Text="{Binding CountingDescription}" />
            <TextBlock Style="{DynamicResource minorTextblocksStyle}" Text="|" />
            <TextBlock Style="{DynamicResource minorTextblocksStyle}" Text="{Binding BoxDescription}" />
        </StackPanel>
    </StackPanel>
</UserControl>
