<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
    <ResourceDictionary.MergedDictionaries>
        <ResourceDictionary Source="../BaseControlStyles/TextBlockStyle.xaml"/>
        <ResourceDictionary Source="../Icons/UserCorrectionHasBeenMadeIconStyle.xaml" />
        <ResourceDictionary Source="../Icons/PlayArrowIconStyle.xaml" />
        <ResourceDictionary Source="../Converters/VisibilityConverters.xaml"/>
    </ResourceDictionary.MergedDictionaries>

    <Style TargetType="{x:Type Button}" x:Key="YesNoBlueWhiteButtonSelect">
        <Setter Property="Cursor" Value="Hand" />
        <Setter Property="OverridesDefaultStyle" Value="True" />
        <Setter Property="FontFamily" Value="Arial" />
        <Setter Property="FontSize" Value="16" />
        <Setter Property="FontWeight" Value="Normal" />
        <Setter Property="Height" Value="30" />
        <Setter Property="Margin" Value="0" />
        <Setter Property="Background" Value="#007FA9" />
        <Setter Property="SnapsToDevicePixels" Value="True"/>
        <Setter Property="FocusVisualStyle" Value="{x:Null}"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="{x:Type Button}">
                    <Border x:Name="border" BorderBrush="Transparent" BorderThickness="0" Background="{TemplateBinding Background}">
                        <Grid>
                            <Grid.ColumnDefinitions>
                                <ColumnDefinition Width="30" />
                                <ColumnDefinition Width="*" />
                            </Grid.ColumnDefinitions>
                            <TextBlock Grid.Column="0" x:Name="selectionIndicator"
                                       Style="{StaticResource PlayArrowIcon}"
                                       Visibility="Hidden"
                                       HorizontalAlignment="Center"
                                       VerticalAlignment="Center" />
                            <TextBlock Grid.Column="0" x:Name="isMarkedIndicator"
                                       Style="{StaticResource UserCorrectionHasBeenMadeIcon}"
                                       Visibility="Hidden"
                                       HorizontalAlignment="Center"
                                       VerticalAlignment="Center" />
                            <ContentPresenter Grid.Column="1" VerticalAlignment="Center" />
                        </Grid>
                    </Border>
                    <ControlTemplate.Triggers><MultiDataTrigger>
                            <MultiDataTrigger.Conditions>
                                <Condition Binding="{Binding RelativeSource={RelativeSource Mode=Self}, Path=IsKeyboardFocused}" Value="true"/>
                                <Condition Binding="{Binding RelativeSource={RelativeSource Mode=Self}, Path=Name}" Value="NoButton"/>
                                <Condition Binding="{Binding CheckedButton}" Value="NoButton"/>
                            </MultiDataTrigger.Conditions>
                            <Setter Property="Background" Value="White" />
                            <Setter Property="Foreground" Value="#007FA9" />
                            <Setter TargetName="isMarkedIndicator" Property="Foreground" Value="#007FA9" />
                            <Setter TargetName="isMarkedIndicator" Property="Visibility" Value="Visible" />
                            <Setter TargetName="selectionIndicator" Property="Visibility" Value="Hidden" />
                        </MultiDataTrigger><MultiDataTrigger>
                            <MultiDataTrigger.Conditions>
                                <Condition Binding="{Binding RelativeSource={RelativeSource Mode=Self}, Path=IsKeyboardFocused}" Value="false"/>
                                <Condition Binding="{Binding RelativeSource={RelativeSource Mode=Self}, Path=Name}" Value="NoButton"/>
                                <Condition Binding="{Binding CheckedButton}" Value="NoButton"/>
                            </MultiDataTrigger.Conditions>
                            <Setter Property="Background" Value="#007FA9" />
                            <Setter Property="Foreground" Value="White" />
                            <Setter TargetName="isMarkedIndicator" Property="Foreground" Value="White" />
                            <Setter TargetName="isMarkedIndicator" Property="Visibility" Value="Visible" />
                            <Setter TargetName="selectionIndicator" Property="Visibility" Value="Hidden" />
                        </MultiDataTrigger><MultiDataTrigger>
                            <MultiDataTrigger.Conditions>
                                <Condition Binding="{Binding RelativeSource={RelativeSource Mode=Self}, Path=IsKeyboardFocused}" Value="true"/>
                                <Condition Binding="{Binding RelativeSource={RelativeSource Mode=Self}, Path=Name}" Value="NoButton"/>
                                <Condition Binding="{Binding CheckedButton}" Value="YesButton"/>
                            </MultiDataTrigger.Conditions>
                            <Setter Property="Background" Value="White" />
                            <Setter Property="Foreground" Value="#007FA9" />
                            <Setter TargetName="isMarkedIndicator" Property="Visibility" Value="Hidden" />
                            <Setter TargetName="selectionIndicator" Property="Visibility" Value="Visible" />
                        </MultiDataTrigger><MultiDataTrigger>
                            <MultiDataTrigger.Conditions>
                                <Condition Binding="{Binding RelativeSource={RelativeSource Mode=Self}, Path=IsKeyboardFocused}" Value="true"/>
                                <Condition Binding="{Binding RelativeSource={RelativeSource Mode=Self}, Path=Name}" Value="YesButton"/>
                                <Condition Binding="{Binding CheckedButton}" Value="YesButton"/>
                            </MultiDataTrigger.Conditions>
                            <Setter Property="Background" Value="White" />
                            <Setter Property="Foreground" Value="#007FA9" />
                            <Setter TargetName="isMarkedIndicator" Property="Foreground" Value="#007FA9" />
                            <Setter TargetName="isMarkedIndicator" Property="Visibility" Value="Visible" />
                            <Setter TargetName="selectionIndicator" Property="Visibility" Value="Hidden" />
                        </MultiDataTrigger><MultiDataTrigger>
                            <MultiDataTrigger.Conditions>
                                <Condition Binding="{Binding RelativeSource={RelativeSource Mode=Self}, Path=IsKeyboardFocused}" Value="false"/>
                                <Condition Binding="{Binding RelativeSource={RelativeSource Mode=Self}, Path=Name}" Value="YesButton"/>
                                <Condition Binding="{Binding CheckedButton}" Value="YesButton"/>
                            </MultiDataTrigger.Conditions>
                            <Setter Property="Background" Value="#007FA9" />
                            <Setter Property="Foreground" Value="White" />
                            <Setter TargetName="isMarkedIndicator" Property="Foreground" Value="White" />
                            <Setter TargetName="isMarkedIndicator" Property="Visibility" Value="Visible" />
                            <Setter TargetName="selectionIndicator" Property="Visibility" Value="Hidden" />
                        </MultiDataTrigger><MultiDataTrigger>
                            <MultiDataTrigger.Conditions>
                                <Condition Binding="{Binding RelativeSource={RelativeSource Mode=Self}, Path=IsKeyboardFocused}" Value="true"/>
                                <Condition Binding="{Binding RelativeSource={RelativeSource Mode=Self}, Path=Name}" Value="YesButton"/>
                                <Condition Binding="{Binding CheckedButton}" Value="NoButton"/>
                            </MultiDataTrigger.Conditions>
                            <Setter Property="Background" Value="White" />
                            <Setter Property="Foreground" Value="#007FA9" />
                            <Setter TargetName="isMarkedIndicator" Property="Visibility" Value="Hidden" />
                            <Setter TargetName="selectionIndicator" Property="Visibility" Value="Visible" />
                        </MultiDataTrigger><MultiDataTrigger>
                            <MultiDataTrigger.Conditions>
                                <Condition Binding="{Binding RelativeSource={RelativeSource Mode=Self}, Path=IsKeyboardFocused}" Value="true"/>
                                <Condition Binding="{Binding CheckedButton}" Value="Unknown"/>
                            </MultiDataTrigger.Conditions>
                            <Setter Property="Background" Value="White" />
                            <Setter Property="Foreground" Value="#007FA9" />
                            <Setter TargetName="isMarkedIndicator" Property="Visibility" Value="Hidden" />
                            <Setter TargetName="selectionIndicator" Property="Visibility" Value="Visible" />
                        </MultiDataTrigger>
                        
                        <Trigger Property="IsKeyboardFocused" Value="false">
                            <Setter Property="Foreground" Value="White" />
                            <Setter Property="Background" Value="#007FA9" />
                        </Trigger>
                        
                        <MultiDataTrigger>
                            <MultiDataTrigger.Conditions>
                                <Condition Binding="{Binding RelativeSource={RelativeSource Mode=Self}, Path=IsMouseOver}" Value="true"/>
                                <Condition Binding="{Binding RelativeSource={RelativeSource Mode=Self}, Path=IsKeyboardFocused}" Value="false"/>
                                <Condition Binding="{Binding RelativeSource={RelativeSource Mode=Self}, Path=Name}" Value="YesButton"/>
                                <Condition Binding="{Binding CheckedButton}" Value="NoButton"/>
                            </MultiDataTrigger.Conditions>
                            <Setter Property="Background" Value="White" />
                            <Setter Property="Foreground" Value="#007FA9" />
                            <Setter TargetName="selectionIndicator" Property="Foreground" Value="#007FA9" />
                            <Setter TargetName="isMarkedIndicator" Property="Visibility" Value="Hidden" />
                            <Setter TargetName="selectionIndicator" Property="Visibility" Value="Visible" />
                        </MultiDataTrigger>

                        <MultiDataTrigger>
                            <MultiDataTrigger.Conditions>
                                <Condition Binding="{Binding RelativeSource={RelativeSource Mode=Self}, Path=IsMouseOver}" Value="true"/>
                                <Condition Binding="{Binding RelativeSource={RelativeSource Mode=Self}, Path=IsKeyboardFocused}" Value="false"/>
                                <Condition Binding="{Binding RelativeSource={RelativeSource Mode=Self}, Path=Name}" Value="NoButton"/>
                                <Condition Binding="{Binding CheckedButton}" Value="YesButton"/>
                            </MultiDataTrigger.Conditions>
                            <Setter Property="Background" Value="White" />
                            <Setter Property="Foreground" Value="#007FA9" />
                            <Setter TargetName="selectionIndicator" Property="Foreground" Value="#007FA9" />
                            <Setter TargetName="isMarkedIndicator" Property="Visibility" Value="Hidden" />
                            <Setter TargetName="selectionIndicator" Property="Visibility" Value="Visible" />
                        </MultiDataTrigger>

                        <MultiDataTrigger>
                            <MultiDataTrigger.Conditions>
                                <Condition Binding="{Binding RelativeSource={RelativeSource Mode=Self}, Path=IsMouseOver}" Value="true"/>
                                <Condition Binding="{Binding RelativeSource={RelativeSource Mode=Self}, Path=IsKeyboardFocused}" Value="false"/>
                                <Condition Binding="{Binding RelativeSource={RelativeSource Mode=Self}, Path=Name}" Value="NoButton"/>
                                <Condition Binding="{Binding CheckedButton}" Value="NoButton"/>
                            </MultiDataTrigger.Conditions>
                            <Setter Property="Background" Value="White" />
                            <Setter Property="Foreground" Value="#007FA9" />
                            <Setter TargetName="isMarkedIndicator" Property="Foreground" Value="#007FA9" />
                            <Setter TargetName="isMarkedIndicator" Property="Visibility" Value="Visible" />
                            <Setter TargetName="selectionIndicator" Property="Visibility" Value="Hidden" />
                        </MultiDataTrigger>

                        <MultiDataTrigger>
                            <MultiDataTrigger.Conditions>
                                <Condition Binding="{Binding RelativeSource={RelativeSource Mode=Self}, Path=IsMouseOver}" Value="true"/>
                                <Condition Binding="{Binding RelativeSource={RelativeSource Mode=Self}, Path=IsKeyboardFocused}" Value="false"/>
                                <Condition Binding="{Binding RelativeSource={RelativeSource Mode=Self}, Path=Name}" Value="YesButton"/>
                                <Condition Binding="{Binding CheckedButton}" Value="YesButton"/>
                            </MultiDataTrigger.Conditions>
                            <Setter Property="Background" Value="White" />
                            <Setter Property="Foreground" Value="#007FA9" />
                            <Setter TargetName="isMarkedIndicator" Property="Foreground" Value="#007FA9" />
                            <Setter TargetName="isMarkedIndicator" Property="Visibility" Value="Visible" />
                            <Setter TargetName="selectionIndicator" Property="Visibility" Value="Hidden" />
                        </MultiDataTrigger>



                    </ControlTemplate.Triggers>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
</ResourceDictionary>
