<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
    <ResourceDictionary.MergedDictionaries>
        <ResourceDictionary Source="../Brushes/Icons.xaml"/>
        <ResourceDictionary Source="../BaseControlStyles/ButtonStyle.xaml" />
        <ResourceDictionary Source="../Icons/PlayArrowIconStyle.xaml" />
        <ResourceDictionary Source="../Icons/UserCorrectionHasBeenMadeIconStyle.xaml" />
        <ResourceDictionary Source="../Icons/RadioButtonUncheckedIconStyle.xaml" />
        <ResourceDictionary Source="../Icons/RadioButtonCheckedIconStyle.xaml" />
        <ResourceDictionary Source="../Brushes/DefaultColorTheme.xaml"/>
        <ResourceDictionary Source="../BaseControlStyles/ButtonFocusVisualStyle.xaml" />
    </ResourceDictionary.MergedDictionaries>
    <Style TargetType="RadioButton" x:Key="BlueRadioButton">
        <Setter Property="Cursor" Value="Hand" />
        <Setter Property="FocusVisualStyle" Value="{StaticResource ButtonFocusVisual}" />
        <Setter Property="FontFamily" Value="Arial"/>
        <Setter Property="FontSize" Value="16"/>
        <Setter Property="Foreground" Value="{StaticResource ButtonNormalForegroundBrush}" />
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="{x:Type RadioButton}">
                    <Border 
                        x:Name="Border"
                        CornerRadius="0"
                        Margin="0"
                        Opacity="1"
                        Background="{StaticResource ButtonNormalBackgroundBrush}"
                        BorderBrush="{StaticResource ButtonNormalBorderBrush}"
                        BorderThickness="3"
                        SnapsToDevicePixels="True">
                        <Grid>
                            <Grid.ColumnDefinitions>
                                <ColumnDefinition Width="30" />
                                <ColumnDefinition Width="*" />
                                <ColumnDefinition Width="30" />
                            </Grid.ColumnDefinitions>
                            <TextBlock Grid.Column="0" x:Name="RadioButtonUnchecked"
                                       Style="{StaticResource RadioButtonUncheckedIcon}"
                                       HorizontalAlignment="Center"
                                       VerticalAlignment="Center"
                                       Foreground="{StaticResource ButtonNormalForegroundBrush}"
                                       Visibility="Visible"/>
                            <TextBlock Grid.Column="0" x:Name="RadioButtonChecked"
                                       Style="{StaticResource RadioButtonCheckedIcon}"
                                       HorizontalAlignment="Center"
                                       VerticalAlignment="Center"
                                       Foreground="{StaticResource ButtonNormalForegroundBrush}"
                                       Visibility="Collapsed"/>
                            <ContentPresenter Grid.Column="1" VerticalAlignment="Center" HorizontalAlignment="Left" Margin="5"/>
                        </Grid>
                    </Border>

                    <ControlTemplate.Triggers><Trigger Property="IsKeyboardFocused" Value="True">
                            <Setter TargetName="Border" Property="Background">
                                <Setter.Value>
                                    <SolidColorBrush Color="{StaticResource ButtonKeyboardFocusBackgroundColor}" />
                                </Setter.Value>
                            </Setter>
                            <Setter TargetName="Border" Property="BorderBrush">
                                <Setter.Value>
                                    <SolidColorBrush Color="{StaticResource ButtonKeyboardFocusBorderColor}" />
                                </Setter.Value>
                            </Setter>
                            <Setter Property="Foreground">
                                <Setter.Value>
                                    <SolidColorBrush Color="{StaticResource ButtonKeyboardFocusForegroundColor}" />
                                </Setter.Value>
                            </Setter>
                            <Setter TargetName="RadioButtonChecked" Property="Visibility" Value="Visible"/>
                            <Setter TargetName="RadioButtonChecked" Property="Foreground">
                                <Setter.Value>
                                    <SolidColorBrush Color="{StaticResource ButtonNormalBackgroundColor}" />
                                </Setter.Value>
                            </Setter>
                        </Trigger>
                        <Trigger Property="IsMouseOver" Value="True">
                            <Setter TargetName="Border" Property="Background">
                                <Setter.Value>
                                    <SolidColorBrush Color="{StaticResource ButtonNormalBackgroundColor}" />
                                </Setter.Value>
                            </Setter>
                            <Setter TargetName="Border" Property="BorderBrush">
                                <Setter.Value>
                                    <SolidColorBrush Color="{StaticResource ButtonKeyboardFocusBorderColor}" />
                                </Setter.Value>
                            </Setter>
                            <Setter TargetName="RadioButtonChecked" Property="Visibility" Value="Visible"/>
                            <Setter TargetName="RadioButtonChecked" Property="Foreground">
                                <Setter.Value>
                                    <SolidColorBrush Color="{StaticResource ButtonNormalForegroundColor}" />
                                </Setter.Value>
                            </Setter>
                            <Setter Property="Foreground">
                                <Setter.Value>
                                    <SolidColorBrush Color="{StaticResource ButtonNormalForegroundColor}" />
                                </Setter.Value>
                            </Setter>
                        </Trigger>
                        <Trigger Property="IsEnabled" Value="False">
                            <Setter TargetName="Border" Property="Background" Value="{StaticResource ButtonDisabledTextColor}"/>
                            <Setter Property="Foreground">
                                <Setter.Value>
                                    <SolidColorBrush Color="White" />
                                </Setter.Value>
                            </Setter>
                            <Setter TargetName="Border" Property="BorderBrush">
                                <Setter.Value>
                                    <SolidColorBrush Color="{StaticResource ButtonDisabledBackgroundColor}" />
                                </Setter.Value>
                            </Setter>
                        </Trigger>
                        <Trigger Property="IsChecked" Value="True">
                            <Setter TargetName="RadioButtonUnchecked" Property="Visibility" Value="Collapsed"/>
                            <Setter TargetName="RadioButtonChecked" Property="Visibility" Value="Visible"/>
                            <Setter Property="Foreground">
                                <Setter.Value>
                                    <SolidColorBrush Color="{StaticResource ButtonNormalForegroundColor}" />
                                </Setter.Value>
                            </Setter>
                            <Setter TargetName="Border" Property="Background">
                                <Setter.Value>
                                    <SolidColorBrush Color="{StaticResource ButtonNormalBackgroundColor}" />
                                </Setter.Value>
                            </Setter>
                        </Trigger>
                        <MultiTrigger>
                            <MultiTrigger.Conditions>
                                <Condition Property="IsChecked" Value="True"></Condition>
                                <Condition Property="IsKeyboardFocused" Value="True"></Condition>
                            </MultiTrigger.Conditions>
                            <Setter TargetName="RadioButtonUnchecked" Property="Visibility" Value="Collapsed"/>
                            <Setter TargetName="RadioButtonChecked" Property="Visibility" Value="Visible"/>
                            <Setter TargetName="Border" Property="Background">
                                <Setter.Value>
                                    <SolidColorBrush Color="{StaticResource ButtonNormalForegroundColor}" />
                                </Setter.Value>
                            </Setter>
                            <Setter Property="Foreground">
                                <Setter.Value>
                                    <SolidColorBrush Color="{StaticResource ButtonNormalBackgroundColor}" />
                                </Setter.Value>
                            </Setter>
                        </MultiTrigger>
                        <MultiTrigger>
                            <MultiTrigger.Conditions>
                                <Condition Property="IsChecked" Value="True"></Condition>
                                <Condition Property="IsMouseOver" Value="True"></Condition>
                                <Condition Property="IsKeyboardFocused" Value="True"></Condition>
                            </MultiTrigger.Conditions>
                            <Setter TargetName="RadioButtonUnchecked" Property="Visibility" Value="Collapsed"/>
                            <Setter TargetName="RadioButtonChecked" Property="Visibility" Value="Visible"/>
                            <Setter TargetName="RadioButtonChecked" Property="Foreground">
                                <Setter.Value>
                                    <SolidColorBrush Color="{StaticResource ButtonNormalForegroundColor}" />
                                </Setter.Value>
                            </Setter>
                            <Setter TargetName="Border" Property="Background">
                                <Setter.Value>
                                    <SolidColorBrush Color="{StaticResource ButtonNormalBackgroundColor}" />
                                </Setter.Value>
                            </Setter>
                            <Setter Property="Foreground">
                                <Setter.Value>
                                    <SolidColorBrush Color="{StaticResource ButtonNormalForegroundColor}" />
                                </Setter.Value>
                            </Setter>
                        </MultiTrigger>
                    </ControlTemplate.Triggers>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
</ResourceDictionary>
                    
