<UserControl x:Class="Valg.EVA.Skanning.JobManagement.Startup.UI.VotingCategories.VotingCategoriesView"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"             
             xmlns:pollingDistrict="clr-namespace:Valg.EVA.Skanning.JobManagement.Startup.UI.PollingDistrict"
              xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
            xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
             xmlns:votingCategories="clr-namespace:Valg.EVA.Skanning.JobManagement.Startup.UI.VotingCategories"
            mc:Ignorable="d"
            d:DataContext="{d:DesignInstance d:Type=votingCategories:VotingCategoriesViewModel}"
             SnapsToDevicePixels="True"
             IsTabStop="False">
    <UserControl.Resources>
        <ResourceDictionary>            
            <Style TargetType="pollingDistrict:PollingDistrictsView">
                <Setter Property="Margin" Value="0, 30, 0,0"/>
            </Style>
            
        </ResourceDictionary>
    </UserControl.Resources>
    <Grid>
        <TabControl x:Name="TabControlVotingType" Margin="5" TabStripPlacement="Top" IsTabStop="False" Padding="10" Style="{StaticResource BlackAndWhiteTabControlStyle}" FontSize="16">
            <TabItem Style="{StaticResource BlackAndWhiteTabItemStyle}" Visibility="{Binding IsCollapsedVO, Converter={StaticResource BooleanToVisibilityConverter}}" Header="{Binding TabTitleVotingCategoryVO}" IsTabStop="False">                
                <pollingDistrict:PollingDistrictsView DataContext="{Binding Source={StaticResource ViewModelLocator}, Path=PollingDistrictsViewModel}" VotingCategoryType="VO_Valgtingsstemmer"/>                
            </TabItem>
            <TabItem Style="{StaticResource BlackAndWhiteTabItemStyle}" Visibility="{Binding IsCollapsedFO, Converter={StaticResource BooleanToVisibilityConverter}}" Header="{Binding TabTitleVotingCategoryFO}" IsTabStop="False">
                <pollingDistrict:PollingDistrictsView DataContext="{Binding Source={StaticResource ViewModelLocator}, Path=PollingDistrictsViewModel}" VotingCategoryType="FO_Forhåndsstemmer"/>                
            </TabItem>
            <TabItem Style="{StaticResource BlackAndWhiteTabItemStyle}" Visibility="{Binding IsCollapsedFS, Converter={StaticResource BooleanToVisibilityConverter}}" Header="{Binding TabTitleVotingCategoryFS}" IsTabStop="False">
                <pollingDistrict:PollingDistrictsView DataContext="{Binding Source={StaticResource ViewModelLocator}, Path=PollingDistrictsViewModel}" VotingCategoryType="FS_SentInnkomne"/>                
            </TabItem>
            <TabItem Style="{StaticResource BlackAndWhiteTabItemStyle}"  Visibility="{Binding IsCollapsedVF, Converter={StaticResource BooleanToVisibilityConverter}}" Header="{Binding TabTitleVotingCategoryVF}" IsTabStop="False">
                <pollingDistrict:PollingDistrictsView DataContext="{Binding Source={StaticResource ViewModelLocator}, Path=PollingDistrictsViewModel}" VotingCategoryType="VF_Fremmedstemmer"/>                
            </TabItem>
            <TabItem Style="{StaticResource BlackAndWhiteTabItemStyle}" Visibility="{Binding IsCollapsedVB, Converter={StaticResource BooleanToVisibilityConverter}}" Header="{Binding TabTitleVotingCategoryVB}" IsTabStop="False">
                <pollingDistrict:PollingDistrictsView DataContext="{Binding Source={StaticResource ViewModelLocator}, Path=PollingDistrictsViewModel}" VotingCategoryType="VB_Beredskap"/>                
            </TabItem>
            <TabItem Style="{StaticResource BlackAndWhiteTabItemStyle}" Visibility="{Binding IsCollapsedVS, Converter={StaticResource BooleanToVisibilityConverter}}" Header="{Binding TabTitleVotingCategoryVS}" IsTabStop="False">
                <pollingDistrict:PollingDistrictsView DataContext="{Binding Source={StaticResource ViewModelLocator}, Path=PollingDistrictsViewModel}" VotingCategoryType="VS_SærskiltOmslag"/>                
            </TabItem>
            <TabItem Style="{StaticResource BlackAndWhiteTabItemStyle}" Visibility="{Binding IsCollapsedBF, Converter={StaticResource BooleanToVisibilityConverter}}" Header="{Binding TabTitleVotingCategoryBF}" IsTabStop="False">
                <pollingDistrict:PollingDistrictsView DataContext="{Binding Source={StaticResource ViewModelLocator}, Path=PollingDistrictsViewModel}" VotingCategoryType="BF_FremmedstemmerBydelsvalg"/>
            </TabItem>
        </TabControl>
    </Grid>
</UserControl>
