<ResourceDictionary
	xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
	xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
	xmlns:System="clr-namespace:System;assembly=mscorlib"
	xmlns:local="clr-namespace:ForzaUI"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"    
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d" >
    <System:Double x:Key="A_Double_CreationButton_ListItem_Height">50</System:Double>
    <System:Double x:Key="A_Double_CreationButton_ListItem_Width">512</System:Double>
    <Size x:Key="A_Size_Creation_GamerPicSizeParams">128,128</Size>

    <Style x:Key="H_Style_Text_Creation_MainTitle"
               TargetType="FZTextBlock">
        <Setter Property="CapHeight" Value="24" />
        <Setter Property="FontFamily" Value="Horizon_A" />
        <Setter Property="Color" Value="{StaticResource H_Color_Primary_White}" />
        <Setter Property="HorizontalAlignment" Value="Left" />
        <Setter Property="VerticalAlignment" Value="Center" />
        <Setter Property="Effect" Value="{StaticResource A_DropShadowEffect_DefaultHud}" />
    </Style>

    <Style x:Key="H_Style_Text_Creation_PillHeader"
               TargetType="FZTextBlock">
        <Setter Property="CapHeight" Value="15" />
        <Setter Property="FontFamily" Value="Horizon_B" />
        <Setter Property="Color" Value="{StaticResource H_Color_Primary_White}" />
        <Setter Property="HorizontalAlignment" Value="Left" />
        <Setter Property="VerticalAlignment" Value="Center" />
        <Setter Property="Margin" Value="10,0" />
        <Setter Property="Effect" Value="{StaticResource A_DropShadowEffect_DefaultHud}" />
    </Style>

    <Style x:Key="A_Style_FZRun_HIGHLIGHT" TargetType="{x:Type local:FZRun}">
        <Setter Property="Color" Value="{StaticResource H_Color_Primary_Yellow}"/>
    </Style>

    <MappingConverter x:Key="A_MappingConverter_PillContentMarkup">
        <MappingConverterEntry Key="{NoCase HIGHLIGHT}" Value="{StaticResource A_Style_FZRun_HIGHLIGHT}" />
    </MappingConverter>
    
    <Style x:Key="H_Style_Text_Creation_PillContent"
               TargetType="FZTextBlock">
        <Setter Property="CapHeight" Value="15" />
        <Setter Property="FontFamily" Value="Horizon_B" />
        <Setter Property="Color" Value="{StaticResource H_Color_Primary_White}" />
        <Setter Property="HorizontalAlignment" Value="Right" />
        <Setter Property="VerticalAlignment" Value="Center" />
        <Setter Property="Margin" Value="0,0,10,0" />
        <Setter Property="Effect" Value="{StaticResource A_DropShadowEffect_DefaultHud}" />
        <Setter Property="MarkupConverter" Value="{StaticResource A_MappingConverter_PillContentMarkup}" />
    </Style>

    <Style x:Key="A_Style_Material_Creation_Pill_Background_4px"
           TargetType="{Type local:FZMaterial}">
        <Setter Property="Color" Value="{StaticResource H_Color_Glass_Purple_20pc}" />
        <Setter Property="Preset" Value="{StaticResource H_GlassRoundtangle_Medium_4px}" />
        <Setter Property="Height" Value="30" />
        <Setter Property="MinWidth" Value="300" />
    </Style>

    <Style x:Key="A_Style_Material_Creation_MajorPill_TopBackground" TargetType="local:FZMaterial">
        <Setter Property="Preset" Value="{StaticResource H_GlassRoundtangle_Medium_4px_TopOnly}" />
        <Setter Property="Height" Value="34" />
    </Style>

    <Style x:Key="A_Style_Material_Creation_MajorPill_BottomBackground" TargetType="local:FZMaterial">
        <Setter Property="Preset" Value="{StaticResource H_GlassRoundtangle_Medium_4px_BottomOnly}" />
        <Setter Property="Height" Value="30" />
        <Setter Property="Color" Value="{StaticResource H_Color_Glass_Purple_40pc}" />
    </Style>

    <MappingConverter x:Key="A_MappingConverter_Enabled_To_ItemHeight" Default="45">
        <MappingConverterEntry Key="False" Value="35" />
    </MappingConverter>

    <Style x:Key="A_Style_ListBoxItem_Creation_Button" TargetType="ListBoxItem"
           BasedOn="{StaticResource A_Style_ListBoxItem_TextMenu_Gaps}">
        <Setter Property="Height" Value="{Binding Enabled, Converter={StaticResource A_MappingConverter_Enabled_To_ItemHeight}}" />
        <Setter Property="Width" Value="{StaticResource A_Double_CreationButton_ListItem_Width}" />
        <Setter Property="Margin" Value="0,0,0,4" />
        <Setter Property="IsEnabled" Value="{Binding Enabled}"/>
        <Setter Property="Focusable" Value="{Binding Enabled}"/>
        <Style.Triggers>
            <DataTrigger Binding="{Binding Command.DeniedCommand, Converter={StaticResource A_Converter_DeniedCommandToLockState}}" Value="{x:Static local:LockState.Locked}">
                <Setter Property="Tag" Value="Inactive" />
            </DataTrigger>
        </Style.Triggers>
    </Style>

    <Style x:Key="A_Style_FrameworkElement_CollapsedIfUnlocked"
           TargetType="{x:Type FrameworkElement}">
        <Setter Property="Visibility" Value="Collapsed" />
        <Style.Triggers>
            <DataTrigger Binding="{Binding Command.DeniedCommand, Converter={StaticResource A_Converter_DeniedCommandToLockState}}" Value="{x:Static local:LockState.Locked}">
                <Setter Property="Visibility" Value="Visible" />
            </DataTrigger>
        </Style.Triggers>
    </Style>

    <Style x:Key="H_Style_FZMaterial_Button_Icon"
           TargetType="{x:Type local:FZMaterial}">
        <Setter Property="Color" Value="{StaticResource H_Color_Primary_White}" />
        <Setter Property="Width" Value="40" />
        <Setter Property="Height" Value="40" />
        <Setter Property="Margin" Value="9,0" />
        <Style.Triggers>
            <MultiDataTrigger>
                <MultiDataTrigger.Conditions>
                    <Condition Binding="{Binding ShouldShowIcon}" Value="True" />
                    <Condition Binding="{Binding IsKeyboardFocusWithin, RelativeSource={RelativeSource FindAncestor, AncestorType=ListBoxItem}}" Value="True" />
                </MultiDataTrigger.Conditions>
                <Setter Property="ImageSource" Value="{Binding SelectedIcon}" />
            </MultiDataTrigger>
            <MultiDataTrigger>
                <MultiDataTrigger.Conditions>
                    <Condition Binding="{Binding ShouldShowIcon}" Value="True" />
                    <Condition Binding="{Binding IsKeyboardFocusWithin, RelativeSource={RelativeSource FindAncestor, AncestorType=ListBoxItem}}" Value="False" />
                </MultiDataTrigger.Conditions>
                <Setter Property="ImageSource" Value="{Binding UnselectedIcon}" />
            </MultiDataTrigger>
            <MultiDataTrigger>
                <MultiDataTrigger.Conditions>
                    <Condition Binding="{Binding ShouldShowIcon}" Value="False" />
                    <Condition Binding="{Binding Command.DeniedCommand, Converter={StaticResource A_Converter_DeniedCommandToLockState}}" Value="{x:Static local:LockState.Unlocked}" />
                </MultiDataTrigger.Conditions>
                <Setter Property="Visibility" Value="Collapsed" />
            </MultiDataTrigger>
            <MultiDataTrigger>
                <MultiDataTrigger.Conditions>
                    <Condition Binding="{Binding Command.DeniedCommand, Converter={StaticResource A_Converter_DeniedCommandToLockState}}" Value="{x:Static local:LockState.Locked}" />
                    <Condition Binding="{Binding IsKeyboardFocusWithin, RelativeSource={RelativeSource FindAncestor, AncestorType=ListBoxItem}}" Value="True" />
                </MultiDataTrigger.Conditions>
                <Setter Property="ImageSource" Value="{Binding LockedIcon}" />
            </MultiDataTrigger>
            <MultiDataTrigger>
                <MultiDataTrigger.Conditions>
                    <Condition Binding="{Binding Command.DeniedCommand, Converter={StaticResource A_Converter_DeniedCommandToLockState}}" Value="{x:Static local:LockState.Locked}" />
                    <Condition Binding="{Binding IsKeyboardFocusWithin, RelativeSource={RelativeSource FindAncestor, AncestorType=ListBoxItem}}" Value="False" />
                </MultiDataTrigger.Conditions>
                <Setter Property="ImageSource" Value="{Binding LockedIcon}" />
                <Setter Property="Color" Value="{StaticResource H_Color_Primary_Grey_80pc}" />
            </MultiDataTrigger>
        </Style.Triggers>
    </Style>

    <Style x:Key="A_Style_ListBoxItem_Creation_Button_Text" 
           TargetType="{x:Type local:FZTextBlock}"
           BasedOn="{StaticResource A_Style_FZTextBlock_OptionText_Heading}">
        <Style.Triggers>
            <DataTrigger Binding="{Binding Command.DeniedCommand, Converter={StaticResource A_Converter_DeniedCommandToLockState}}" Value="{x:Static local:LockState.Locked}">
                <Setter Property="Color" Value="{StaticResource H_Color_Primary_Grey_80pc}" />
            </DataTrigger>
            <DataTrigger Binding="{Binding IsKeyboardFocusWithin, RelativeSource={RelativeSource FindAncestor, AncestorType=ListBoxItem}}" Value="True">
                <Setter Property="Color" Value="{StaticResource H_Color_Primary_White}" />
            </DataTrigger>
        </Style.Triggers>
    </Style>

    <DataTemplate DataType="{x:Type local:CreationButtonItemDataSource}">
        <Grid>
            <local:FZMaterial Style="{StaticResource H_Style_FZMaterial_Button_Icon}"
                              HorizontalAlignment="Right" VerticalAlignment="Center" />
            <local:FZTextBlock HorizontalAlignment="Left" Style="{StaticResource A_Style_ListBoxItem_Creation_Button_Text}" Text="{Binding Title}" />
        </Grid>
    </DataTemplate>

    <DataTemplate DataType="{x:Type local:CreationSeparatorItemDataSource}">
        <Grid>
            <local:FZMaterial Color="{StaticResource H_Color_Primary_Black}" Height="5" Focusable="False" VerticalAlignment="Center"/>
        </Grid>
    </DataTemplate>

    <ControlTemplate TargetType="ListBox" x:Key="A_ControlTemplate_Carousel_Creation_ButtonList_Template">
        <StackPanel Orientation="Vertical" IsItemsHost="True" />
    </ControlTemplate>

    <Style TargetType="CommonListBox"
           x:Key="A_Style_Carousel_Creation_ButtonList">
        <Setter Property="Template" Value="{StaticResource A_ControlTemplate_Carousel_Creation_ButtonList_Template}" />
        <Setter Property="ItemContainerStyle" Value="{StaticResource A_Style_ListBoxItem_Creation_Button}" />
        <Setter Property="local:FocusOnPageFocusGained.SelectorSelectedItem" Value="True" />
    </Style>

    <Color x:Key="A_Color_StarColor">#66F7F7F7</Color>
    <Color x:Key="A_Color_StarEmptyBackground">#66F7F7F7</Color>
    <Color x:Key="A_Color_StarFullBackground">#FFF200</Color>

    <Style x:Key="H_Style_UserContent_SidePanelItemWithHeader"
           TargetType="{Type HeaderedContentControl}">
        <Setter Property="Height" Value="44" />
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="{Type HeaderedContentControl}">
                    <UniformGrid Columns="2" Margin="2">
                        <ContentPresenter ContentSource="Header"/>
                        <ContentPresenter ContentSource="Content"/>
                    </UniformGrid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
        <Setter Property="HeaderTemplate">
            <Setter.Value>
                <DataTemplate>
                    <FZTextBlock
                                Style="{StaticResource A_Style_FZTextBlock_InfoLabel}"
                                Text="{Binding}" />
                </DataTemplate>
            </Setter.Value>
        </Setter>
        <Setter Property="ContentTemplate">
            <Setter.Value>
                <DataTemplate>
                    <FZTextBlock
                                HorizontalAlignment="Right"
                                Style="{StaticResource A_Style_FZTextBlock_InfoValue}"
                                Text="{Binding}" />
                </DataTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <Style x:Key="H_Style_UserContent_SidePanelItemMultilineWithHeader"
           TargetType="{Type HeaderedContentControl}">
        <Setter Property="Margin" Value="0,13" />
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="{Type HeaderedContentControl}">
                    <StackPanel Margin="2,0,0,0">
                        <ContentPresenter ContentSource="Header"/>
                        <ContentPresenter ContentSource="Content"/>
                    </StackPanel>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
        <Setter Property="HeaderTemplate">
            <Setter.Value>
                <DataTemplate>
                    <FZTextBlock
                                Style="{StaticResource A_Style_FZTextBlock_InfoLabel}"
                                Margin="0,0,0,10" 
                                Text="{Binding}" />
                </DataTemplate>
            </Setter.Value>
        </Setter>
        <Setter Property="ContentTemplate">
            <Setter.Value>
                <DataTemplate>
                    <FZTextBlock
                                Style="{StaticResource A_Style_FZTextBlock_InfoValue}"
                                FontFamily="Horizon_B"
                                Text="{Binding}" />
                </DataTemplate>
            </Setter.Value>
        </Setter>
    </Style>

    <Style x:Key="A_Style_ControlTemplate_UserContent_SidePanel_TwoRowsCarousel"
           TargetType="Control">
        <Setter Property="Height" Value="656" />
    </Style>

    <Style x:Key="A_Style_ControlTemplate_UserContent_SidePanel_ThreeRowsCarousel"
           TargetType="Control">
        <Setter Property="Height" Value="750" />
    </Style>

    <Style x:Key="A_Style_ControlTemplate_UserContent_SidePanel_FourRowsCarousel"
           TargetType="Control">
        <Setter Property="Height" Value="652" />
    </Style>
    
    <ControlTemplate x:Key="A_ControlTemplate_UserContent_SidePanel"
                    TargetType="ContentControl">
        <DockPanel Width="284" HorizontalAlignment="Left">
            <FZMaterial Height="90" Color="{StaticResource H_Color_Glass_Purple_40pc}" Preset="{StaticResource H_GlassRoundtangle_BottomOnly_1px}" 
                        DockPanel.Dock="Bottom">
                <DeltaProgressBar Style="{StaticResource A_Style_DeltaProgressBar_Popularity}"
                                  DataContext="{Binding SelectedItem, ElementName=PART_ItemList}"
                                  HorizontalAlignment="Center"
                                  Height="32" 
                                  BaseValue="{Binding Popularity}"
                                  NewValue="{Binding Popularity}"
                                  BindingProxy.A="{StaticResource A_Color_StarEmptyBackground}"
                                  BindingProxy.B="{StaticResource A_Color_StarFullBackground}"/>
            </FZMaterial>
            <FZMaterial Height="50" Color="{StaticResource H_Color_Primary_Green}" Preset="{StaticResource H_Roundtangle_TopOnly_1px}" 
                        DockPanel.Dock="Bottom"
                        Margin="0,8,0,0">
                <FZTextBlock Text="{local:Loc Storefront.IDS_LabelPopularity}"
                             Color="{StaticResource H_Color_Primary_Black}"
                             HorizontalAlignment="Center"
                             VerticalAlignment="Center"
                             CapHeight="18" />
            </FZMaterial>

            <ContentControl DockPanel.Dock="Top"
                            Template="{StaticResource A_ControlTemplate_SidePanelContent}"
                            x:Name="InformationPanel">
                <DockPanel>
                    <Grid x:Name="CreatorInfo" DockPanel.Dock="Top">
                        <local:FZMaterial x:Name="GamerPicMaterial"
                                            ImageSource="{Binding UserProfile, FallbackValue={x:Null}, Converter={StaticResource A_GamerPicConverter}, ConverterParameter={StaticResource A_Size_Creation_GamerPicSizeParams}}"
                                            Height="268"
                                            Width="284"
                                            Visibility="{Binding Downloaded, RelativeSource={RelativeSource Self}, Converter={StaticResource A_FZBooleanToVisibilityConverter_UseHidden}}"
                                            Preset="{StaticResource H_Roundtangle_TopOnly_2px}"/>
                        <local:FZMaterialGlassCapture />
                        <ProgressBar Style="{StaticResource A_Style_ProgressBar_WaitSpinner}"
                                     HorizontalAlignment="Center"
                                     VerticalAlignment="Center"
                                     Visibility="{Binding Downloaded, ElementName=GamerPicMaterial, Converter={StaticResource A_FZBooleanToVisibilityConverter_Inverse}}"/>
                        <local:FZMaterial VerticalAlignment="Bottom"
                                              Height="60"
                                              Color="{StaticResource H_Color_Glass_Purple_40pc}"
                                              Preset="{StaticResource A_FZMaterialPresetGlass_Low}" >
                            <local:FZTextBlock Text="{Binding UserProfile.FormattedGamertag, FallbackValue=-}"
                                                   Style="{StaticResource A_Style_FZTextBlock_CreatorInfo_Gamertag}" />
                        </local:FZMaterial>
                    </Grid>
                    <FZMaterial Color="{StaticResource H_Color_Primary_Black}">
                        <ContentPresenter />
                    </FZMaterial>
                </DockPanel>
            </ContentControl>
        </DockPanel>
        <ControlTemplate.Triggers>
            <DataTrigger Binding="{Binding UserProfile}" Value="{x:Null}">
                <Setter TargetName="GamerPicMaterial" Property="Visibility" Value="Hidden"/>
            </DataTrigger>
        </ControlTemplate.Triggers>
    </ControlTemplate>

    <Style x:Key="H_Style_UserContent_SidePanelItemFollower"
                   TargetType="{Type HeaderedContentControl}">
        <Setter Property="Height" Value="44" />
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="{Type HeaderedContentControl}">
                    <UniformGrid Columns="2" Margin="2">
                        <ContentPresenter ContentSource="Header"/>
                        <ContentPresenter ContentSource="Content"/>
                    </UniformGrid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
        <Setter Property="HeaderTemplate">
            <Setter.Value>
                <DataTemplate>
                    <FZTextBlock x:Name="HeaderText"
                                Style="{StaticResource A_Style_FZTextBlock_InfoLabel}"
                                Text="{Binding}"/>
                    <DataTemplate.Triggers>
                        <DataTrigger Binding="{Binding DataContext.IsCreatorFollowed, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type HeaderedContentControl}}}" Value="True">
                            <Setter TargetName="HeaderText"
                                            Property="Text"
                                            Value="{Loc Storefront.IDS_LabelCreatorFollowed }" />
                        </DataTrigger>
                    </DataTemplate.Triggers>
                </DataTemplate>
            </Setter.Value>
        </Setter>
        <Setter Property="ContentTemplate">
            <Setter.Value>
                <DataTemplate>
                    <FZMaterial  x:Name="IconContent"
                            ImageSource="{Binding}"
                            Height="21"
                            Width="21"
                            Color="{StaticResource A_Color_StarColor}"
                            HorizontalAlignment="Right"/>
                    <DataTemplate.Triggers>
                        <DataTrigger Binding="{Binding DataContext.IsCreatorFollowed, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type HeaderedContentControl}}}" Value="True">
                            <Setter TargetName="IconContent"
                                            Property="Color"
                                            Value="{StaticResource H_Color_Primary_Pink}" />
                        </DataTrigger>
                    </DataTemplate.Triggers>
                </DataTemplate>
            </Setter.Value>
        </Setter>
    </Style>

    <ControlTemplate x:Key="A_ControlTemplate_UserContent_RankAndStars"
                    TargetType="ContentControl">
        <StackPanel>
            <local:FZTextBlock Text="{Binding Content, RelativeSource={RelativeSource TemplatedParent}}"  
                               Style="{StaticResource A_Style_FZTextBlock_InfoLabel}"
                               Margin="2,13,0,14"/>
            <Viewbox Width="190"
                 Margin="-10,0,0,0"
                 HorizontalAlignment="Left">
                <DeltaProgressBar Style="{StaticResource A_Style_DeltaProgressBar_Popularity}"
                              BaseValue="{Binding CreatorRank}"
                              NewValue="{Binding CreatorRank}"
                              BindingProxy.A="{StaticResource A_Color_StarColor}" />
            </Viewbox>
        </StackPanel>
    </ControlTemplate>

    <Style x:Key="H_Style_ContainerItem_Background" TargetType="FZMaterial" BasedOn="{StaticResource H_Style_Container_Carousel_Tile}">
        <Setter Property="Color" Value="{StaticResource H_Color_Glass_Purple_40pc}" />
        <Setter Property="Preset" Value="{StaticResource H_GlassRoundtangle_8px}" />
    </Style>

    <Style x:Key="H_Style_ContentControl_CustomisationItem_ContainerStyle_TransparentBackground" TargetType="ListBoxItem"
                   BasedOn="{StaticResource H_Style_FullScreenCarousel_ContainerStyle}">
        <Setter Property="DynamicData.Data">
            <Setter.Value>
                <DynamicDataSource>
                    <DynamicDataItem Name="ItemBackgroundStyle" DataType="{Type Style}" Value="{StaticResource H_Style_ContainerItem_Background}" />
                </DynamicDataSource>
            </Setter.Value>
        </Setter>
    </Style>

    <ControlTemplate x:Key="A_ControlTemplate_Carousel_PropPrefabItem">
        <ControlTemplate.Resources>
            <Style x:Key="H_Style_PrimaryText"
                           TargetType="local:FZTextBlock"
                           BasedOn="{StaticResource A_Style_FZTextBlock_HorizonA}">
                <Setter Property="CapHeight"
                                Value="21" />
                <Setter Property="Color"
                                Value="{StaticResource H_Color_Primary_White}" />
                <Setter Property="TextAlignment"
                                Value="Center" />
            </Style>

            <Style x:Key="H_Style_SecondaryText"
                           TargetType="local:FZTextBlock"
                           BasedOn="{StaticResource A_Style_FZTextBlock_HorizonB}">
                <Setter Property="CapHeight"
                                Value="21" />
                <Setter Property="Color"
                                Value="{StaticResource H_Color_Primary_White}" />
                <Setter Property="TextAlignment"
                                Value="Center" />
                <Setter Property="Opacity"
                                Value="0.6" />
            </Style>
        </ControlTemplate.Resources>

        <Grid>
            <Grid Visibility="{Binding IsNewItem, Converter={StaticResource A_FZBooleanToVisibilityConverter_Inverse}}">
                <DockPanel
                            Visibility="{Binding IsReady, Converter={StaticResource A_FZBooleanToVisibilityConverter}, FallbackValue=Visible}"
                            Margin="8,12">
                    <FZTextBlock
                                Style="{StaticResource H_Style_PrimaryText}"
                                Text="{Binding DisplayName, Converter={StaticResource A_StringToUpper}, FallbackValue=-}"
                                DockPanel.Dock="Top" />
                    <FrameworkElement Height="8" DockPanel.Dock="Top" />
                    <FZTextBlock
                                Style="{StaticResource H_Style_SecondaryText}"
                                Text="{Binding UserProfile.FormattedGamertag, FallbackValue=-}"
                                DockPanel.Dock="Top" />
                    <FZMaterial ImageSource="{Binding BigThumbnail}"
                                        Margin="0,8,0,0"
                                        Width="210"
                                        Height="210"/>
                </DockPanel>
                <ProgressBar x:Name="Loading"
                                     IsIndeterminate="True"
                                     Style="{StaticResource A_Style_ProgressBar_WaitSpinner}"
                                     Visibility="{Binding IsReady, Converter={StaticResource A_FZBooleanToVisibilityConverter_Inverse}, FallbackValue=Collapsed}"
                                     HorizontalAlignment="Center"
                                     VerticalAlignment="Center" />
            </Grid>
            <StackPanel
                        Visibility="{Binding IsNewItem, Converter={FZBooleanToVisibilityConverter}, FallbackValue=Collapsed}"
                        Orientation="Vertical"
                        HorizontalAlignment="Center"
                        VerticalAlignment="Center">
                <FZMaterial
                            ImageSource="game:\Media\UI\Textures\Data_Bound\ui_symbols\Save_Icon.png"
                            Width="110"
                            Height="144"
                            Margin="0,0,0,51"
                            Color="{StaticResource H_Color_Primary_White}"/>
                <FZTextBlock
                            Style="{StaticResource H_Style_PrimaryText}"
                            Text="{Loc Livery.IDS_SaveLivery}"/>
            </StackPanel>
        </Grid>
    </ControlTemplate>

    <ControlTemplate x:Key="A_ControlTemplate_Tooltip" TargetType="ContentControl">
        <StackPanel Width="300">
            <local:FZMaterial Style="{StaticResource A_Style_Material_Creation_MajorPill_TopBackground}"
                              Color="{StaticResource H_Color_Primary_Green}">
                <FZTextBlock Text="{local:Loc EventBlueprint.IDS_Tooltip_Controls}"
                             Color="{StaticResource H_Color_Primary_Black}"
                             FontFamily="Horizon_C"
                             CapHeight="15"
                             VerticalAlignment="Center"
                             Margin="8,0"/>
            </local:FZMaterial>
            <Grid>
                <local:FZMaterial Style="{StaticResource A_Style_Material_Creation_Pill_Background_4px}"
                                  Preset="{StaticResource A_FZMaterialPresetGlassRoundtangle_GlassPanel_Base}"
                                  Height="Auto"/>
                <DockPanel>
                    <local:FZMaterial DockPanel.Dock="Bottom"
                                      Height="3"
                                      Color="{StaticResource H_Color_Primary_Black}"/>
                    <ContentPresenter DockPanel.Dock="Top"
                                      x:Name="ControllerButtonPanel"
                                      Margin="6,5" />
                </DockPanel>
            </Grid>
        </StackPanel>
    </ControlTemplate>

    <Style x:Key="A_Style_ButtonDesc_Markup_BOLD"
           TargetType="local:FZRun">
        <Setter Property="FontFamily" Value="Horizon_A"/>
    </Style>

    <MappingConverter x:Key="A_MappingConverter_ButtonDesc">
        <MappingConverterEntry Key="{NoCase BOLD}" Value="{StaticResource A_Style_ButtonDesc_Markup_BOLD}" />
    </MappingConverter>

    <Style x:Key="A_Style_ControllerButtonControl_Tooltip"
           TargetType="{x:Type local:ControllerButtonControl}"
           BasedOn="{StaticResource A_Style_ControllerButtonControl_Standalone}">
        <Setter Property="HideBackground" Value="True"/>
        <Setter Property="Margin" Value="0,3" />
        <Setter Property="AllowMouseClick" Value="False" />
        <Setter Property="Height" Value="auto" />
        <Style.Resources>
            <Style x:Key="A_Style_FZTextBlock_ButtonBarDescription_Dynamic"
                   BasedOn="{StaticResource A_Style_FZTextBlock_ButtonBarDescription}"
                   TargetType="{x:Type local:FZTextBlock}">
                <Setter Property="FontFamily" Value="Horizon_B" />
                <Setter Property="TextWrapping" Value="Wrap" />
                <Setter Property="Stretch" Value="None" />
                <Setter Property="LineAdjust" Value="-0.5" />
                <Setter Property="Margin" Value="7,0" />
                <Setter Property="MarkupConverter" Value="{StaticResource A_MappingConverter_ButtonDesc}" />
            </Style>
        </Style.Resources>
    </Style>
    <Style x:Key="A_Style_FZRun_SecondaryTitle_CREDITS" TargetType="Control">
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate>
                    <Control Style="{StaticResource H_Style_Control_CreditsIcon}"
                            Height="20" MinWidth="20"
                            Margin="0,-2,0,0" />
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <MappingConverter x:Key="A_MappingConverter_SecondaryTitle_Markup">
        <MappingConverterEntry Key="{NoCase CREDITS}" Value="{StaticResource A_Style_FZRun_SecondaryTitle_CREDITS}" />
    </MappingConverter>
    <ControlTemplate x:Key="A_ControlTemplate_CreationInfo_Content">
        <ControlTemplate.Resources>
            <Style x:Key="H_Style_CreationInfo_GenericText"
               TargetType="FZTextBlock">
                <Setter Property="HorizontalAlignment" Value="Left" />
                <Setter Property="VerticalAlignment" Value="Center" />
            </Style>
            <Style x:Key="H_Style_Text_MainTile_Title"
               TargetType="FZTextBlock"
               BasedOn="{StaticResource H_Style_CreationInfo_GenericText}">
                <Setter Property="CapHeight" Value="15" />
                <Setter Property="FontFamily" Value="Horizon_C" />
                <Setter Property="Color" Value="{StaticResource H_Color_Primary_Black}" />
            </Style>
            <Style x:Key="H_Style_Text_SecondaryTile_Title"
               TargetType="FZTextBlock"
               BasedOn="{StaticResource H_Style_CreationInfo_GenericText}">
                <Setter Property="CapHeight" Value="15" />
                <Setter Property="FontFamily" Value="Horizon_A" />
                <Setter Property="Color" Value="{StaticResource H_Color_Primary_Yellow}" />
            </Style>
            <Style x:Key="H_Style_Text_ActivateTile_Title"
               TargetType="FZTextBlock"
               BasedOn="{StaticResource H_Style_CreationInfo_GenericText}">
                <Setter Property="CapHeight" Value="15" />
                <Setter Property="FontFamily" Value="Horizon_B" />
                <Setter Property="Color" Value="{StaticResource H_Color_Primary_White}" />
            </Style>
            <Style x:Key="A_Style_ControllerButtonControl_CreationScreen_ActivationButton"
                   BasedOn="{StaticResource A_Style_ControllerButtonControl_ActivationButton}"
                   TargetType="local:ControllerButtonControl">
                <Style.Triggers>
                    <DataTrigger Binding="{Binding (local:BindingProxy.B), RelativeSource={RelativeSource TemplatedParent}}" LogicalOp="NotEquals" Value="{x:Null}">
                        <Setter Property="InputOverride" Value="{x:Null}" />
                        <Setter Property="Button" Value="{Binding (local:BindingProxy.B), RelativeSource={RelativeSource TemplatedParent}}" />
                    </DataTrigger>
                </Style.Triggers>
            </Style>
        </ControlTemplate.Resources>
        <StackPanel>
            <local:FZTextBlock Style="{StaticResource H_Style_Text_Creation_MainTitle}" 
                               Visibility="{Binding CreationData.MainTitle, Converter={StaticResource A_StringVisConverter}}"
                               Text="{Binding CreationData.MainTitle}" />
            <Decorator Height="16" Visibility="{Binding CreationData.MainTitle, Converter={StaticResource A_StringVisConverter}}"/>
            <StackPanel HorizontalAlignment="Left"
                        MinWidth="300">
                <local:FZMaterial Color="{StaticResource H_Color_Primary_Green}" 
                                  Style="{StaticResource A_Style_Material_Creation_MajorPill_TopBackground}" >
                    <DockPanel Margin="8,0">
                        <local:FZMaterial ImageSource="{Binding CreationData.MainTileIcon}"
                                          DockPanel.Dock="Right"
                                          Height="28" Width="28"
                                          VerticalAlignment="Center"
                                          Visibility="{Binding CreationData.MainTileIcon, Converter={StringVisConverter}}"/>
                        <local:FZTextBlock Style="{StaticResource H_Style_Text_MainTile_Title}"
                                           DockPanel.Dock="Left"
                                           Text="{Binding CreationData.MainTileTitle}" />
                    </DockPanel>
                </local:FZMaterial>
                <local:FZMaterial Style="{StaticResource A_Style_Material_Creation_MajorPill_BottomBackground}">
                    <DockPanel Margin="8,0">
                        <local:FZTextBlock Style="{StaticResource H_Style_Text_SecondaryTile_Title}"
                                           Text="{Binding CreationData.SecondaryTileTitle}" 
                                           MarkupConverter="{StaticResource A_MappingConverter_SecondaryTitle_Markup}"/>
                    </DockPanel>
                </local:FZMaterial>
                <Decorator Height="4" Visibility="{Binding (local:BindingProxy.A), RelativeSource={RelativeSource TemplatedParent}, Converter={StaticResource H_Converter_CollapsedIfNull}}"/>
                <local:FZMaterial Style="{StaticResource A_Style_Material_Creation_Pill_Background_4px}"
                                  Visibility="{Binding (local:BindingProxy.A), RelativeSource={RelativeSource TemplatedParent}, Converter={StaticResource H_Converter_CollapsedIfNull}}">
                    <DockPanel Margin="8,0">
                        <local:ControllerButtonControl Style="{StaticResource A_Style_ControllerButtonControl_CreationScreen_ActivationButton}"
                                                       VerticalAlignment="Center"
                                                       DockPanel.Dock="Right"
                                                       Command="{Binding (local:BindingProxy.A), RelativeSource={RelativeSource TemplatedParent}}"  />
                        <local:FZTextBlock Style="{StaticResource H_Style_Text_ActivateTile_Title}"
                                           Text="{Binding CreationData.ActivateTileTitle}" />
                    </DockPanel>
                </local:FZMaterial>
                <Decorator Height="10" />
            </StackPanel>
        </StackPanel>
    </ControlTemplate>

    <Style x:Key="A_Style_Carousel_CreationPosters_EmptyItemStyle"
           TargetType="Control"
           BasedOn="{StaticResource H_Style_FullScreenCarousel_EmptyItemStyle}">
        <Setter Property="Margin" Value="0,0,8,0" />
        <Setter Property="Height" Value="708" />
        <Setter Property="VerticalAlignment" Value="Top" />
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="Control">
                    <FZMaterial>
                        <FZMaterial.Style>
                            <Style TargetType="FZMaterial">
                                <Setter Property="Color" Value="{StaticResource H_Color_Glass_Purple_20pc}" />
                                <Setter Property="Preset" Value="{StaticResource H_GlassRoundtangle_2px}" />
                            </Style>
                        </FZMaterial.Style>
                    </FZMaterial>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>

    <Style x:Key="A_Style_Carousel_CreationPosters"
               TargetType="local:WrapListBox"
               BasedOn="{StaticResource H_Style_FullScreenCarousel}">
        <Setter Property="ItemWidth" Value="450" />
        <Setter Property="ItemHeight" Value="716" />
        <Setter Property="Height" Value="716" />
        <Setter Property="EmptyItemStyle" Value="{StaticResource A_Style_Carousel_CreationPosters_EmptyItemStyle}" />
    </Style>

    <Style x:Key="A_Style_ListBoxItem_CreationPoster_Base"
               TargetType="{x:Type ListBoxItem}"
               BasedOn="{StaticResource H_Style_FullScreenCarousel_ContainerStyle}">
        <Style.Resources>
            <CornerRadius x:Key="A_StrokeHighlight_ContentRadius">2</CornerRadius>
            <Thickness x:Key="A_StrokeHighlight_InnerThickness">4</Thickness>
            <Thickness x:Key="A_StrokeHighlight_OuterThickness">4</Thickness>
        </Style.Resources>
    </Style>
</ResourceDictionary>