<ResourceDictionary
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:PresentationOptions="http://schemas.microsoft.com/winfx/2006/xaml/presentation/options"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:local="clr-namespace:ForzaUI"
    xmlns:System="clr-namespace:System;assembly=mscorlib"
    mc:Ignorable="PresentationOptions" >

    <!-- Resource dictionary entries should be defined here. -->
    <local:MotionBlurEffect x:Key="A_MotionBlurEffect" />
    
    <!-- preset for additive blending -->
    <local:FZMaterialPreset x:Key="A_FZMaterialPresetAdditive"
        AlphaMode="Additive" />

    <!-- preset for no alpha rendering -->
    <local:FZMaterialPresetAlphaOnly x:Key="A_FZMaterialPreset_AlphaOnly" />

    <!-- Long drop shadow presets & styles -->
    <local:FZMaterialPresetStreak x:Key="A_FZMaterialPresetStreak_TitleShadow"
        Color="#0D000000"
        Decay="1" />

    <local:FZMaterialPresetStreak x:Key="A_FZMaterialPresetStreak_HighlightShadow"
        Color="{StaticResource A_Color_FZMaterialPresetStreak_HighlightShadow}"
        Decay="1" />

    <local:FZMaterialPresetStreak x:Key="A_FZMaterialPresetStreak_FloatingIconShadow"
        Color="#1A000000"
        Decay="0.975" />

    <local:FZMaterialPresetStreak x:Key="A_FZMaterialPresetStreak_DifficultyInfographicShadow"
        Color="#1A000000"
        Decay="1" />

    <Style x:Key="A_Style_FZMaterial_TitleShadow" TargetType="{x:Type local:FZMaterial}">
        <Setter Property="Preset" Value="{StaticResource A_FZMaterialPresetStreak_TitleShadow}"/>
        <Setter Property="CaptureSubgraph" Value="True"/>
    </Style>

    <Style x:Key="A_Style_FZMaterial_HighlightShadow" TargetType="{x:Type local:FZMaterial}">
        <Setter Property="Preset" Value="{StaticResource A_FZMaterialPresetStreak_HighlightShadow}"/>
        <Setter Property="CaptureSubgraph" Value="True"/>
    </Style>

    <Style x:Key="A_Style_FZMaterial_FloatingIconShadow" TargetType="{x:Type local:FZMaterial}">
        <Setter Property="Preset" Value="{StaticResource A_FZMaterialPresetStreak_FloatingIconShadow}"/>
        <Setter Property="CaptureSubgraph" Value="True"/>
    </Style>

    <!-- Sunrise panel presets -->
    <local:FZMaterialPreset x:Key="A_FZMaterialPreset_FlatPanel_Base"/>
    <local:FZMaterialPresetGlassRoundtangle x:Key="A_FZMaterialPresetGlassRoundtangle_GlassPanel_Base"
        BasedOn="{StaticResource A_FZMaterialPreset_FlatPanel_Base}"
        BlurAmount="Medium"
        />

    <!-- Sunrise panel rounded corner presets -->
    <CornerRadius x:Key="A_CornerRadius_Outer_All">8</CornerRadius>
    <CornerRadius x:Key="A_CornerRadius_Outer_Left">8,0,0,8</CornerRadius>
    <CornerRadius x:Key="A_CornerRadius_Outer_Right">0,8,8,0</CornerRadius>
    <CornerRadius x:Key="A_CornerRadius_Outer_Top">8,8,0,0</CornerRadius>
    <CornerRadius x:Key="A_CornerRadius_Outer_Bottom">0,0,8,8</CornerRadius>
    <CornerRadius x:Key="A_CornerRadius_Outer_BottomLeft">0,0,0,8</CornerRadius>
    <CornerRadius x:Key="A_CornerRadius_Outer_BottomRight">0,0,8,0</CornerRadius>
    <CornerRadius x:Key="A_CornerRadius_Inner_All">4</CornerRadius>
    <CornerRadius x:Key="A_CornerRadius_Inner_Left">4,0,0,4</CornerRadius>
    <CornerRadius x:Key="A_CornerRadius_Inner_Right">0,4,4,0</CornerRadius>
    <CornerRadius x:Key="A_CornerRadius_Inner_Top">4,4,0,0</CornerRadius>
    <CornerRadius x:Key="A_CornerRadius_Inner_Bottom">0,0,4,4</CornerRadius>
    <CornerRadius x:Key="A_CornerRadius_Highlight_All">14</CornerRadius>
    <CornerRadius x:Key="A_CornerRadius_InnerInner_All">2</CornerRadius>
    <CornerRadius x:Key="A_CornerRadius_InnerInner_Top">2,2,0,0</CornerRadius>
    <CornerRadius x:Key="A_CornerRadius_InnerInner_Bottom">0,0,2,2</CornerRadius>
    <CornerRadius x:Key="A_CornerRadius_InnerInner_Right">0,2,2,0</CornerRadius>
    <CornerRadius x:Key="A_CornerRadius_ConsoleButtonBarBackground_All">16</CornerRadius>

    <local:FZMaterialPresetRoundtangle x:Key="A_FZMaterialPresetRoundtangle_FlatPanel_OuterAll"
        BasedOn="{StaticResource A_FZMaterialPreset_FlatPanel_Base}"
        CornerRadius="{StaticResource A_CornerRadius_Outer_All}"/>
    <local:FZMaterialPresetRoundtangle x:Key="A_FZMaterialPresetRoundtangle_FlatPanel_OuterLeftOnly"
        BasedOn="{StaticResource A_FZMaterialPreset_FlatPanel_Base}"
        CornerRadius="{StaticResource A_CornerRadius_Outer_Left}"/>
    <local:FZMaterialPresetRoundtangle x:Key="A_FZMaterialPresetRoundtangle_FlatPanel_OuterRightOnly"
        BasedOn="{StaticResource A_FZMaterialPreset_FlatPanel_Base}"
        CornerRadius="{StaticResource A_CornerRadius_Outer_Right}"/>
    <local:FZMaterialPresetRoundtangle x:Key="A_FZMaterialPresetRoundtangle_FlatPanel_OuterTopOnly"
        BasedOn="{StaticResource A_FZMaterialPreset_FlatPanel_Base}"
        CornerRadius="{StaticResource A_CornerRadius_Outer_Top}"/>
    <local:FZMaterialPresetRoundtangle x:Key="A_FZMaterialPresetRoundtangle_FlatPanel_OuterBottomOnly"
        BasedOn="{StaticResource A_FZMaterialPreset_FlatPanel_Base}"
        CornerRadius="{StaticResource A_CornerRadius_Outer_Bottom}"/>
    <local:FZMaterialPresetRoundtangle x:Key="A_FZMaterialPresetRoundtangle_FlatPanel_OuterBottomLeftOnly"
        BasedOn="{StaticResource A_FZMaterialPreset_FlatPanel_Base}"
        CornerRadius="{StaticResource A_CornerRadius_Outer_BottomLeft}"/>
    <local:FZMaterialPresetRoundtangle x:Key="A_FZMaterialPresetRoundtangle_FlatPanel_OuterBottomRightOnly"
        BasedOn="{StaticResource A_FZMaterialPreset_FlatPanel_Base}"
        CornerRadius="{StaticResource A_CornerRadius_Outer_BottomRight}"/>
    <local:FZMaterialPresetRoundtangle x:Key="A_FZMaterialPresetRoundtangle_FlatPanel_InnerAll"
        BasedOn="{StaticResource A_FZMaterialPreset_FlatPanel_Base}"
        CornerRadius="{StaticResource A_CornerRadius_Inner_All}"/>
    <local:FZMaterialPresetRoundtangle x:Key="A_FZMaterialPresetRoundtangle_FlatPanel_InnerTopOnly"
        BasedOn="{StaticResource A_FZMaterialPreset_FlatPanel_Base}"
        CornerRadius="{StaticResource A_CornerRadius_Inner_Top}"/>
    <local:FZMaterialPresetRoundtangle x:Key="A_FZMaterialPresetRoundtangle_FlatPanel_InnerBottomOnly"
        BasedOn="{StaticResource A_FZMaterialPreset_FlatPanel_Base}"
        CornerRadius="{StaticResource A_CornerRadius_Inner_Bottom}"/>
    <local:FZMaterialPresetRoundtangle x:Key="A_FZMaterialPresetRoundtangle_FlatPanel_InnerRightOnly"
        BasedOn="{StaticResource A_FZMaterialPreset_FlatPanel_Base}"
        CornerRadius="{StaticResource A_CornerRadius_Inner_Right}"/>
    <local:FZMaterialPresetRoundtangle x:Key="A_FZMaterialPresetRoundtangle_FlatPanel_InnerLeftOnly"
        BasedOn="{StaticResource A_FZMaterialPreset_FlatPanel_Base}"
        CornerRadius="{StaticResource A_CornerRadius_Inner_Left}"/>
    <local:FZMaterialPresetRoundtangle x:Key="A_FZMaterialPresetRoundtangle_FlatPanel_InnerInnerAll"
        BasedOn="{StaticResource A_FZMaterialPreset_FlatPanel_Base}"
        CornerRadius="{StaticResource A_CornerRadius_InnerInner_All}"/>
    <local:FZMaterialPresetRoundtangle x:Key="A_FZMaterialPresetRoundtangle_FlatPanel_InnerInnerTopOnly"
        BasedOn="{StaticResource A_FZMaterialPreset_FlatPanel_Base}"
        CornerRadius="{StaticResource A_CornerRadius_InnerInner_Top}"/>
    <local:FZMaterialPresetRoundtangle x:Key="A_FZMaterialPresetRoundtangle_FlatPanel_InnerInnerBottomOnly"
        BasedOn="{StaticResource A_FZMaterialPreset_FlatPanel_Base}"
        CornerRadius="{StaticResource A_CornerRadius_InnerInner_Bottom}"/>
    <local:FZMaterialPresetRoundtangle x:Key="A_FZMaterialPresetRoundtangle_FlatPanel_InnerInnerRightOnly"
        BasedOn="{StaticResource A_FZMaterialPreset_FlatPanel_Base}"
        CornerRadius="{StaticResource A_CornerRadius_InnerInner_Right}"/>
    <local:FZMaterialPresetRoundtangle x:Key="A_FZMaterialPresetRoundtangle_FlatPanel_ConsoleButtonBarBackground_All"
        BasedOn="{StaticResource A_FZMaterialPreset_FlatPanel_Base}"
        CornerRadius="{StaticResource A_CornerRadius_ConsoleButtonBarBackground_All}"/>

    <local:FZMaterialPresetGlassRoundtangle x:Key="A_FZMaterialPresetGlassRoundtangle_GlassPanel_OuterAll"
        BasedOn="{StaticResource A_FZMaterialPresetGlassRoundtangle_GlassPanel_Base}"
        CornerRadius="{StaticResource A_CornerRadius_Outer_All}"/>
    <local:FZMaterialPresetGlassRoundtangle x:Key="A_FZMaterialPresetGlassRoundtangle_GlassPanel_OuterLeftOnly"
        BasedOn="{StaticResource A_FZMaterialPresetGlassRoundtangle_GlassPanel_Base}"
        CornerRadius="{StaticResource A_CornerRadius_Outer_Left}"/>
    <local:FZMaterialPresetGlassRoundtangle x:Key="A_FZMaterialPresetGlassRoundtangle_GlassPanel_OuterRightOnly"
        BasedOn="{StaticResource A_FZMaterialPresetGlassRoundtangle_GlassPanel_Base}"
        CornerRadius="{StaticResource A_CornerRadius_Outer_Right}"/>
    <local:FZMaterialPresetGlassRoundtangle x:Key="A_FZMaterialPresetGlassRoundtangle_GlassPanel_OuterTopOnly"
        BasedOn="{StaticResource A_FZMaterialPresetGlassRoundtangle_GlassPanel_Base}"
        CornerRadius="{StaticResource A_CornerRadius_Outer_Top}"/>
    <local:FZMaterialPresetGlassRoundtangle x:Key="A_FZMaterialPresetGlassRoundtangle_GlassPanel_OuterBottomOnly"
        BasedOn="{StaticResource A_FZMaterialPresetGlassRoundtangle_GlassPanel_Base}"
        CornerRadius="{StaticResource A_CornerRadius_Outer_Bottom}"/>
    <local:FZMaterialPresetGlassRoundtangle x:Key="A_FZMaterialPresetGlassRoundtangle_GlassPanel_OuterBottomLeft"
        BasedOn="{StaticResource A_FZMaterialPresetGlassRoundtangle_GlassPanel_Base}"
        CornerRadius="{StaticResource A_CornerRadius_Outer_BottomLeft}"/>
    <local:FZMaterialPresetGlassRoundtangle x:Key="A_FZMaterialPresetGlassRoundtangle_GlassPanel_OuterBottomRight"
        BasedOn="{StaticResource A_FZMaterialPresetGlassRoundtangle_GlassPanel_Base}"
        CornerRadius="{StaticResource A_CornerRadius_Outer_BottomRight}"/>
    <local:FZMaterialPresetGlassRoundtangle x:Key="A_FZMaterialPresetGlassRoundtangle_GlassPanel_InnerAll"
        BasedOn="{StaticResource A_FZMaterialPresetGlassRoundtangle_GlassPanel_Base}"
        CornerRadius="{StaticResource A_CornerRadius_Inner_All}"/>
    <local:FZMaterialPresetGlassRoundtangle x:Key="A_FZMaterialPresetGlassRoundtangle_GlassPanel_LowBlur_OuterAll"
        BasedOn="{StaticResource A_FZMaterialPresetGlassRoundtangle_GlassPanel_Base}"
        CornerRadius="{StaticResource A_CornerRadius_Outer_All}"
        BlurAmount="Low" />
    <local:FZMaterialPresetGlassRoundtangle x:Key="A_FZMaterialPresetGlassRoundtangle_GlassPanel_HighBlur_OuterBottomOnly"
        BasedOn="{StaticResource A_FZMaterialPresetGlassRoundtangle_GlassPanel_Base}"
        CornerRadius="{StaticResource A_CornerRadius_Outer_Bottom}"
        BlurAmount="High"/>
        
    <local:FZMaterialPresetGlassRoundtangle x:Key="A_FZMaterialPresetGlassRoundtangle_GlassPanel_InnerRightOnly"
        BasedOn="{StaticResource A_FZMaterialPresetGlassRoundtangle_GlassPanel_Base}"
        CornerRadius="{StaticResource A_CornerRadius_Inner_Right}"/>

    <local:FZMaterialPresetRoundtangle x:Key="A_FZMaterialPresetRoundtangle_GradientHighlight"
        BasedOn="{StaticResource A_FZMaterialPreset_FlatPanel_Base}"
        GradientColorA="{StaticResource A_Color_HighlightGradientA}"
        GradientColorB="{StaticResource A_Color_HighlightGradientB}"
        GradientAngle="90"/>

    <local:FZMaterialPresetRoundtangle x:Key="A_FZMaterialPresetRoundtangle_WhiteLine"
        BasedOn="{StaticResource A_FZMaterialPreset_FlatPanel_Base}"/>

    <local:FZMaterialPresetRoundtangle x:Key="A_FZMaterialPresetRoundtangle_GradientHighlight_InnerAll"
        BasedOn="{StaticResource A_FZMaterialPresetRoundtangle_GradientHighlight}"
        CornerRadius="{StaticResource A_CornerRadius_Inner_All}"/>
    <local:FZMaterialPresetRoundtangle x:Key="A_FZMaterialPresetRoundtangle_GradientHighlight_OuterAll"
        BasedOn="{StaticResource A_FZMaterialPresetRoundtangle_GradientHighlight}"
        CornerRadius="{StaticResource A_CornerRadius_Outer_All}"/>
    <local:FZMaterialPresetRoundtangle x:Key="A_FZMaterialPresetRoundtangle_GradientHighlight_OuterRight"
        BasedOn="{StaticResource A_FZMaterialPresetRoundtangle_GradientHighlight}"
        CornerRadius="{StaticResource A_CornerRadius_Outer_Right}"/>
    <local:FZMaterialPresetRoundtangle x:Key="A_FZMaterialPresetRoundtangle_GradientHighlight_HighlightAll"
        BasedOn="{StaticResource A_FZMaterialPresetRoundtangle_GradientHighlight}"
        CornerRadius="{StaticResource A_CornerRadius_Highlight_All}"/>

    <local:FZMaterialPresetRoundtangle x:Key="A_FZMaterialPresetRoundtangle_GradientHightlight_InnerAll"
        BasedOn="{StaticResource A_FZMaterialPresetRoundtangle_GradientHighlight}"
        CornerRadius="{StaticResource A_CornerRadius_Inner_All}"/>
    <local:FZMaterialPresetRoundtangle x:Key="A_FZMaterialPresetRoundtangle_GradientHightlight_InnerTopOnly"
        BasedOn="{StaticResource A_FZMaterialPresetRoundtangle_GradientHighlight}"
        CornerRadius="{StaticResource A_CornerRadius_Inner_Top}"/>

    <local:FZMaterialPresetRoundtangle x:Key="A_FZMaterialPresetRoundtangle_GradientHorizonEdition"
        BasedOn="{StaticResource A_FZMaterialPreset_FlatPanel_Base}"
        GradientColorA="{StaticResource A_Color_HorizonEditionGradientA}"
        GradientColorB="{StaticResource A_Color_HorizonEditionGradientB}"
        GradientAngle="90"/>

    <local:FZMaterialPresetRoundtangle x:Key="A_FZMaterialPresetRoundtangle_GradientHorizonEdition_InnerAll"
        BasedOn="{StaticResource A_FZMaterialPresetRoundtangle_GradientHorizonEdition}"
        CornerRadius="{StaticResource A_CornerRadius_Inner_All}"/>

    <local:FZMaterialPresetRoundtangle x:Key="A_FZMaterialPresetRoundtangle_GradientHorizonEdition_InnerInnerAll"
        BasedOn="{StaticResource A_FZMaterialPresetRoundtangle_GradientHorizonEdition}"
        CornerRadius="{StaticResource A_CornerRadius_InnerInner_All}"/>

    <!-- Sunrise panel styles -->
    <Style x:Key="A_Style_FZMaterial_FlatPanel_Base"
           TargetType="{x:Type local:FZMaterial}">
        <Setter Property="Preset" Value="{StaticResource A_FZMaterialPreset_FlatPanel_Base}"/>
    </Style>

    <Style x:Key="A_Style_FZMaterial_FlatPanel_HeaderPanel"
           TargetType="{x:Type local:FZMaterial}"
           BasedOn="{StaticResource A_Style_FZMaterial_FlatPanel_Base}">
        <Setter Property="Preset" Value="{StaticResource A_FZMaterialPresetRoundtangle_FlatPanel_OuterTopOnly}"/>
        <Setter Property="Color" Value="{StaticResource A_Color_Header_Background}"/>
    </Style>

    <Style x:Key="A_Style_FZMaterial_FlatPanel_FooterPanel"
           TargetType="{x:Type local:FZMaterial}"
           BasedOn="{StaticResource A_Style_FZMaterial_FlatPanel_Base}">
        <Setter Property="Preset" Value="{StaticResource A_FZMaterialPresetRoundtangle_FlatPanel_OuterBottomOnly}"/>
        <Setter Property="Color" Value="{StaticResource A_Color_Header_Background}"/>
    </Style>

    <Style x:Key="A_Style_FZMaterial_FlatPanel_LeftHeaderPanel"
           TargetType="{x:Type local:FZMaterial}"
           BasedOn="{StaticResource A_Style_FZMaterial_FlatPanel_Base}">
        <Setter Property="Preset" Value="{StaticResource A_FZMaterialPresetRoundtangle_FlatPanel_OuterLeftOnly}"/>
        <Setter Property="Color" Value="{StaticResource A_Color_Header_Background}"/>
    </Style>

    <Style x:Key="A_Style_FZMaterial_FlatPanel_HeaderPill"
           TargetType="{x:Type local:FZMaterial}"
           BasedOn="{StaticResource A_Style_FZMaterial_FlatPanel_Base}">
        <Setter Property="Preset" Value="{StaticResource A_FZMaterialPresetRoundtangle_FlatPanel_OuterAll}"/>
        <Setter Property="Color" Value="{StaticResource A_Color_Header_Background}"/>
    </Style>

    <Style x:Key="A_Style_FZMaterial_FlatPanel_Tile"
           TargetType="{x:Type local:FZMaterial}"
           BasedOn="{StaticResource A_Style_FZMaterial_FlatPanel_Base}">
        <Setter Property="Preset" Value="{StaticResource A_FZMaterialPresetRoundtangle_FlatPanel_OuterAll}"/>
        <Setter Property="Color" Value="{StaticResource A_Color_Tile_Background}"/>
    </Style>

    <Style x:Key="A_Style_FZMaterial_FlatPanel_TileRight"
           TargetType="{x:Type local:FZMaterial}"
           BasedOn="{StaticResource A_Style_FZMaterial_FlatPanel_Base}">
        <Setter Property="Preset" Value="{StaticResource A_FZMaterialPresetRoundtangle_FlatPanel_OuterRightOnly}"/>
        <Setter Property="Color" Value="{StaticResource A_Color_Tile_Background}"/>
    </Style>

    <Style x:Key="A_Style_FZMaterial_FlatPanel_TileLeft"
           TargetType="{x:Type local:FZMaterial}"
           BasedOn="{StaticResource A_Style_FZMaterial_FlatPanel_Base}">
        <Setter Property="Preset" Value="{StaticResource A_FZMaterialPresetRoundtangle_FlatPanel_OuterLeftOnly}"/>
        <Setter Property="Color" Value="{StaticResource A_Color_Tile_Background}"/>
    </Style>

    <Style x:Key="A_Style_FZMaterial_Infographics_Background"
       TargetType="{x:Type local:FZMaterial}"
       BasedOn="{StaticResource A_Style_FZMaterial_FlatPanel_Base}">
       <Setter Property="Preset" Value="{StaticResource A_FZMaterialPresetRoundtangle_FlatPanel_OuterTopOnly}"/>
       <Setter Property="Color" Value="{StaticResource A_Color_Infographics_Background}"/>
    </Style>

    <Style x:Key="A_Style_FZMaterial_Infographics_Background_Alt"
       TargetType="{x:Type local:FZMaterial}"
       BasedOn="{StaticResource A_Style_FZMaterial_FlatPanel_Base}">
       <Setter Property="Preset" Value="{StaticResource A_FZMaterialPresetRoundtangle_GradientHighlight_OuterAll}"/>
    </Style>

    <Style x:Key="A_Style_FZMaterial_GlassPanel_NonInteractive"
           TargetType="{x:Type local:FZMaterial}"
           BasedOn="{StaticResource A_Style_FZMaterial_FlatPanel_Base}">
        <Setter Property="Preset" Value="{StaticResource A_FZMaterialPresetGlassRoundtangle_GlassPanel_Base}"/>
        <Setter Property="Color" Value="{StaticResource A_Color_GlassPanel_NonInteractive}"/>
    </Style>

    <Style x:Key="A_Style_FZMaterial_GlassPanel_Interactive"
           TargetType="{x:Type local:FZMaterial}"
           BasedOn="{StaticResource A_Style_FZMaterial_FlatPanel_Base}">
        <Setter Property="Preset" Value="{StaticResource A_FZMaterialPresetGlassRoundtangle_GlassPanel_Base}"/>
        <Setter Property="Color" Value="{StaticResource A_Color_GlassPanel_Interactive}"/>
    </Style>

    <Style x:Key="A_Style_FZMaterial_GlassPanel_Pill"
           TargetType="{x:Type local:FZMaterial}"
           BasedOn="{StaticResource A_Style_FZMaterial_GlassPanel_NonInteractive}">
        <Setter Property="Preset" Value="{StaticResource A_FZMaterialPresetGlassRoundtangle_GlassPanel_OuterAll}"/>
    </Style>

    <Style x:Key="A_Style_FZMaterial_GlassPanel_Left"
           TargetType="{x:Type local:FZMaterial}"
           BasedOn="{StaticResource A_Style_FZMaterial_GlassPanel_NonInteractive}">
        <Setter Property="Preset" Value="{StaticResource A_FZMaterialPresetGlassRoundtangle_GlassPanel_OuterLeftOnly}"/>
    </Style>

    <Style x:Key="A_Style_FZMaterial_GlassPanel_Right"
       TargetType="{x:Type local:FZMaterial}"
       BasedOn="{StaticResource A_Style_FZMaterial_GlassPanel_NonInteractive}">
        <Setter Property="Preset" Value="{StaticResource A_FZMaterialPresetGlassRoundtangle_GlassPanel_OuterRightOnly}"/>
    </Style>

    <Style x:Key="A_Style_FZMaterial_GlassPanel_Pill_NonInteractive"
           TargetType="{x:Type local:FZMaterial}"
           BasedOn="{StaticResource A_Style_FZMaterial_GlassPanel_NonInteractive}">
        <Setter Property="Preset" Value="{StaticResource A_FZMaterialPresetGlassRoundtangle_GlassPanel_OuterAll}"/>
        <Setter Property="Color" Value="{StaticResource A_Color_GlassPanel_Interactive}"/>
    </Style>

    <Style x:Key="A_Style_FZMaterial_GlassPanel_HeaderPanel"
       TargetType="{x:Type local:FZMaterial}"
       BasedOn="{StaticResource A_Style_FZMaterial_GlassPanel_NonInteractive}">
        <Setter Property="Preset" Value="{StaticResource A_FZMaterialPresetGlassRoundtangle_GlassPanel_OuterTopOnly}"/>
    </Style>

    <Style x:Key="A_Style_FZMaterial_GlassPanel_BodyPanel"
           TargetType="{x:Type local:FZMaterial}"
           BasedOn="{StaticResource A_Style_FZMaterial_GlassPanel_NonInteractive}">
        <Setter Property="Preset" Value="{StaticResource A_FZMaterialPresetGlassRoundtangle_GlassPanel_OuterBottomOnly}"/>
    </Style>
  
    <Style x:Key="A_Style_FZMaterial_GlassPanel_PopupPanel"
           TargetType="{x:Type local:FZMaterial}"
           BasedOn="{StaticResource A_Style_FZMaterial_GlassPanel_NonInteractive}">
      <Setter Property="Color" Value="{StaticResource A_Color_PopupGlass}"/>
      <Setter Property="Preset" Value="{StaticResource A_FZMaterialPresetGlassRoundtangle_GlassPanel_HighBlur_OuterBottomOnly}"/>
    </Style>

    <Style x:Key="A_Style_FZMaterial_FlatPanel_Highlight"
           TargetType="{x:Type local:FZMaterial}"
           BasedOn="{StaticResource A_Style_FZMaterial_FlatPanel_Base}">
        <Setter Property="Preset" Value="{StaticResource A_FZMaterialPresetRoundtangle_GradientHighlight}"/>
        <Setter Property="Color" Value="#FFFFFFFF"/>
    </Style>

    <!-- Tab Bar Styles-->
    <Style x:Key="A_Style_FZMaterial_FlatPanel_TabBarItem"
           TargetType="{x:Type local:FZMaterial}"
           BasedOn="{StaticResource A_Style_FZMaterial_FlatPanel_Base}">
        <Setter Property="Color" Value="{StaticResource A_Color_Tile_Background}"/>
    </Style>

    <Style x:Key="A_Style_FZMaterial_GlassPanel_TabBarItem_Disabled"
           TargetType="{x:Type local:FZMaterial}"
           BasedOn="{StaticResource A_Style_FZMaterial_GlassPanel_NonInteractive}">
    </Style>

    <Style x:Key="A_Style_FZMaterial_GlassPanel_TabBarLeft"
           TargetType="{x:Type local:FZMaterial}"
           BasedOn="{StaticResource A_Style_FZMaterial_GlassPanel_NonInteractive}">
        <Setter Property="Preset" Value="{StaticResource A_FZMaterialPresetGlassRoundtangle_GlassPanel_OuterLeftOnly}"/>
    </Style>

    <Style x:Key="A_Style_FZMaterial_GlassPanel_TabBarRight"
           TargetType="{x:Type local:FZMaterial}"
           BasedOn="{StaticResource A_Style_FZMaterial_GlassPanel_NonInteractive}">
        <Setter Property="Preset" Value="{StaticResource A_FZMaterialPresetGlassRoundtangle_GlassPanel_OuterRightOnly}"/>
    </Style>

    <Style x:Key="A_Style_FZMaterial_FlatPanel_TabBarLeft"
           TargetType="{x:Type local:FZMaterial}"
           BasedOn="{StaticResource A_Style_FZMaterial_FlatPanel_Tile}">
        <Setter Property="Preset" Value="{StaticResource A_FZMaterialPresetRoundtangle_FlatPanel_OuterLeftOnly}"/>
    </Style>

    <Style x:Key="A_Style_FZMaterial_FlatPanel_TabBarRight"
           TargetType="{x:Type local:FZMaterial}"
           BasedOn="{StaticResource A_Style_FZMaterial_FlatPanel_Tile}">
        <Setter Property="Preset" Value="{StaticResource A_FZMaterialPresetRoundtangle_FlatPanel_OuterRightOnly}"/>
    </Style>

    <Style x:Key="A_Style_FZMaterial_FlatPanel_TabBarHighlight"
           TargetType="{x:Type local:FZMaterial}"
           BasedOn="{StaticResource A_Style_FZMaterial_FlatPanel_Highlight}">
    </Style>

    <Style x:Key="A_Style_FZMaterial_FlatPanel_TextItemHighlight"
           TargetType="{x:Type local:FZMaterial}"
           BasedOn="{StaticResource A_Style_FZMaterial_FlatPanel_Highlight}">
        <Setter Property="Preset" Value="{StaticResource A_FZMaterialPresetRoundtangle_GradientHighlight_OuterAll}"/>
    </Style>

    <Style x:Key="A_Style_FZMaterial_FlatPanel_HighlightPill"
           TargetType="{x:Type local:FZMaterial}"
           BasedOn="{StaticResource A_Style_FZMaterial_FlatPanel_Highlight}">
        <Setter Property="Preset" Value="{StaticResource A_FZMaterialPresetRoundtangle_GradientHighlight_OuterAll}"/>
    </Style>

    <Style x:Key="A_Style_FZMaterial_FlatPanel_HighlightPill_Large"
           TargetType="{x:Type local:FZMaterial}"
           BasedOn="{StaticResource A_Style_FZMaterial_FlatPanel_Highlight}">
        <Setter Property="Preset" Value="{StaticResource A_FZMaterialPresetRoundtangle_GradientHighlight_HighlightAll}"/>
    </Style>


    <!-- Stroke presets -->
    <local:FZMaterialPresetRoundtangleStroke x:Key="A_FZMaterialPresetRoundtangleStroke_Rollover"
        BasedOn="{StaticResource A_FZMaterialPresetRoundtangle_GradientHighlight}"
        Thickness="3"/>
    <local:FZMaterialPresetRoundtangleStroke x:Key="A_FZMaterialPresetRoundtangleStroke_Rollover_Outer_All"
        BasedOn="{StaticResource A_FZMaterialPresetRoundtangleStroke_Rollover}"
        CornerRadius="{StaticResource A_CornerRadius_Outer_All}"/>
    <local:FZMaterialPresetRoundtangleStroke x:Key="A_FZMaterialPresetRoundtangleStroke_Rollover_Outer_Left"
        BasedOn="{StaticResource A_FZMaterialPresetRoundtangleStroke_Rollover}"
        CornerRadius="{StaticResource A_CornerRadius_Outer_Left}"/>
    <local:FZMaterialPresetRoundtangleStroke x:Key="A_FZMaterialPresetRoundtangleStroke_Rollover_Outer_Right"
        BasedOn="{StaticResource A_FZMaterialPresetRoundtangleStroke_Rollover}"
        CornerRadius="{StaticResource A_CornerRadius_Outer_Right}"/>
    <local:FZMaterialPresetRoundtangleStroke x:Key="A_FZMaterialPresetRoundtangleStroke_Sliders_ArrowButtons_PC"
        BasedOn="{StaticResource A_FZMaterialPresetRoundtangle_FlatPanel_OuterAll}"
        Thickness="2"/>
    <local:FZMaterialPresetRoundtangleStroke x:Key="A_FZMaterialPresetRoundtangleStroke_FlatPanel_Medium_Inner_All"
        BasedOn="{StaticResource A_FZMaterialPresetRoundtangle_FlatPanel_InnerAll}"
        Thickness="2" />
    <local:FZMaterialPresetRoundtangleStroke x:Key="A_FZMaterialPresetRoundtangleStroke_FlatPanel_Thin_Inner_All"
        BasedOn="{StaticResource A_FZMaterialPresetRoundtangle_FlatPanel_InnerAll}"
        Thickness="1" />
    <local:FZMaterialPresetRoundtangleStroke x:Key="A_FZMaterialPresetRoundtangleStroke_FlatPanel_Thick_Inner_All"
        BasedOn="{StaticResource A_FZMaterialPresetRoundtangle_FlatPanel_InnerAll}"
        Thickness="6" />

    <!-- preset for standard glass -->
    <local:FZMaterialPresetGlass x:Key="A_FZMaterialPresetGlass_Low"
                                 BlurAmount="Low" />
    <local:FZMaterialPresetGlass x:Key="A_FZMaterialPresetGlass_Standard" BlurAmount="Medium" />
    <local:FZMaterialPresetGlass x:Key="A_FZMaterialPresetGlass_High" BlurAmount="High" />
    <local:FZMaterialPresetScreenBlur x:Key="A_FZMaterialPresetGlass_ScreenBlur" AlphaMode="Clear" BlurColor="#ffd8d8d8" />
    <local:FZMaterialPresetGlass x:Key="A_FZMaterialPresetGlass_ScreenBlurLow" BlurAmount="Low" AlphaMode="Clear" GlassColor="#ffd0d0d0" HighQuality="True"/>
    <local:FZMaterialPresetGlass x:Key="A_FZMaterialPresetGlass_ScreenBlurMedium" BlurAmount="Medium" AlphaMode="Clear" GlassColor="#ffd0d0d0" HighQuality="True"/>
    <local:FZMaterialPresetGlass x:Key="A_FZMaterialPresetGlass_ScreenBlurHigh" BlurAmount="High" AlphaMode="Clear" GlassColor="#ffd0d0d0" />

    <!-- preset for roundtangle glass -->
    <local:FZMaterialPresetGlassRoundtangle x:Key="A_FZMaterialPresetGlass_HudItem" BasedOn="{StaticResource A_FZMaterialPresetGlassRoundtangle_GlassPanel_InnerAll}"/>

    <!-- preset for roundtangle -->
    <local:FZMaterialPresetRoundtangle x:Key="A_FZMaterialPresetRoundtangle_HudItem" BasedOn="{StaticResource A_FZMaterialPresetRoundtangle_FlatPanel_InnerAll}"/>

    <local:FZMaterialPresetRoundtangle x:Key="A_FZMaterialPresetRoundtangle_Vignette"
                                       Softness="250"
                                       Reflectivity="0"
                                       SpecularBrightness="0"
                                       SpecularPower="0"/>

    <!-- All UI panels should use the acrylic depth, with the exception of the title block -->
    <System:Double x:Key="A_Double_Depth_Acrylic">10</System:Double>
    <System:Double x:Key="A_Double_ZOffset_Acrylic">-100</System:Double>
    
    <!-- The deep acrylic is only used for the title block. -->
    <System:Double x:Key="A_Double_Depth_Acrylic_Deep">20</System:Double>

    <!-- Acrylic base preset.  -->
    <local:FZMaterialPresetAcrylicPanel x:Key="A_FZMaterialPresetAcrylicPanel_Base"
                                        GlassColor="White"
                                        EdgeColor="White"
                                        GlassEmission="0.0"
                                        EdgeEmission="0.0"
                                        FrontEdgeTransparency="0.0"
                                        RearTransparency="0.0"
                                        OuterEdgeTransparency="0.0"
                                        SubsurfaceSize="0.0"
                                        SubsurfaceIntensity="0.0"
                                        ReflectionTextureType="Sharp"
                                        Reflectivity="0.3"
                                        BlurAmount="Medium"
                                        SideReflectionIntensity="0.8"
                                        NormalDepth="0.005"
                                        Depth="{StaticResource A_Double_Depth_Acrylic}"/>
    
    <!-- This style is used for screen titles only, this is an extra deep acrylic -->
    <local:FZMaterialPresetAcrylicPanel x:Key="A_FZMaterialPresetAcrylicPanel_TitleBlock"
                                        GlassColor="#ffd0d0d0"
                                        EdgeColor="#ff606060"
                                        FrontEdgeTransparency="0.3"
                                        NormalDepth="0"
                                        Reflectivity="0.2"
                                        Depth="{StaticResource A_Double_Depth_Acrylic_Deep}"
                                        BasedOn="{StaticResource A_FZMaterialPresetAcrylicPanel_Base}"/>
    <local:FZMaterialPresetAcrylicPanel x:Key="A_FZMaterialPresetAcrylicPanel_TitleBlock_HighBlur"
                                        GlassColor="#ffd0d0d0"
                                        EdgeColor="#ff606060"
                                        FrontEdgeTransparency="0.3"
                                        BlurAmount="High"
                                        Reflectivity="0.1"
                                        NormalDepth="0"
                                        BasedOn="{StaticResource A_FZMaterialPresetAcrylicPanel_TitleBlock}" />
    <Style x:Key="A_Style_FZMaterial_AcrylicPanel_TitleBlock"
           TargetType="local:FZMaterial">
        <Setter Property="local:BindingProxy.B"
                Value="Medium" />
        <Setter Property="Color"
                Value="{StaticResource A_Color_Acrylic_TitlePanel}" />
        <Style.Triggers>
            <DataTrigger Binding="{Binding (local:BindingProxy.B), RelativeSource={RelativeSource Self}}"
                         Value="Medium">
                <Setter Property="Preset"
                        Value="{StaticResource A_FZMaterialPresetAcrylicPanel_TitleBlock}" />
            </DataTrigger>
            <DataTrigger Binding="{Binding (local:BindingProxy.B), RelativeSource={RelativeSource Self}}"
                         Value="High">
                <Setter Property="Preset"
                        Value="{StaticResource A_FZMaterialPresetAcrylicPanel_TitleBlock_HighBlur}" />
            </DataTrigger>
        </Style.Triggers>
    </Style>
    
    <!-- This style is for title block icons -->
    <Style x:Key="A_Style_FZMaterial_ScreenTitleBlockIcon" TargetType="local:FZMaterial" BasedOn="{StaticResource A_Style_FZMaterial_FlatPanel_Base}">
        <Setter Property="Preset" Value="{StaticResource A_FZMaterialPresetRoundtangle_FlatPanel_OuterLeftOnly}" />
        <Setter Property="Color" Value="{StaticResource A_Color_ScreenTitle_IconBackground}" />
    </Style>

    <Style x:Key="A_Style_FZMaterial_ScreenTitleBlockBacking" TargetType="local:FZMaterial" BasedOn="{StaticResource A_Style_FZMaterial_FlatPanel_Base}">
        <Setter Property="Preset" Value="{StaticResource A_FZMaterialPresetRoundtangle_FlatPanel_OuterRightOnly}" />
        <Setter Property="Color" Value="{StaticResource A_Color_ScreenTitle_TextBacking}" />
    </Style>
    
    <!-- This is the default style for opaque white tiles, the colour should be slightly transparent (opaque white) -->
    <local:FZMaterialPresetAcrylicPanel x:Key="A_FZMaterialPresetAcrylicPanel_Opaque"
                                        GlassColor="#FFBEBEBE"
                                        BlurAmount="High"
                                        ReflectionTextureType="Soft"
                                        Reflectivity="0.1"
                                        NormalDepth="0.0025"
                                        SideReflectionIntensity="1"
                                        SubsurfaceIntensity="-0.1"
                                        SubsurfaceSize="20"
                                        BasedOn="{StaticResource A_FZMaterialPresetAcrylicPanel_Base}"/>
    <!-- This is the default style for opaque white tiles, the colour should be slightly transparent (opaque white) -->
    <local:FZMaterialPresetAcrylicPanel x:Key="A_FZMaterialPresetAcrylicPanel_Opaque_Locked"
                                        Saturation="0.0"
                                        BasedOn="{StaticResource A_FZMaterialPresetAcrylicPanel_Opaque}"/>
    <Style x:Key="A_Style_FZMaterial_AcrylicPanel_Tile_Background" TargetType="local:FZMaterial" >
        <Setter Property="Preset" Value="{StaticResource A_FZMaterialPresetAcrylicPanel_Opaque}" />
        <Setter Property="Color" Value="{StaticResource A_Color_Acrylic_Tile_Background}" />
    </Style>

    <!-- This is the default style for opaque white tiles, the colour should be slightly transparent (opaque white) -->
    <local:FZMaterialPresetAcrylicPanel x:Key="A_FZMaterialPresetAcrylicPanel_OpaqueSmall"
                                        GlassColor="#FFC8C8C8"
                                        SideReflectionIntensity="0.6"
                                        SubsurfaceSize="5"
                                        Depth="{StaticResource A_Double_Depth_Acrylic}"
                                        BasedOn="{StaticResource A_FZMaterialPresetAcrylicPanel_Opaque}"/>
    <Style x:Key="A_Style_FZMaterial_AcrylicPanel_Tile_BackgroundSmall" TargetType="local:FZMaterial" >
        <Setter Property="Preset" Value="{StaticResource A_FZMaterialPresetAcrylicPanel_OpaqueSmall}" />
        <Setter Property="Color" Value="{StaticResource A_Color_Acrylic_Tile_Background}" />
    </Style>


    <!-- This style is used for the highlight selector (red transparent) -->
    <local:FZMaterialPresetAcrylicPanel x:Key="A_FZMaterialPresetAcrylicPanel_Highlight"
                                        GlassColor="{StaticResource A_Color_Acrylic_Highlight}"
                                        EdgeColor="{StaticResource A_Color_Acrylic_HighlightEdge}"
                                        GlassEmission="0.7" 
                                        EdgeEmission="0.8" 
                                        FrontEdgeTransparency="0.5" 
                                        RearTransparency="0.05" 
                                        BlurAmount="Low"
                                        ReflectionTextureType="Sharp" 
                                        Reflectivity="0.2"
                                        NormalDepth="0.003"
                                        SideReflectionIntensity="0.6"
                                        SubsurfaceIntensity="0.5"
                                        SubsurfaceSize="4"
                                        BasedOn="{StaticResource A_FZMaterialPresetAcrylicPanel_Base}"/>
    <Style x:Key="A_Style_FZMaterial_AcrylicPanel_Highlight" TargetType="local:FZMaterial" >
        <Setter Property="Preset" Value="{StaticResource A_FZMaterialPresetAcrylicPanel_Highlight}" />
        <Setter Property="Color" Value="Transparent" />
    </Style>

     <!-- This style is used for disabled items, like empty carousel items (transparent glass) -->
    <local:FZMaterialPresetAcrylicPanel x:Key="A_FZMaterialPresetAcrylicPanel_EmptyItem"
                                        GlassColor="#FFC8C9C9"
                                        EdgeColor="#FF8C8C8C"
                                        EdgeEmission="0.6" 
                                        FrontEdgeTransparency="0.5" 
                                        GlassEmission="0.05" 
                                        BlurAmount="Low"
                                        Reflectivity="0.05"
                                        NormalDepth="0.0005"
                                        SideReflectionIntensity="1"
                                        SubsurfaceIntensity="0.1"
                                        SubsurfaceSize="10"
                                        BasedOn="{StaticResource A_FZMaterialPresetAcrylicPanel_Base}"/>
    <Style x:Key="A_Style_FZMaterial_AcrylicPanel_EmptyItem" TargetType="local:FZMaterial" >
        <Setter Property="Preset" Value="{StaticResource A_FZMaterialPresetAcrylicPanel_EmptyItem}" />
        <Setter Property="Color" Value="{StaticResource A_Color_Acrylic_Tile_EmptyItem}" />
    </Style>

    <!-- This style is used for the highlight selector (red transparent) when used on body panels -->
    <local:FZMaterialPresetAcrylicPanel x:Key="A_FZMaterialPresetAcrylicPanel_BodyPanel_Highlight"
                                        GlassEmission="0.2" 
                                        EdgeEmission="0.3" 
                                        BasedOn="{StaticResource A_FZMaterialPresetAcrylicPanel_Highlight}"/>
    <Style x:Key="A_Style_FZMaterial_AcrylicPanel_BodyPanel_Highlight" TargetType="local:FZMaterial" >
        <Setter Property="Preset" Value="{StaticResource A_FZMaterialPresetAcrylicPanel_BodyPanel_Highlight}" />
        <Setter Property="Color" Value="Transparent" />
    </Style>

    <!-- This preset is used for fan reward blocks (blue acrylic) -->
    <local:FZMaterialPresetAcrylicPanel x:Key="A_FZMaterialPresetAcrylicPanel_Fans"
                                        GlassColor="{StaticResource A_Color_Acrylic_Fans}"
                                        EdgeColor="{StaticResource A_Color_Acrylic_Fans}"
                                        Reflectivity="0.1"
                                        NormalDepth="0"
                                        GlassEmission="0.7" 
                                        EdgeEmission="1" 
                                        FrontEdgeTransparency="0.5" 
                                        RearTransparency="0.05" 
                                        BlurAmount="Low"
                                        ReflectionTextureType="Sharp" 
                                        SideReflectionIntensity="1"
                                        SubsurfaceIntensity="0"
                                        SubsurfaceSize="4"
                                        BasedOn="{StaticResource A_FZMaterialPresetAcrylicPanel_Highlight}"/>

    <!-- This style is used for fan reward blocks (blue acrylic) -->
    <Style x:Key="A_Style_FZMaterial_AcrylicPanel_Fans" TargetType="local:FZMaterial" >
        <Setter Property="Preset" Value="{StaticResource A_FZMaterialPresetAcrylicPanel_Fans}" />
        <Setter Property="Color" Value="Transparent" />
    </Style>

    <!-- This style is used only for the header panels within info blocks, (yellow transparent) -->
    <local:FZMaterialPresetAcrylicPanel x:Key="A_FZMaterialPresetAcrylicPanel_HeaderPanel"
                                        GlassColor="{StaticResource A_Color_Acrylic_HeaderPanel}"
                                        EdgeColor="{StaticResource A_Color_Acrylic_HeaderPanelEdge}"
                                        GlassEmission="0.6" 
                                        EdgeEmission="1.0" 
                                        FrontEdgeTransparency="0.5" 
                                        RearTransparency="0.05" 
                                        BlurAmount="Medium"
                                        ReflectionTextureType="Sharp" 
                                        Reflectivity="0.2"
                                        NormalDepth="0.004"
                                        SideReflectionIntensity="1.0"
                                        SubsurfaceIntensity="0.5"
                                        SubsurfaceSize="8"
                                        Depth="{StaticResource A_Double_Depth_Acrylic}"/>
    <Style x:Key="A_Style_FZMaterial_AcrylicPanel_HeaderPanel" TargetType="local:FZMaterial" >
        <Setter Property="Preset" Value="{StaticResource A_FZMaterialPresetAcrylicPanel_HeaderPanel}" />
        <Setter Property="Color" Value="#28E0D32D" />
        <Setter Property="MinHeight" Value="80" />
    </Style>

    <!-- This style is used only for the main body of information panels, like description boxes or screen backgrounds -->
    <local:FZMaterialPresetAcrylicPanel x:Key="A_FZMaterialPresetAcrylicPanel_BodyPanel"
                                        GlassColor="#ffd0d0d0"
                                        EdgeColor="#ff505050"
                                        FrontEdgeTransparency="0.5" 
                                        BlurAmount="High"
                                        Reflectivity="0.1"  
                                        ReflectionTextureType="Soft" 
                                        NormalDepth="0.01"
                                        BasedOn="{StaticResource A_FZMaterialPresetAcrylicPanel_Base}"/>
    <Style x:Key="A_Style_FZMaterial_AcrylicPanel_BodyPanel" TargetType="local:FZMaterial" >
        <Setter Property="Preset" Value="{StaticResource A_FZMaterialPresetAcrylicPanel_BodyPanel}" />
        <Setter Property="Color" Value="{StaticResource A_Color_Acrylic_BodyPanel}" />
    </Style>

    <!-- This style is used only for body of information panels that sit on an acrylic surface already, e.g. glass part of credit boxes in upgrade screens. -->
    <local:FZMaterialPresetAcrylicPanel x:Key="A_FZMaterialPresetGlass_BodyPanel_AcrylicSurface"
                                        OuterEdgeTransparency="1.0"
                                        BasedOn="{StaticResource A_FZMaterialPresetAcrylicPanel_BodyPanel}"/>
    <Style x:Key="A_Style_FZMaterial_AcrylicSurface_BodyPanel"
           TargetType="local:FZMaterial">
        <Setter Property="Preset"
                Value="{StaticResource A_FZMaterialPresetGlass_BodyPanel_AcrylicSurface}" />
        <Setter Property="Color"
                Value="{StaticResource A_Color_Acrylic_BodyPanel}" />
    </Style>

    <!-- This style is used only for body of information panels in an alternate color, like scroll bars on leaderboards. -->
    <local:FZMaterialPresetAcrylicPanel x:Key="A_FZMaterialPresetAcrylicPanel_BodyPanel_Alt"
                                        GlassColor="#ffffffff"
                                        EdgeColor="#ffffffff"
                                        BasedOn="{StaticResource A_FZMaterialPresetAcrylicPanel_BodyPanel}"/>
    <Style x:Key="A_Style_FZMaterial_AcrylicPanel_BodyPanel_Alt" TargetType="local:FZMaterial" >
        <Setter Property="Preset" Value="{StaticResource A_FZMaterialPresetAcrylicPanel_BodyPanel_Alt}" />
        <Setter Property="Color" Value="{StaticResource A_Color_Acrylic_BodyPanel_Alt}" />
    </Style>

    <local:FZMaterialPresetAcrylicPanel x:Key="A_FZMaterialPresetGlass_Opaque_AcrylicSurface"
                                        OuterEdgeTransparency="1.0"
                                        BasedOn="{StaticResource A_FZMaterialPresetAcrylicPanel_Opaque}"/>
    <Style x:Key="A_Style_FZMaterial_AcrylicSurface_Tile_Background" TargetType="local:FZMaterial" >
        <Setter Property="Preset" Value="{StaticResource A_FZMaterialPresetGlass_Opaque_AcrylicSurface}" />
        <Setter Property="Color" Value="{StaticResource A_Color_Acrylic_Tile_Background}" />
    </Style>

    <!-- This Style should be used for glossy text, icons and images. -->
    <local:FZMaterialPreset             x:Key="A_FZMaterialPreset_Glossy"
                                        Reflectivity="0.2"
                                        ReflectionTextureType="Sharp" />
    <Style x:Key="A_Style_FZMaterial_GlossyBlack" TargetType="local:FZMaterial" >
        <Setter Property="Preset" Value="{StaticResource A_FZMaterialPreset_Glossy}" />
        <Setter Property="Color" Value="{StaticResource A_Color_GlossyBlack}" />
    </Style>

    <local:FZMaterialPreset             x:Key="A_FZMaterialPreset_Matte" Reflectivity="0.0" />

    <local:FZMaterialPreset             x:Key="A_FZMaterialPreset_Unlit" Unlit="True" />    

    <local:FZMaterialPresetRoundtangle  x:Key="A_FZMaterialPreset_Unlit_Inner_Left"
                                        BasedOn="{StaticResource A_FZMaterialPreset_Unlit}"
                                        CornerRadius="{StaticResource A_CornerRadius_Inner_Left}"/>

    <local:FZMaterialPresetRoundtangle  x:Key="A_FZMaterialPreset_Unlit_Inner_Right"
                                        BasedOn="{StaticResource A_FZMaterialPreset_Unlit}"
                                        CornerRadius="{StaticResource A_CornerRadius_Inner_Right}"/>

    <!-- Old material styles used for the UI -->
    <Style x:Key="A_Style_FZMaterial_ScreenTitle_Background" TargetType="local:FZMaterial" >
        <Setter Property="Preset" Value="{StaticResource A_FZMaterialPresetAcrylicPanel_TitleBlock}" />
    </Style>

    <Style x:Key="A_Style_FZMaterial_InactiveTitle_Background" TargetType="local:FZMaterial" >
        <Setter Property="Color" Value="{StaticResource A_Color_InactiveTitle_Background}" />
    </Style>

    <Style x:Key="A_Style_FZMaterial_InactiveDescription_Background" TargetType="local:FZMaterial" >
        <Setter Property="Color" Value="{StaticResource A_Color_InactiveDescription_Background}" />
    </Style>

    <Style x:Key="A_Style_FZMaterial_Tile_Background" TargetType="local:FZMaterial" >
        <Setter Property="Color" Value="{StaticResource A_Color_Tile_Background}" />
    </Style>

    <Style x:Key="A_Style_FZMaterial_TileSelected_Background" TargetType="local:FZMaterial" >
        <Setter Property="Color" Value="{StaticResource A_Color_TileSelected_Background}" />
    </Style>

    <Style x:Key="A_Style_FZMaterial_TileEmpty_Background" TargetType="local:FZMaterial" >
        <Setter Property="Color" Value="{StaticResource A_Color_TileEmpty_Background}" />
        <Setter Property="Preset" Value="{StaticResource A_FZMaterialPresetGlass_Standard}" />
    </Style>

    <Style x:Key="A_Style_FZMaterial_Panel_Background" TargetType="local:FZMaterial">
        <Setter Property="Color" Value="{StaticResource A_Color_Description_Background}" />
    </Style>
    
    <Style x:Key="A_Style_FZMaterial_GlassPanel_Background" TargetType="local:FZMaterial">
        <Setter Property="Color" Value="{StaticResource A_Color_Description_Background}" />
        <Setter Property="Preset" Value="{StaticResource A_FZMaterialPresetGlass_Standard}" />
    </Style>

    <Style x:Key="A_Style_FZMaterial_Glass_ScreenBackground_EnabledInWhitespace"
           TargetType="local:FZMaterial"
           BasedOn="{StaticResource A_Style_FrameworkElement_ScreenBlurTransition}">
        <Setter Property="Preset" Value="{StaticResource A_FZMaterialPresetGlass_ScreenBlur}" />
        <Setter Property="Color" Value="{StaticResource A_Color_ClearGlass}" />
    </Style>

    <Style x:Key="A_Style_FZMaterial_Glass_ScreenBackground"
           BasedOn="{StaticResource A_Style_FZMaterial_Glass_ScreenBackground_EnabledInWhitespace}"
	   TargetType="local:FZMaterial">
        <Style.Triggers>
            <DataTrigger Binding="{Binding IsInWhitespace, RelativeSource={RelativeSource FindAncestor, AncestorType=Page}, FallbackValue=False}" Value="True">
                <Setter Property="Preset" Value="{StaticResource A_FZMaterialPreset_FlatPanel_Base}"/>
                <Setter Property="Color" Value="{StaticResource A_Color_Tint_ScreenBackground}"/>
            </DataTrigger>
            <DataTrigger Binding="{Binding InPreRaceFlow, RelativeSource={RelativeSource FindAncestor, AncestorType=Page}, FallbackValue=False}" Value="True">
                <Setter Property="Preset" Value="{StaticResource A_FZMaterialPreset_FlatPanel_Base}"/>
                <Setter Property="Color" Value="{StaticResource A_Color_Tint_ScreenBackground}"/>
            </DataTrigger>
        </Style.Triggers>
    </Style>

    <Style x:Key="A_Style_FZMaterial_ScreenBackground_WhitespaceTintOnly"
           TargetType="local:FZMaterial"
           BasedOn="{StaticResource A_Style_FrameworkElement_ScreenBlurTransition}">
        <Setter Property="Color" Value="#00000000" />
        <Style.Triggers>
            <DataTrigger Binding="{Binding IsInWhitespace, RelativeSource={RelativeSource FindAncestor, AncestorType=Page}, FallbackValue=False}" Value="True">
                <Setter Property="Color" Value="{StaticResource A_Color_Tint_ScreenBackground}"/>
            </DataTrigger>
            <DataTrigger Binding="{Binding InPreRaceFlow, RelativeSource={RelativeSource FindAncestor, AncestorType=Page}, FallbackValue=False}" Value="True">
                <Setter Property="Color" Value="{StaticResource A_Color_Tint_ScreenBackground}"/>
            </DataTrigger>
        </Style.Triggers>
    </Style>
    
    <Style x:Key="A_Style_FZMaterial_GlassTilePanel_Background" TargetType="local:FZMaterial">
        <Setter Property="Color" Value="{StaticResource A_Color_TileContainer_Background}" />
        <Setter Property="Preset" Value="{StaticResource A_FZMaterialPresetGlass_High}" />
    </Style>

    <Style x:Key="A_Style_FZMaterial_Popup_Background" TargetType="local:FZMaterial">
      <Setter Property="Color" Value="{StaticResource A_Color_PopupBgGlass}" />
      <Setter Property="Preset" Value="{StaticResource A_FZMaterialPresetGlass_ScreenBlurMedium}" />
    </Style>
  
    <Style x:Key="A_Style_FZMaterial_Panel_Header" TargetType="local:FZMaterial">
        <Setter Property="Color" Value="{StaticResource A_Color_Header_Background}" />
    </Style>

    <Style x:Key="A_Style_FZMaterial_Panel_Divider" TargetType="local:FZMaterial">
        <Setter Property="Color" Value="{StaticResource A_Color_Description_Divider}" />
    </Style>                
    <Style x:Key="A_Style_FZMaterial_Panel_HorizontalDivider" TargetType="local:FZMaterial" BasedOn="{StaticResource A_Style_FZMaterial_Panel_Divider}">
        <Setter Property="Height" Value="{StaticResource A_Double_DividerSize}" />
    </Style>
    <Style x:Key="A_Style_FZMaterial_Panel_VerticalDivider" TargetType="local:FZMaterial" BasedOn="{StaticResource A_Style_FZMaterial_Panel_Divider}">
        <Setter Property="Width" Value="{StaticResource A_Double_DividerSize}" />
    </Style>    
    <Style x:Key="A_Style_FZMaterial_GlassPanel_HorizontalDivider" TargetType="local:FZMaterial" BasedOn="{StaticResource A_Style_FZMaterial_Panel_Divider}">
        <Setter Property="Height" Value="{StaticResource A_Double_DividerSize}" />
        <Setter Property="Color" Value="{StaticResource A_Color_ThinDivider}" />
    </Style>

    <Style x:Key="A_Style_FZMaterial_DeltaProgressBar_Background"
           BasedOn="{StaticResource A_Style_FZMaterial_FlatPanel_Base}"
           TargetType="local:FZMaterial" >
        <Setter Property="Preset" Value="{StaticResource A_FZMaterialPresetRoundtangle_FlatPanel_InnerAll}"/>
        <Setter Property="Color" Value="{StaticResource A_Color_DeltaProgressBar_Background}" />
    </Style>
    <Style x:Key="A_Style_FZMaterial_DeltaProgressBar_Foreground"
           BasedOn="{StaticResource A_Style_FZMaterial_FlatPanel_Base}"
           TargetType="local:FZMaterial">
        <Setter Property="Preset" Value="{StaticResource A_FZMaterialPresetRoundtangle_FlatPanel_InnerAll}"/>
        <Setter Property="Color" Value="{StaticResource A_Color_DeltaProgressBar_Foreground}" />
    </Style>

    <Style x:Key="A_Style_FZMaterial_LargePanel_Background" TargetType="local:FZMaterial" BasedOn="{StaticResource A_Style_FZMaterial_GlassPanel_Background}">
        <Setter Property="Color" Value="#cc14171a" />
    </Style>

    <Style x:Key="A_Style_FZMaterial_ScrollArrow" TargetType="local:FZMaterial">
        <Setter Property="Color" Value="{StaticResource A_Color_ScrollArrows}" />
    </Style>

    <local:FZGeometry x:Key="A_Geometry_SpinnerArrow"
                      Data="M0,1.0 L0.5,-1.5 -0.5,-1.5" />
    <local:FZGeometry x:Key="A_Geometry_SpinnerArrowOutline"
                  Data="M-2.2,-1.4 L-0.3,-1.4 0,-1.0  0.3,-1.4 2.2,-1.4 0,1" />
    
    <!-- Only for use within a subgraph -->
    <local:FZMaterialPreset x:Key="A_FZMaterialPreset_Cutout"
                            AlphaMode="Cutout" />

    <Color x:Key="A_Color_CollectableRewardBacking">#FF9b52ef</Color>
    <Color x:Key="A_Color_GoliathRaceCollectionRewardBacking">#FF9b52ef</Color>
    <Color x:Key="A_Color_BrickChallengeRaceCollectionRewardBacking">#FFcf1835</Color>

    <local:MappingConverter x:Key="A_MappingConverter_SecondaryRewardTypeId_To_Currency_BackingColor" Default="{StaticResource A_Color_BrickChallengeRaceCollectionRewardBacking}">
        <local:MappingConverterEntry Key="photo" Value="{StaticResource A_Color_InfluenceThread_photo}"/>
    </local:MappingConverter>
    
    <Style x:Key="A_Style_FZMaterial_RewardBacking" TargetType="local:FZMaterial">
        <Style.Resources>
            <local:FZMaterialPresetRoundtangle x:Key="A_Preset_HorizonEdition_Gradient_Dynamic" BasedOn="{StaticResource A_FZMaterialPresetRoundtangle_FlatPanel_OuterAll}"
                        GradientAngle="90"
                        GradientColorA="{StaticResource A_Color_TombolaBackgroundGradientA_HorizonEdition}"
                        GradientColorB="{StaticResource A_Color_TombolaBackgroundGradientB_HorizonEdition}"/>
        </Style.Resources>
        <Setter Property="Preset" Value="{StaticResource A_FZMaterialPresetRoundtangle_FlatPanel_OuterAll}"/>
        <Setter Property="Color" Value="{Binding Rarity, Converter={StaticResource A_Converter_RarityToColor}}"/>
        <Style.Triggers>
            <DataTrigger Binding="{Binding RewardType, Converter={StaticResource A_Converter_RewardTypeShouldUseNoRarityColor}}" Value="{StaticResource A_Boolean_True}">
                <Setter Property="Color" Value="{StaticResource A_Color_NonRarity_Reward}"/>
            </DataTrigger>
            <MultiDataTrigger>
                <MultiDataTrigger.Conditions>
                    <Condition Binding="{Binding RewardType}" Value="{x:Static local:UIRewardType.Car}"/>
                    <Condition Binding="{Binding Rarity}" Value="{x:Static local:XAMLRarity.HorizonEdition}"/>
                </MultiDataTrigger.Conditions>
                <Setter Property="Preset" Value="{DynamicResource A_Preset_HorizonEdition_Gradient_Dynamic}"/>
            </MultiDataTrigger>
            <DataTrigger Binding="{Binding RewardType}" Value="{x:Static local:UIRewardType.HorizonStory}">
                <Setter Property="Color" Value="{StaticResource A_Color_InfluenceThread_horizon_stories}"/>
            </DataTrigger>
            <!-- Race collection could be other threads but we don't have a way to get that information here.
                 Same with Currency, at the moment brick challenges are the only one shown here but if we add more
                 we would need a way to switch on the currency type
            -->
            <DataTrigger Binding="{Binding RewardType}" Value="{x:Static local:UIRewardType.CareerRaceCollection}">
                <Setter Property="Color" Value="{StaticResource A_Color_GoliathRaceCollectionRewardBacking}" />
            </DataTrigger>
            <DataTrigger Binding="{Binding RewardType}" Value="{x:Static local:UIRewardType.Collectable}">
                <Setter Property="Color" Value="{StaticResource A_Color_CollectableRewardBacking}" />
            </DataTrigger>
            <DataTrigger Binding="{Binding RewardType}" Value="{x:Static local:UIRewardType.Currency}">
                <Setter Property="Color" Value="{Binding SecondaryRewardTypeId, Converter={StaticResource A_MappingConverter_SecondaryRewardTypeId_To_Currency_BackingColor}}" />
            </DataTrigger>
        </Style.Triggers>
    </Style>

    <Style x:Key="A_Style_FZMaterial_RewardBacking_InnerAll"
        TargetType="local:FZMaterial"
        BasedOn="{StaticResource A_Style_FZMaterial_RewardBacking}">
        <Style.Resources>
            <local:FZMaterialPresetRoundtangle x:Key="A_Preset_HorizonEdition_Gradient_Dynamic" BasedOn="{StaticResource A_FZMaterialPresetRoundtangle_FlatPanel_InnerAll}"
                        GradientAngle="90"
                        GradientColorA="{StaticResource A_Color_TombolaBackgroundGradientA_HorizonEdition}"
                        GradientColorB="{StaticResource A_Color_TombolaBackgroundGradientB_HorizonEdition}"/>
        </Style.Resources>
        <Setter Property="Preset" Value="{StaticResource A_FZMaterialPresetRoundtangle_FlatPanel_InnerAll}"/>
    </Style>

    <Style x:Key="A_Style_FZMaterial_PassthroughImageSourceWhilePageInitialized"
        TargetType="{x:Type local:FZMaterial}">
        <Setter Property="local:ManualPassthroughProperty.Allowed" Value="{Binding IsInitialized, RelativeSource={RelativeSource AncestorType=Page}, FallbackValue={StaticResource A_Boolean_True}}"/>
        <Setter Property="ImageSource" Value="{Binding (local:ManualPassthroughProperty.Output), RelativeSource={RelativeSource Self}}"/>
    </Style>
</ResourceDictionary>