<UserControl x:Class="Valg.EVA.Skanning.UserInterfaceElements.EmergencyMode.SelectCountingAsView"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:emergencyMode="clr-namespace:Valg.EVA.Skanning.UserInterfaceElements.EmergencyMode"
              xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
             mc:Ignorable="d" 
             d:DataContext="{d:DesignInstance d:Type=emergencyMode:SelectCountingAsViewModel}">
    <StackPanel>
        <TextBlock Text="{Binding Title}" Style="{StaticResource TextBlockMediumHeader}"  Margin="0,0,0,20" />
        <RadioButton
            Margin="0, 0,0,10"
            GroupName="Municipality"
            Command="{Binding Path=DataContext.RadioButtonSelectedCommand, RelativeSource={RelativeSource Mode=FindAncestor, AncestorType={x:Type emergencyMode:SelectCountingAsView} } }"
            CommandParameter="County">
            <TextBlock Text="{Binding LanguageString.EmergencyMode_SelectCountingAsView_CountingAsCounty}" Style="{StaticResource TextBlockNormal}" />
        </RadioButton>
        <RadioButton
            Margin="0, 0,0,10"
            GroupName="Municipality"
            Command="{Binding Path=DataContext.RadioButtonSelectedCommand, RelativeSource={RelativeSource Mode=FindAncestor, AncestorType={x:Type emergencyMode:SelectCountingAsView} } }"
            CommandParameter="Municipality">
            <TextBlock Text="{Binding LanguageString.EmergencyMode_SelectCountingAsView_CountingAsMunicipality}" Style="{StaticResource TextBlockNormal}" />
        </RadioButton>
    </StackPanel>
</UserControl>
