<ResourceDictionary
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:resources="using:C1.Xaml.FlexViewer.Resources"
    xmlns:fv="using:C1.Xaml.FlexViewer"
    xmlns:c1="using:C1.Xaml">

    <resources:C1_UWP_FlexViewer x:Key="Strings"/>

    <SolidColorBrush x:Key="PageBorderBrush" Color="DarkGray" />
    <SolidColorBrush x:Key="PageAreaBackground" Color="LightGray" />
    <SolidColorBrush x:Key="PageBackground" Color="White" />
    <SolidColorBrush x:Key="ThumbnailPageNumBackground" Color="#FF2B2B2B" />
    <SolidColorBrush x:Key="ThumbnailPageNumForeground" Color="White" />
    <SolidColorBrush x:Key="ThumbnailSelectedBackground" Color="#FFD24726" />
    <SolidColorBrush x:Key="ThumbnailSelectedOverBackground" Color="#FF616161" />
    <SolidColorBrush x:Key="ThumbnailOverBackground" Color="#FF616161" />
    <SolidColorBrush x:Key="StatusBackground" Color="#FFFEFCC8" />
    <SolidColorBrush x:Key="StatusBorderBrush" Color="Gray" />
    <SolidColorBrush x:Key="StatusForeground" Color="#FF1E1E1E" />

    <c1:VisibilityConverter x:Key="visibilityConverter" />

    <Style x:Key="PageTitleTextBlockStyle" TargetType="TextBlock" BasedOn="{StaticResource BodyTextBlockStyle}">
        <Setter Property="FontWeight" Value="SemiBold"/>
        <Setter Property="TextWrapping" Value="NoWrap"/>
        <Setter Property="VerticalAlignment" Value="Center"/>
        <Setter Property="Margin" Value="8, 0, 4, 0"/>
    </Style>

    <!--#region FVBaseButtonStyle-->

    <Style x:Key="FVBaseButtonStyle" TargetType="ButtonBase">
        <Setter Property="Margin" Value="0" />
        <Setter Property="MinHeight" Value="{StaticResource SplitViewCompactPaneThemeLength}" />
        <Setter Property="VerticalAlignment" Value="Stretch" />
        <Setter Property="VerticalContentAlignment" Value="Stretch" />
        <Setter Property="Background" Value="Transparent" />
        <Setter Property="Foreground" Value="{ThemeResource SystemControlForegroundBaseHighBrush}" />
        <Setter Property="UseSystemFocusVisuals" Value="True"/>
    </Style>

    <!--#endregion-->

    <!--#region FVPushButtonStyle-->

    <Style x:Key="FVPushButtonStyle" TargetType="Button" BasedOn="{StaticResource FVBaseButtonStyle}">
        <Setter Property="Padding" Value="12, 0, 12, 0" />
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="Button">
                    <Grid x:Name="layoutRoot" Background="{TemplateBinding Background}">
                        <VisualStateManager.VisualStateGroups>
                            <VisualStateGroup x:Name="CommonStates">
                                <VisualState x:Name="Normal" />
                                <VisualState x:Name="Disabled">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="contentPresenter" Storyboard.TargetProperty="Foreground">
                                            <DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource SystemControlDisabledBaseMediumLowBrush}"/>
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                                <VisualState x:Name="PointerOver">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="layoutRoot" Storyboard.TargetProperty="(Grid.Background)">
                                            <DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource SystemControlHighlightListLowBrush}"/>
                                        </ObjectAnimationUsingKeyFrames>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="contentPresenter" Storyboard.TargetProperty="Foreground">
                                            <DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource SystemControlHighlightAltBaseHighBrush}"/>
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                                <VisualState x:Name="Pressed">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="layoutRoot" Storyboard.TargetProperty="(Grid.Background)">
                                            <DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource SystemControlHighlightListMediumBrush}"/>
                                        </ObjectAnimationUsingKeyFrames>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="contentPresenter" Storyboard.TargetProperty="Foreground">
                                            <DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource SystemControlHighlightAltBaseHighBrush}"/>
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                            </VisualStateGroup>
                        </VisualStateManager.VisualStateGroups>
                        <ContentPresenter
                            x:Name="contentPresenter"
                            Margin="{TemplateBinding Padding}"
                            HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
                            VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
                            Content="{TemplateBinding Content}"
                            />
                    </Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>

    <!--#endregion-->

</ResourceDictionary>
