<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                    xmlns:System="clr-namespace:System;assembly=mscorlib"
                    xmlns:local="clr-namespace:ForzaUI;assembly="
                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
    <local:LinearTransformConverter Scale="1.777777777777777"
                                    x:Key="A_Converter_CarThumb_Ratio" />
    <System:Double x:Key="A_Double_CarSelect_CentreContentHeight">494</System:Double>

    <local:MappingConverter x:Key="A_Converter_BarnFindStateIsSpawnedOrLater"
                            Default="{StaticResource A_Boolean_False}">
        <local:MappingConverterEntry Key="{x:Static local:BarnFindStateEnum.Spawned}" Value="{StaticResource A_Boolean_True}" />
        <local:MappingConverterEntry Key="{x:Static local:BarnFindStateEnum.Discovered}" Value="{StaticResource A_Boolean_True}" />
        <local:MappingConverterEntry Key="{x:Static local:BarnFindStateEnum.Restored}" Value="{StaticResource A_Boolean_True}" />
        <local:MappingConverterEntry Key="{x:Static local:BarnFindStateEnum.Collected}" Value="{StaticResource A_Boolean_True}" />
    </local:MappingConverter>

    <local:MappingConverter x:Key="A_Converter_BarnFindStateIsDiscoveredOrLater"
                            Default="{StaticResource A_Boolean_False}">
        <local:MappingConverterEntry Key="{x:Static local:BarnFindStateEnum.Discovered}" Value="{StaticResource A_Boolean_True}" />
        <local:MappingConverterEntry Key="{x:Static local:BarnFindStateEnum.Restored}" Value="{StaticResource A_Boolean_True}" />
        <local:MappingConverterEntry Key="{x:Static local:BarnFindStateEnum.Collected}" Value="{StaticResource A_Boolean_True}" />
    </local:MappingConverter>

    <local:MappingConverter x:Key="A_Converter_BarnFindStateIsRestoredOrLater"
                            Default="{StaticResource A_Boolean_False}">
        <local:MappingConverterEntry Key="{x:Static local:BarnFindStateEnum.Restored}" Value="{StaticResource A_Boolean_True}" />
        <local:MappingConverterEntry Key="{x:Static local:BarnFindStateEnum.Collected}" Value="{StaticResource A_Boolean_True}" />
    </local:MappingConverter>
    
    <local:MappingConverter x:Key="A_Converter_VisibleWhenHideSeek"
                            Default="Collapsed">
        <local:MappingConverterEntry Key="{x:Static local:SceneEntryEnum.CarSelectOnlineHideSeekGarage}" Value="Visible" />
    </local:MappingConverter>
    
    <local:MappingConverter x:Key="A_Converter_VisibleWhenHideSeek_Inverse"
                            Default="Visible">
        <local:MappingConverterEntry Key="{x:Static local:SceneEntryEnum.CarSelectOnlineHideSeekGarage}" Value="Collapsed" />
    </local:MappingConverter>
    
    <local:MappingConverter x:Key="A_Converter_HideSeekCarBackgroundTeam">
        <local:MappingConverterEntry Key="True" Value="game:/Media/UI/Textures/Data_Bound/Hide_Seek/Car_Selection/hider_base.png" />
        <local:MappingConverterEntry Key="False" Value="game:/Media/UI/Textures/Data_Bound/Hide_Seek/Car_Selection/seeker_base.png" />
    </local:MappingConverter>
    
    <local:MappingConverter x:Key="A_Converter_HideSeekCarBannerText">
        <local:MappingConverterEntry Key="True" Value="{local:Loc CarFlow.IDS_Badge_Hider}" />
        <local:MappingConverterEntry Key="False" Value="{local:Loc CarFlow.IDS_Badge_Seeker}" />
    </local:MappingConverter>
    
    <local:MappingConverter x:Key="A_Converter_HideSeekCarInfoText">
        <local:MappingConverterEntry Key="True" Value="{local:Loc CarFlow.IDS_CarInfo_Hider}" />
        <local:MappingConverterEntry Key="False" Value="{local:Loc CarFlow.IDS_CarInfo_Seeker}" />
    </local:MappingConverter>
    
    <local:MappingConverter x:Key="A_Converter_HideSeekColor">
        <local:MappingConverterEntry Key="True" Value="{StaticResource A_Color_HideSeek_Hider_CarSelect}" />
        <local:MappingConverterEntry Key="False" Value="{StaticResource A_Color_HideSeek_Seeker_CarSelect}" />
    </local:MappingConverter>

    <local:MappingConverter x:Key="A_MappingConverter_HideWhenElectricEngine" Default="{Static Visibility.Visible}">
        <local:MappingConverterEntry Key="6" Value="{Static Visibility.Hidden}" />
    </local:MappingConverter>

    <local:LinearTransformConverter x:Key="A_Int64ToInt32Converter" />

    <local:MultiConverter x:Key="A_Converter_BarnFindStateInt64ToInt32">
        <local:MultiConverterEntry Converter="{StaticResource A_Int64ToInt32Converter}"
                                           TargetType="{x:Type System:Int32}" />
    </local:MultiConverter>

    <local:MappingConverter x:Key="A_Converter_BarnFindStateIsDiscoveredNotAvailable"
                            Default="{StaticResource A_Boolean_False}">
        <local:MappingConverterEntry Key="{x:Static local:BarnFindStateEnum.DiscoveredNotAvailable}" Value="{StaticResource A_Boolean_True}" />
    </local:MappingConverter>

    <local:MappingConverter x:Key="A_Converter_BarnFindStateIsNotCollected"
                            Default="{StaticResource A_Boolean_True}">
        <local:MappingConverterEntry Key="{x:Static local:BarnFindStateEnum.Collected}" Value="{StaticResource A_Boolean_False}"/>
    </local:MappingConverter>

    <Style TargetType="{x:Type Grid}"
           x:Key="A_Style_Grid_CarSelect_DescriptionBlock">
        <Setter Property="Height"
                Value="{StaticResource A_Double_CarSelect_CentreContentHeight}" />
    </Style>
    <Style TargetType="{x:Type Grid}"
           x:Key="A_Style_Grid_CarSelect_LargeImageBlock">
        <Setter Property="Height"
                Value="{StaticResource A_Double_CarSelect_CentreContentHeight}" />
    </Style>
    <Style BasedOn="{StaticResource A_Style_FZTextBlock_Heading}"
           TargetType="local:FZTextBlock"
           x:Key="A_Style_TextBlock_CarSelect_Heading">
        <Setter Property="Color"
                Value="{StaticResource A_Color_Header_Text}" />
        <Setter Property="Stretch"
                Value="Uniform" />
        <Setter Property="StretchDirection"
                Value="DownOnly" />
    </Style>

    <Style BasedOn="{StaticResource A_Style_TextBlock_CarSelect_Heading}"
           TargetType="local:FZTextBlock"
           x:Key="A_Style_TextBlock_CarSelect_Cost">
        <Setter Property="CapHeight"
                Value="26" />
        <Setter Property="HorizontalAlignment"
                Value="Right" />
        <Setter Property="VerticalAlignment"
                Value="Center" />
        <Setter Property="Color"
                Value="{StaticResource H_Color_Primary_Black}" />
    </Style>

    <Style BasedOn="{StaticResource A_Style_TextBlock_CarSelect_Cost}"
           TargetType="local:FZTextBlock"
           x:Key="A_Style_TextBlock_CarSelect_CostOrFree">
        <Style.Resources>
            <Style x:Key="H_CarCost_Num" TargetType="FZRun">
                <Setter Property="FontFamily" Value="Horizon_A"/>
            </Style>
            <MappingConverter x:Key="A_MappingConverter_CarCost" >
                <MappingConverterEntry Key="{NoCase NUM}" Value="{StaticResource H_CarCost_Num}" />
            </MappingConverter>
        </Style.Resources>
        <Setter Property="FontFamily" Value="HorizonFestival_Asphalt"/>
        <Setter Property="Text"
                Value="{Binding Tag, RelativeSource={RelativeSource Self}, ConverterParameter=money, Converter={NumUnitConverter FractionDigits=0, ShowUnit=false, InsertMarkup=true}}"/>
        <Setter Property="MarkupConverter"
                Value="{StaticResource A_MappingConverter_CarCost}" />
        <Style.Triggers>
            <Trigger Property="Tag">
                <Trigger.Value>
                    <Int32>0</Int32>
                </Trigger.Value>
                <Setter Property="Text" Value="{local:Loc InGameMarketplace.IDS_Free}"/>
            </Trigger>
        </Style.Triggers>
    </Style>

    <Style BasedOn="{StaticResource A_Style_TextBlock_CarSelect_Cost}"
           TargetType="local:FZTextBlock"
           x:Key="A_Style_TextBlock_CarSelect_CapturedNotCaptured">
        <Setter Property="CapHeight" Value="22" />
        <Setter Property="Color" Value="{StaticResource H_Color_Primary_White}" />
        <Setter Property="Opacity" Value="0.8" />
        <Setter Property="Text"
                Value="{Binding Source={local:Loc CarFlow.IDS_CarFilter_PhotoNotCaptured}, Converter={StaticResource A_StringToUpper}}" />
        <Style.Triggers>
            <DataTrigger Binding="{Binding IsPhotoCaptured}" Value="1">
                <Setter Property="Text"
                        Value="{Binding Source={local:Loc CarFlow.IDS_CarFilter_PhotoCaptured}, Converter={StaticResource A_StringToUpper}}" />
                <Setter Property="Opacity" Value="1" />
            </DataTrigger>
        </Style.Triggers>
    </Style>


    <Color x:Key="A_Color_CarSelect_SubHeading">#7f7f7f</Color>
    <Style BasedOn="{StaticResource A_Style_FZTextBlock_SubHeading}"
           TargetType="local:FZTextBlock"
           x:Key="A_Style_TextBlock_CarSelect_Manufacturer">
        <Setter Property="Color"
                Value="{StaticResource A_Color_CarSelect_SubHeading}" />
        <Setter Property="Opacity"
                Value="1"/>
        <Setter Property="CapHeight"
                Value="18" />
        <Setter Property="FontFamily"
                Value="Horizon_B" />
    </Style>
    <Style BasedOn="{StaticResource A_Style_FZTextBlock_Heading}"
           TargetType="local:FZTextBlock"
           x:Key="A_Style_TextBlock_CarSelect_Car">
        <Setter Property="Color"
                Value="{StaticResource H_Color_Primary_Black}" />
        <Setter Property="Margin"
                Value="0,4,0,0" />
        <Setter Property="CapHeight"
                Value="21" />
        <Setter Property="FontFamily"
                Value="Horizon_A" />
    </Style>


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

    <Style TargetType="local:FZRun" x:Key="A_Style_FZRun_CarSelect_Default"/>

    <MappingConverter x:Key="A_MarkupConverter_CarSelect">
        <MappingConverterEntry Key="{NoCase Name}" Value="{StaticResource A_Style_FZRun_CarSelect_Name}" />
        <MappingConverterEntry Key="{NoCase Year}" Value="{StaticResource A_Style_FZRun_CarSelect_Default}" />
    </MappingConverter>

    <Style TargetType="local:FZMaterial"
           x:Key="A_Style_FZMaterial_CarSelectCarouselItem_StatusIcon">
        <Setter Property="Width"
                Value="18" />
        <Setter Property="Height"
                Value="18" />
        <Setter Property="VerticalAlignment"
                Value="Center" />
        <Setter Property="Color"
                Value="{StaticResource H_Color_Primary_Black}" />
        <Setter Property="Margin"
                Value="4,0,0,0" />
    </Style>

    <Style TargetType="local:FZTextBlock"
           x:Key="A_Style_FZTextBlock_CarSelectCarouseItem_StatusText">
        <Setter Property="Color"
                Value="{StaticResource H_Color_Primary_Black}" />
        <Setter Property="CapHeight"
                Value="14" />
        <Setter Property="Margin"
                Value="4,0,0,0" />
        <Setter Property="VerticalAlignment"
                Value="Center" />
        <Setter Property="HorizontalAlignment"
                Value="Center" />
        <Setter Property="Stretch"
                Value="None" />
        <Style.Triggers>
             <Trigger Property="Text" Value="" >
                <Setter Property="Visibility" Value="Collapsed" />
            </Trigger>
        </Style.Triggers>
    </Style>

    <Style TargetType="local:FZTextBlock"
           x:Key="A_Style_FZTextBlock_CarSelectCarouseItem_StatusText_Backstage"
           BasedOn="{StaticResource A_Style_FZTextBlock_CarSelectCarouseItem_StatusText}">
           <Setter Property="Visibility" Value="Collapsed"/>
        <Style.Triggers>
            <DataTrigger Binding="{Binding IsOwned}" Value="1" >
                <Setter Property="Visibility" Value="Visible" />
            </DataTrigger>
            <DataTrigger Binding="{Binding BackstageCarPurchased}" Value="True" >
                <Setter Property="Visibility" Value="Visible" />
            </DataTrigger>
        </Style.Triggers>
    </Style>

    <Style x:Key="A_Style_FZTextBlock_BarnfindReady"
           BasedOn="{StaticResource A_Style_FZTextBlock_CarSelectCarouseItem_StatusText}"
           TargetType="local:FZTextBlock">
        <Setter Property="Visibility"
                Value="Collapsed" />
        <Style.Triggers>
            <DataTrigger Binding="{Binding BarnFindState, Converter={StaticResource A_Converter_BarnFindStateInt64ToInt32}}"
                         Value="{x:Static local:BarnFindStateEnum.Restored}" >
                <Setter Property="Visibility"
                        Value="Visible" />
            </DataTrigger>
        </Style.Triggers>
    </Style>

    <Style TargetType="local:FZMaterial"
           x:Key="A_Style_FZMaterial_CarSelectCarouselItem_StatusIconBackground"
           BasedOn="{StaticResource H_Style_Container_StateBox_Green}">
        <Setter Property="MinWidth"
                Value="28" />
    </Style>

    <Style TargetType="local:FZMaterial"
           x:Key="A_Style_FZMaterial_CarSelectCarouselItem_StatusIcon_BarnFindInProgress"
           BasedOn="{StaticResource A_Style_FZMaterial_CarSelectCarouselItem_StatusIcon}">
        <Setter Property="Visibility"
                Value="Collapsed" />
        <Setter Property="Margin"
                Value="4,0,0,0"/>
        <Setter Property="Width" Value="32"/>
        <Setter Property="Height" Value="32"/>
        <Style.Triggers>
            <MultiDataTrigger>
                <MultiDataTrigger.Conditions>
                    <Condition Binding="{Binding BarnFindState, Converter={StaticResource A_Converter_BarnFindStateIsRestoredOrLater}}"
                               Value="{StaticResource A_Boolean_False}" />
                    <Condition Binding="{Binding BarnFindState, Converter={StaticResource A_Converter_BarnFindStateIsDiscoveredOrLater}}"
                               Value="{StaticResource A_Boolean_True}" />
                </MultiDataTrigger.Conditions>
                <Setter Property="Visibility"
                        Value="Visible" />
            </MultiDataTrigger>
        </Style.Triggers>
    </Style>

    <Style x:Key="A_Style_FrameworkElement_NewBlammoContainer"
           TargetType="FrameworkElement">
        <Setter Property="Visibility"
                Value="Collapsed" />
        <Style.Triggers>
            <MultiDataTrigger>
                <MultiDataTrigger.Conditions>
                    <Condition Binding="{Binding BlammoType}"
                               Value="{x:Null}" />
                    <Condition Binding="{Binding ShowPhotoInfo, RelativeSource={RelativeSource AncestorType=Page}, FallbackValue=False}"
                               Value="False" />
                </MultiDataTrigger.Conditions>
                <Setter Property="Visibility"
                        Value="Visible" />
            </MultiDataTrigger>
        </Style.Triggers>
    </Style>

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

    <MappingConverter x:Key="A_Converter_TreasureCar_IsCarHidden" Default="{StaticResource A_Boolean_False}">
        <MappingConverterEntry Key="{x:Static TreasureCarState.Hidden}" Value="{StaticResource A_Boolean_True}"/>
    </MappingConverter>

    <MappingConverter x:Key="A_Converter_TreasureCar_Show_DiscoveryState" Default="{StaticResource A_Boolean_False}">
        <MappingConverterEntry Key="{x:Static TreasureCarState.Hidden}" Value="{StaticResource A_Boolean_True}"/>
        <MappingConverterEntry Key="{x:Static TreasureCarState.Spotted}" Value="{StaticResource A_Boolean_True}"/>
        <MappingConverterEntry Key="{x:Static TreasureCarState.Discovered}" Value="{StaticResource A_Boolean_True}"/>
    </MappingConverter>

    <AutoScrollSettings x:Key="A_AutoScrollSettings_CarSelectTitle"
        ScrollSeparation="100"
        InitialPause="0:0:0.5"
        Speed="40"
        ScrollOrientation="Horizontal"
        ApplyClip="False"/>

    <Style TargetType="local:FZTextBlock"
           x:Key="A_Style_FZTextBlock_CarSelectCarousel_MainTitle_Dynamic"
           BasedOn="{StaticResource A_Style_TextBlock_CarSelect_Car}">
        <Setter Property="Margin"
                Value="0,4,0,4" />
        <Setter Property="TextTrimming"
                Value="CharacterEllipsis" />
        <Setter Property="MultiStringFormatter.Format"
            Value="[Name:{0}]"/>
        <Setter Property="MultiStringFormatter.Param0"
            Value="{Binding DisplayName, Converter={StaticResource A_StringToUpper}}"/>
        <Setter Property="MarkupConverter"
                Value="{StaticResource A_MarkupConverter_CarSelect}" />
        <Setter Property="FontFamily"
                Value="Horizon_B" />
        <Setter Property="Text"
                Value="{Binding (MultiStringFormatter.Output), RelativeSource={RelativeSource Self}}" />
        <Setter Property="ClipToBounds"
                Value="False"/>
        <Setter Property="Stretch"
                Value="None"/>
        <Setter Property="HorizontalAlignment"
                Value="Stretch"/>
        <Setter Property="AutoScroll"
                Value="{StaticResource A_AutoScrollSettings_CarSelectTitle}"/>
        <Setter Property="AutoScroll.AllowScrolling"
                Value="False"/>
        <Style.Triggers>
            <DataTrigger Binding="{Binding IsFakeCarRecord}"
                         Value="True">
                <Setter Property="MultiStringFormatter.Format"
                        Value="[Name:{0}]" />
                <Setter Property="MultiStringFormatter.Param0"
                        Value="{Binding Name, Converter={StaticResource A_StringToUpper}}" />
                <Setter Property="TextWrapping" 
                        Value="Wrap"/>
                <Setter Property="TextAlignment" 
                        Value="Center"/>
                <Setter Property="TextTrimming" 
                        Value="None" />
                <Setter Property="MaxHeight" 
                        Value="68" />
                <Setter Property="LineAdjust" 
                        Value="-0.5" />
                <Setter Property="AutoScroll"
                        Value="{StaticResource H_AutoScrollSettings_Default}"/>
            </DataTrigger>
            <DataTrigger Binding="{Binding BarnFindState, Converter={StaticResource A_Converter_BarnFindStateIsDiscoveredOrLater}}"
                         Value="{StaticResource A_Boolean_False}">
                <Setter Property="MultiStringFormatter.Format"
                        Value="[Name:{0}]" />
                <Setter Property="MultiStringFormatter.Param0"
                        Value="{local:Loc BarnFind.IDS_CarState_Locked}" />
            </DataTrigger>
            <DataTrigger Binding="{Binding BarnFindState, Converter={StaticResource A_Converter_BarnFindStateIsDiscoveredNotAvailable}}"
                         Value="{StaticResource A_Boolean_True}">
                <Setter Property="MultiStringFormatter.Format"
                        Value="[Name:{0}]" />
                <Setter Property="MultiStringFormatter.Param0"
                        Value="{local:Loc BarnFind.IDS_CarState_DiscoveredNotAvailable}" />
            </DataTrigger>
            <DataTrigger Binding="{Binding DiscoveryState, Converter={StaticResource A_Converter_TreasureCar_IsCarHidden}}"
                         Value="{StaticResource A_Boolean_True}">
                <Setter Property="MultiStringFormatter.Format"
                        Value="[Name:{0}]" />
                <Setter Property="MultiStringFormatter.Param0"
                        Value="{local:Loc SeeItDriveIt.IDS_TreasureCar_Unknown}" />
            </DataTrigger>
            <DataTrigger Binding="{Binding Path=(Selector.IsSelected), RelativeSource={RelativeSource FindAncestor, AncestorType=ListBoxItem}}" Value="True">
                <Setter Property="AutoScroll.AllowScrolling" Value="True"/>
                <Setter Property="TextTrimming" Value="None" />
            </DataTrigger>
            <DataTrigger Binding="{Binding Path=(local:BindingProxy.A), RelativeSource={RelativeSource FindAncestor, AncestorType=WrapListBox}, FallbackValue={x:Null}}" Value="{StaticResource A_Boolean_True}">
                <Setter Property="AutoScroll.AllowScrolling" Value="True"/>
                <Setter Property="TextTrimming" Value="None" />
            </DataTrigger>
        </Style.Triggers>
    </Style>

    <Style TargetType="local:FZTextBlock"
           x:Key="A_Style_FZTextBlock_CarSelectCarousel_Manufacturer"
           BasedOn="{StaticResource A_Style_TextBlock_CarSelect_Manufacturer}">
        <Setter Property="Margin" Value="0,5,0,5"/>
        <Setter Property="TextTrimming"
                Value="CharacterEllipsis" />
        <Setter Property="MultiStringFormatter.Format"
            Value="{Local:Loc Main.IDS_Format_CarShortDisplayName}"/>
        <Setter Property="MultiStringFormatter.Param0"
            Value="{Binding Year, Converter={NumUnitConverter FractionDigits=0}, ConverterParameter=year_time}"/>
        <Setter Property="MultiStringFormatter.Param1"
            Value="{Binding MakeName, Converter={StaticResource A_StringToUpper}}"/>
        <Setter Property="Text"
                Value="{Binding (MultiStringFormatter.Output), RelativeSource={RelativeSource Self}}" />
        <Setter Property="ClipToBounds"
                Value="False"/>
        <Setter Property="Stretch"
                Value="None"/>
        <Setter Property="HorizontalAlignment"
                Value="Stretch"/>
        <Setter Property="AutoScroll"
                Value="{StaticResource A_AutoScrollSettings_CarSelectTitle}"/>
        <Setter Property="AutoScroll.AllowScrolling"
                Value="False"/>
        <Style.Triggers>
            <DataTrigger Binding="{Binding BarnFindState, Converter={StaticResource A_Converter_BarnFindStateIsDiscoveredOrLater}}"
                         Value="{StaticResource A_Boolean_False}">
                <Setter Property="Text"
                        Value="{local:Loc BarnFind.IDS_Active}" />
            </DataTrigger>
            <DataTrigger Binding="{Binding BarnFindState, Converter={StaticResource A_Converter_BarnFindStateIsSpawnedOrLater}}"
                         Value="{StaticResource A_Boolean_False}">
                <Setter Property="Text"
                        Value="{local:Loc BarnFind.IDS_Unknown}" />
            </DataTrigger>
            <DataTrigger Binding="{Binding DiscoveryState, Converter={StaticResource A_Converter_TreasureCar_IsCarHidden}}"
                         Value="{StaticResource A_Boolean_True}">
                <Setter Property="Text"
                        Value="{local:Loc SeeItDriveIt.IDS_TreasureCar_Vehicle}" />
            </DataTrigger>
            <DataTrigger Binding="{Binding Path=(Selector.IsSelected), RelativeSource={RelativeSource FindAncestor, AncestorType=ListBoxItem}}" Value="True">
                <Setter Property="AutoScroll.AllowScrolling" Value="True"/>
                <Setter Property="TextTrimming" Value="None" />
            </DataTrigger>
            <DataTrigger Binding="{Binding Path=(local:BindingProxy.A), RelativeSource={RelativeSource FindAncestor, AncestorType=WrapListBox}, FallbackValue={x:Null}}" Value="{StaticResource A_Boolean_True}">
                <Setter Property="AutoScroll.AllowScrolling" Value="True"/>
                <Setter Property="TextTrimming" Value="None" />
            </DataTrigger>
        </Style.Triggers>
    </Style>

    <Color x:Key="A_Color_BarnFindCar_Silhouette">#FF212121</Color>
    <Color x:Key="A_Color_TreasureCar_Silhouette">#FF000000</Color>
    <local:FZMaterialPreset x:Key="A_FZMaterialPreset_BarnFindCar_Default" />

    <local:MappingConverter x:Key="A_Converter_BarnFindThumbnailVisibilityFromState"
                            Default="Visible">
        <local:MappingConverterEntry Key="{x:Static local:BarnFindStateEnum.Hidden}" Value="Hidden" />
        <local:MappingConverterEntry Key="{x:Static local:BarnFindStateEnum.Spawned}" Value="Hidden" />
        <local:MappingConverterEntry Key="{x:Static local:BarnFindStateEnum.DiscoveredByDrone}" Value="Hidden" />
        <local:MappingConverterEntry Key="{x:Static local:BarnFindStateEnum.DiscoveredNotAvailable}" Value="Hidden" />
    </local:MappingConverter>
    <local:MappingConverter x:Key="A_Converter_BarnFindThumbnailColorFromState"
                            Default="#FFFFFF">
        <local:MappingConverterEntry Key="{x:Static local:BarnFindStateEnum.Discovered}" Value="{StaticResource A_Color_BarnFindCar_Silhouette}" />
        <local:MappingConverterEntry Key="{x:Static local:BarnFindStateEnum.DiscoveredByDrone}" Value="{StaticResource A_Color_BarnFindCar_Silhouette}" />
        <local:MappingConverterEntry Key="{x:Static local:BarnFindStateEnum.Restored}" Value="{StaticResource A_Color_BarnFindCar_Silhouette}" />
    </local:MappingConverter>

    <local:MappingConverter x:Key="A_Converter_BarnFindOverlayIconVisibilityFromState"
                            Default="Visible">
        <local:MappingConverterEntry Key="{x:Static local:BarnFindStateEnum.Discovered}" Value="Hidden" />
        <local:MappingConverterEntry Key="{x:Static local:BarnFindStateEnum.Restored}" Value="Hidden" />
        <local:MappingConverterEntry Key="{x:Static local:BarnFindStateEnum.Collected}" Value="Hidden" />
    </local:MappingConverter>

    <local:MappingConverter x:Key="A_Converter_BarnFindThumnailPresetFromState"
                            Default="{StaticResource A_FZMaterialPreset_AlphaOnly}">
        <local:MappingConverterEntry Key="{x:Static local:BarnFindStateEnum.Collected}" Value="{StaticResource A_FZMaterialPreset_BarnFindCar_Default}" />
    </local:MappingConverter>

    <local:MappingConverter x:Key="A_Converter_BarnFindAllowCustomOverlayIconBooleanFromState"
                            Default="{StaticResource A_Boolean_False}">
        <local:MappingConverterEntry Key="{x:Static local:BarnFindStateEnum.DiscoveredNotAvailable}" Value="{StaticResource A_Boolean_True}" />
    </local:MappingConverter>

    <System:String x:Key="A_String_BarnFindOverlayIcon_Default">/ForzaUI;component/Textures/Data_Bound/UI_Symbols/BarnFind_Big.png</System:String>
    <local:MappingConverter x:Key="A_Converter_BarnFindOverlayIconImageSourceFromOrdinal"
                            Default="{StaticResource A_String_BarnFindOverlayIcon_Default}">
    </local:MappingConverter>

    <Style x:Key="A_Style_FZMaterial_BarnFindOverlayIcon"
        TargetType="{x:Type local:FZMaterial}">
        <Setter Property="Color" Value="{StaticResource A_Color_BarnFindCar_Silhouette}" />
        <Setter Property="ImageSourceNoPreload" Value="{StaticResource A_String_BarnFindOverlayIcon_Default}" />
        <Setter Property="Preset" Value="{StaticResource A_FZMaterialPreset_AlphaOnly}" />
        <Setter Property="Margin" Value="0,20,0,0" />
        <Setter Property="Stretch" Value="Uniform" />
        <Setter Property="Visibility" Value="{Binding BarnFindState, Converter={StaticResource A_Converter_BarnFindOverlayIconVisibilityFromState}}" />
        <Style.Triggers>
            <DataTrigger Binding="{Binding BarnFindState, Converter={StaticResource A_Converter_BarnFindAllowCustomOverlayIconBooleanFromState}}" Value="{StaticResource A_Boolean_True}">
                <Setter Property="ImageSourceNoPreload" Value="{Binding ModelId, Converter={StaticResource A_Converter_BarnFindOverlayIconImageSourceFromOrdinal}}"/>
            </DataTrigger>
        </Style.Triggers>
    </Style>

    <Style x:Key="A_Style_FrameworkElement_CarSelectItemForeground"
           TargetType="FrameworkElement">
        <Setter Property="VerticalAlignment" Value="Bottom" />
        <Setter Property="HorizontalAlignment" Value="Center" />
        <Setter Property="Width" Value="328" />
        <Setter Property="Height" Value="328" />
        <Style.Triggers>
            <!-- this is only used by barn finds.  Does barn finds have fake items? -->
            <DataTrigger Binding="{Binding IsFakeCarRecord}" Value="True">
                <Setter Property="Margin" Value="0,0,0,10"/>
                <Setter Property="Width" Value="322"/>
                <Setter Property="Height" Value="194"/>
            </DataTrigger>
        </Style.Triggers>
    </Style>


    <Double x:Key="A_Height_StatusIconContainer">30</Double>
    <Double x:Key="A_Height_BarnFindStatusIconContainer">40</Double>


    <local:MappingConverter x:Key="A_Converter_RarityToColor_CarSelectRarityStroke" Default="#FF969696" CheckEnumKey="XAMLRarity">
        <local:MappingConverterEntry Key="{x:Static local:XAMLRarity.Common}" Value="{StaticResource A_Color_Rarity_Common}" />
        <local:MappingConverterEntry Key="{x:Static local:XAMLRarity.Rare}" Value="{StaticResource A_Color_Rarity_Rare}" />
        <local:MappingConverterEntry Key="{x:Static local:XAMLRarity.Epic}" Value="{StaticResource A_Color_Rarity_Epic}" />
        <local:MappingConverterEntry Key="{x:Static local:XAMLRarity.Legendary}" Value="{StaticResource A_Color_Rarity_Legendary}" />
        <local:MappingConverterEntry Key="{x:Static local:XAMLRarity.HorizonEdition}" Value="#FFFFFFFF" />
        <local:MappingConverterEntry Key="{x:Static local:XAMLRarity.BarnFind}" Value="{StaticResource A_Color_Rarity_Legendary}" />
        <local:MappingConverterEntry Key="{x:Static local:XAMLRarity.TreasureCar}" Value="{StaticResource A_Color_Rarity_Legendary}" />
    </local:MappingConverter>

    <local:MappingConverter x:Key="A_Converter_CollapsedIfValid" Default="{x:Static Visibility.Collapsed}" />
    <local:MappingConverter x:Key="A_Converter_HiddenIfValid" Default="{x:Static Visibility.Hidden}" />
    <local:MappingConverter x:Key="A_Converter_VisibleIfValid" Default="{x:Static Visibility.Visible}" />

    <local:MappingConverter x:Key="A_Converter_ShouldRarityUseItalic" Default="False">
        <local:MappingConverterEntry Key="{x:Static local:XAMLRarity.HorizonEdition}" Value="True" />
    </local:MappingConverter>

    <Style TargetType="FZTextBlock"
        x:Key="A_Style_FZTextBlock_CarSelectCarouselItem_RarityText"
        BasedOn="{StaticResource A_Style_FZTextBlock_CarSelectCarouseItem_StatusText}">
        <Setter Property="Color" Value="{Binding Rarity, Converter={StaticResource A_Converter_CarRarityToTextColor}}" />
        <Setter Property="VerticalAlignment" Value="Center" />
        <Style.Triggers>
            <DataTrigger Binding="{Binding Rarity, Converter={StaticResource A_Converter_ShouldRarityUseItalic}}" Value="True">
                <Setter Property="Height" Value="auto"/>
                <Setter Property="RenderTransform" Value="{StaticResource A_Transform_Italic}"/>
            </DataTrigger>
        </Style.Triggers>
    </Style>

    <Int32 x:Key="H_StockTyre">0</Int32>
    <Int32 x:Key="H_StreetTyre">1</Int32>
    <Int32 x:Key="H_SportTyre">2</Int32>
    <Int32 x:Key="H_SemiSlickTyre">3</Int32>
    <Int32 x:Key="H_HorizonSemiSlickTyre">4</Int32>
    <Int32 x:Key="H_RallyTyre">5</Int32>
    <Int32 x:Key="H_SlickTyre">6</Int32>
    <Int32 x:Key="H_OffroadTyre">7</Int32>
    <Int32 x:Key="H_SnowTyre">8</Int32>
    <Int32 x:Key="H_DragTyre">9</Int32>
    <Int32 x:Key="H_VintageTyre">10</Int32>
    <Int32 x:Key="H_VintageRaceTyre">11</Int32>
    <Int32 x:Key="H_VintageWhitewallTyre">12</Int32>
    <Int32 x:Key="H_DriftTyre">15</Int32>

    <Int32 x:Key="H_StockSpring">0</Int32>
    <Int32 x:Key="H_StreetSpring">1</Int32>
    <Int32 x:Key="H_SportSpring">2</Int32>
    <Int32 x:Key="H_RaceSpring">3</Int32>
    <Int32 x:Key="H_RallySpring">4</Int32>
    <Int32 x:Key="H_DriftSpring">5</Int32>

    <MappingConverter x:Key="PART_H_Converter_TyreToShortText" Default="">
        <MappingConverterEntry Key="{StaticResource H_StockTyre}" Value="{Loc CarFlow.IDS_StockTyresShort}"/>
        <MappingConverterEntry Key="{StaticResource H_StreetTyre}" Value="{Loc CarFlow.IDS_StreetTyresShort}"/>
        <MappingConverterEntry Key="{StaticResource H_SportTyre}" Value="{Loc CarFlow.IDS_SportTyresShort}"/>
        <MappingConverterEntry Key="{StaticResource H_SemiSlickTyre}" Value="{Loc CarFlow.IDS_SemiSlickTyresShort}"/>
        <MappingConverterEntry Key="{StaticResource H_HorizonSemiSlickTyre}" Value="{Loc CarFlow.IDS_SemiSlickTyresShort}"/>
        <MappingConverterEntry Key="{StaticResource H_RallyTyre}" Value="{Loc CarFlow.IDS_RallyTyresShort}"/>
        <MappingConverterEntry Key="{StaticResource H_SlickTyre}" Value="{Loc CarFlow.IDS_SlickTyresShort}"/>
        <MappingConverterEntry Key="{StaticResource H_OffroadTyre}" Value="{Loc CarFlow.IDS_OffroadTyresShort}"/>
        <MappingConverterEntry Key="{StaticResource H_SnowTyre}" Value="{Loc CarFlow.IDS_SnowTyresShort}"/>
        <MappingConverterEntry Key="{StaticResource H_DragTyre}" Value="{Loc CarFlow.IDS_DragTyresShort}"/>
        <MappingConverterEntry Key="{StaticResource H_VintageTyre}" Value="{Loc CarFlow.IDS_VintageTyresShort}"/>
        <MappingConverterEntry Key="{StaticResource H_VintageRaceTyre}" Value="{Loc CarFlow.IDS_VintageRaceTyresShort}"/>
        <MappingConverterEntry Key="{StaticResource H_VintageWhitewallTyre}" Value="{Loc CarFlow.IDS_VintageTyresShort}"/>
        <MappingConverterEntry Key="{StaticResource H_DriftTyre}" Value="{Loc CarFlow.IDS_DriftTyresShort}"/>
    </MappingConverter>

    <MappingConverter x:Key="H_Converter_SuspensionToShortText" Default="">
        <MappingConverterEntry Key="{StaticResource H_StockSpring}" Value="{Loc CarFlow.IDS_StockSpringShort}"/>
        <MappingConverterEntry Key="{StaticResource H_StreetSpring}" Value="{Loc CarFlow.IDS_StreetSpringShort}"/>
        <MappingConverterEntry Key="{StaticResource H_SportSpring}" Value="{Loc CarFlow.IDS_SportSpringShort}"/>
        <MappingConverterEntry Key="{StaticResource H_RaceSpring}" Value="{Loc CarFlow.IDS_RaceSpringShort}"/>
        <MappingConverterEntry Key="{StaticResource H_RallySpring}" Value="{Loc CarFlow.IDS_RallySpringShort}"/>
        <MappingConverterEntry Key="{StaticResource H_DriftSpring}" Value="{Loc CarFlow.IDS_DriftSpringShort}"/>
    </MappingConverter>

    <MappingConverter x:Key="H_Converter_TyreLevelToText" Default="">
        <MappingConverterEntry Key="{StaticResource H_StreetTyre}" Value="{Loc CarFlow.IDS_StreetTyres}"/>
        <MappingConverterEntry Key="{StaticResource H_SportTyre}" Value="{Loc CarFlow.IDS_SportTyres}"/>
        <MappingConverterEntry Key="{StaticResource H_SemiSlickTyre}" Value="{Loc CarFlow.IDS_SemiSlickTyres}"/>
        <MappingConverterEntry Key="{StaticResource H_HorizonSemiSlickTyre}" Value="{Loc CarFlow.IDS_HorizonSemiSlickTyres}"/>
        <MappingConverterEntry Key="{StaticResource H_RallyTyre}" Value="{Loc CarFlow.IDS_RallyTyres}"/>
        <MappingConverterEntry Key="{StaticResource H_SlickTyre}" Value="{Loc CarFlow.IDS_SlickTyres}"/>
        <MappingConverterEntry Key="{StaticResource H_OffroadTyre}" Value="{Loc CarFlow.IDS_OffroadTyres}"/>
        <MappingConverterEntry Key="{StaticResource H_SnowTyre}" Value="{Loc CarFlow.IDS_SnowTyres}"/>
        <MappingConverterEntry Key="{StaticResource H_DragTyre}" Value="{Loc CarFlow.IDS_DragTyres}"/>
        <MappingConverterEntry Key="{StaticResource H_VintageTyre}" Value="{Loc CarFlow.IDS_VintageTyres}"/>
        <MappingConverterEntry Key="{StaticResource H_VintageRaceTyre}" Value="{Loc CarFlow.IDS_VintageRaceTyres}"/>
        <MappingConverterEntry Key="{StaticResource H_VintageWhitewallTyre}" Value="{Loc CarFlow.IDS_VintageWhiteWallTyres}"/>
        <MappingConverterEntry Key="{StaticResource H_DriftTyre}" Value="{Loc CarFlow.IDS_DriftTyres}"/>
    </MappingConverter>

    <MappingConverter x:Key="H_Converter_TyreLevelToIcon" Default="">
        <MappingConverterEntry Key="{StaticResource H_StreetTyre}" Value="game:\media\UI\Textures\Data_Bound\ui_symbols\tyres_street.png"/>
        <MappingConverterEntry Key="{StaticResource H_SportTyre}" Value="game:\media\UI\Textures\Data_Bound\ui_symbols\tyres_sport.png"/>
        <MappingConverterEntry Key="{StaticResource H_SemiSlickTyre}" Value="game:\media\UI\Textures\Data_Bound\ui_symbols\tyres_semi-slick.png"/>
        <MappingConverterEntry Key="{StaticResource H_HorizonSemiSlickTyre}" Value="game:\media\UI\Textures\Data_Bound\ui_symbols\tyres_semi-slick.png"/>
        <MappingConverterEntry Key="{StaticResource H_RallyTyre}" Value="game:\media\UI\Textures\Data_Bound\ui_symbols\tyres_rally.png"/>
        <MappingConverterEntry Key="{StaticResource H_SlickTyre}" Value="game:\media\UI\Textures\Data_Bound\ui_symbols\tyres_slick.png"/>
        <MappingConverterEntry Key="{StaticResource H_OffroadTyre}" Value="game:\media\UI\Textures\Data_Bound\ui_symbols\tyres_offroad.png"/>
        <MappingConverterEntry Key="{StaticResource H_SnowTyre}" Value="game:\media\UI\Textures\Data_Bound\ui_symbols\tyres_snow.png"/>
        <MappingConverterEntry Key="{StaticResource H_DragTyre}" Value="game:\media\UI\Textures\Data_Bound\ui_symbols\tyres_drag.png"/>
        <MappingConverterEntry Key="{StaticResource H_VintageTyre}" Value="game:\media\UI\Textures\Data_Bound\ui_symbols\tyres_vintage.png"/>
        <MappingConverterEntry Key="{StaticResource H_VintageRaceTyre}" Value="game:\media\UI\Textures\Data_Bound\ui_symbols\tyres_vintage_race.png"/>
        <MappingConverterEntry Key="{StaticResource H_VintageWhitewallTyre}" Value="game:\media\UI\Textures\Data_Bound\ui_symbols\tyres_vintage_whitewall.png"/>
        <MappingConverterEntry Key="{StaticResource H_DriftTyre}" Value="game:\media\UI\Textures\Data_Bound\ui_symbols\tyres_drift.png"/>
    </MappingConverter>

    <MappingConverter x:Key="H_Converter_TyreLevelToIconVisibility" Default="Collapsed">
        <MappingConverterEntry Key="{StaticResource H_StreetTyre}" Value="Visible"/>
        <MappingConverterEntry Key="{StaticResource H_SportTyre}" Value="Visible"/>
        <MappingConverterEntry Key="{StaticResource H_SemiSlickTyre}" Value="Visible"/>
        <MappingConverterEntry Key="{StaticResource H_HorizonSemiSlickTyre}" Value="Visible"/>
        <MappingConverterEntry Key="{StaticResource H_RallyTyre}" Value="Visible"/>
        <MappingConverterEntry Key="{StaticResource H_SlickTyre}" Value="Visible"/>
        <MappingConverterEntry Key="{StaticResource H_OffroadTyre}" Value="Visible"/>
        <MappingConverterEntry Key="{StaticResource H_SnowTyre}" Value="Visible"/>
        <MappingConverterEntry Key="{StaticResource H_DragTyre}" Value="Visible"/>
        <MappingConverterEntry Key="{StaticResource H_VintageTyre}" Value="Visible"/>
        <MappingConverterEntry Key="{StaticResource H_VintageRaceTyre}" Value="Visible"/>
        <MappingConverterEntry Key="{StaticResource H_VintageWhitewallTyre}" Value="Visible"/>
        <MappingConverterEntry Key="{StaticResource H_DriftTyre}" Value="Visible"/>
    </MappingConverter>

    <Double x:Key="H_Double_Shift_Amount_Min">-310</Double>
    <MultiConverter x:Key="H_Converter_FullscreenCarousel_OpacityShifter_Min">
        <MultiConverterEntry Converter="{Clamp Max=0, Min={StaticResource H_Double_Shift_Amount_Min}}"/>
        <MultiConverterEntry Converter="{MathOperationConverter Operation=Divide}" Parameter="{StaticResource H_Double_Shift_Amount_Min}" TargetType="Double"/>
        <MultiConverterEntry Converter="{Clamp Max=0.6, Min=0}"/>
    </MultiConverter>

    <Double x:Key="hfjdsklahfds">200</Double>
    <Double x:Key="H_Double_Shift_Amount_Max">-310</Double>
    <MultiConverter x:Key="H_Converter_FullscreenCarousel_OpacityShifter_Max">
        <MultiConverterEntry Converter="{Clamp Min=1050, Max=1250}"/>
        <MultiConverterEntry Converter="{LinearTransformConverter Add=-1050}"/>
        <MultiConverterEntry Converter="{MathOperationConverter Operation=Divide}" Parameter="{StaticResource hfjdsklahfds}" TargetType="Double"/>
        <MultiConverterEntry Converter="{Clamp Max=0.6, Min=0}"/>
    </MultiConverter>

    <Style x:Key="A_Style_StackPanel_Rarity_Visibility"
           TargetType="StackPanel">
        <Setter Property="Visibility" Value="{Binding IsFakeCarRecord, Converter={StaticResource A_FZBooleanToVisibilityConverter_Inverse}, FallbackValue=Collapsed}"/>
        <Style.Triggers>
            <MultiDataTrigger>
                <MultiDataTrigger.Conditions>
                    <Condition Binding="{Binding IsBarnFindsScene, RelativeSource={RelativeSource AncestorType=Page}}" Value="{StaticResource A_Boolean_True}"/>
                    <Condition Binding="{Binding BarnFindState, Converter={StaticResource A_Converter_BarnFindStateIsNotCollected}}" Value="{StaticResource A_Boolean_True}"/>
                </MultiDataTrigger.Conditions>
                <Setter Property="Visibility" Value="Collapsed"/>
            </MultiDataTrigger>
            <DataTrigger Binding="{Binding IsHorizonPromoScene, RelativeSource={RelativeSource AncestorType=Page}}" Value="{StaticResource A_Boolean_True}">
                <Setter Property="Visibility" Value="Collapsed"/>
            </DataTrigger>
            <MultiDataTrigger>
                <MultiDataTrigger.Conditions>
                    <Condition Binding="{Binding IsTreasureCarScene, RelativeSource={RelativeSource AncestorType=Page}}" Value="{StaticResource A_Boolean_True}"/>
                    <Condition Binding="{Binding DiscoveryState, Converter={StaticResource A_Converter_TreasureCar_Show_DiscoveryState}}" Value="{StaticResource A_Boolean_True}"/>
                </MultiDataTrigger.Conditions>
                <Setter Property="Visibility" Value="Collapsed"/>
            </MultiDataTrigger>
        </Style.Triggers>
    </Style>

    <MappingConverter x:Key="A_Converter_TreasureCar_DiscoveryState_to_Visibility" Default="{x:Static Visibility.Visible}">
        <MappingConverterEntry Key="{x:Static TreasureCarState.Hidden}" Value="{x:Static Visibility.Collapsed}"/>
        <MappingConverterEntry Key="{x:Static TreasureCarState.Invalid}" Value="{x:Static Visibility.Collapsed}"/>
    </MappingConverter>

    <MappingConverter x:Key="A_Converter_TreasureCarOverlayIconVisibilityFromState" Default="{x:Static Visibility.Hidden}">
        <MappingConverterEntry Key="{x:Static TreasureCarState.Hidden}" Value="{x:Static Visibility.Visible}" />
        <MappingConverterEntry Key="{x:Static TreasureCarState.Invalid}" Value="{x:Static Visibility.Visible}" />
    </MappingConverter>

    <Style x:Key="A_Style_FZMaterial_TreasureCarOverlayIcon" TargetType="{x:Type local:FZMaterial}">
        <Setter Property="Color" Value="{StaticResource A_Color_TreasureCar_Silhouette}" />
        <Setter Property="ImageSource" Value="/ForzaUI;component/Textures/Data_Bound/SeeItDriveIt/TreasureCars/UnknownTreasureCarIcon.png" />
        <Setter Property="Margin" Value="0,50,0,0" />
        <Setter Property="Stretch" Value="Uniform" />
        <Setter Property="Width" Value="100" />
        <Setter Property="Height" Value="110" />
    </Style>

    <Style x:Key="A_Style_TreasureCar_DiscoveryStateBox" TargetType="Control">
        <Setter Property="Visibility" Value="Collapsed"/>
        <Setter Property="HorizontalAlignment" Value="Center"/>
        <Setter Property="VerticalAlignment" Value="Bottom"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="Control">
                    <ControlTemplate.Resources>
                        <Style x:Key="A_Style_FZTextBlock_TreasureCar_State" TargetType="FZTextBlock">
                            <Setter Property="Color" Value="{StaticResource H_Color_Primary_White}"/>
                            <Setter Property="VerticalAlignment" Value="Center"/>
                            <Setter Property="CapHeight" Value="17"/>
                            <Setter Property="FontFamily" Value="Horizon_A"/>
                            <Setter Property="AutoScroll" Value="{StaticResource A_AutoScrollSettings_CarName}"/>
                            <Setter Property="Stretch" Value="None"/>
                            <Setter Property="TextTrimming" Value="CharacterEllipsis"/>
                            <Style.Triggers>
                                <DataTrigger Binding="{Binding Path=(Selector.IsSelected), RelativeSource={RelativeSource FindAncestor, AncestorType=ListBoxItem}}" Value="True">
                                    <Setter Property="AutoScroll.AllowScrolling" Value="True"/>
                                    <Setter Property="TextTrimming" Value="None" />
                                </DataTrigger>
                            </Style.Triggers>
                        </Style>
                    </ControlTemplate.Resources>
                    <FZMaterial x:Name="StateBoxBackground"
                                Height="{StaticResource A_Height_StatusIconContainer}"
                                Color="{StaticResource H_Color_Primary_Black}"
                                Preset="{StaticResource H_Roundtangle_Outer_2px}"
                                MinWidth="197"
                                MaxWidth="325">
                        <Grid Margin="8,0"
                              Height="30"
                              HorizontalAlignment="Center">
                            <DockPanel>
                                <FZMaterial x:Name="MagnifyingGlassIcon"
                                            ImageSource="/ForzaUI;component/Textures/Data_Bound/SeeItDriveIt/TreasureCars/MagnifyingGlassIcon.png"
                                            Height="25"
                                            Width="25"
                                            DockPanel.Dock="Left"/>
                                <Decorator Width="8"/>
                                <FZTextBlock x:Name="StateText"
                                             Style="{StaticResource A_Style_FZTextBlock_TreasureCar_State}"/>
                            </DockPanel>
                        </Grid>
                    </FZMaterial>
                    <ControlTemplate.Triggers>
                        <MultiDataTrigger>
                            <MultiDataTrigger.Conditions>
                                <Condition Binding="{Binding IsTreasureCarScene, RelativeSource={RelativeSource AncestorType=Page}}" Value="{StaticResource A_Boolean_True}"/>
                                <Condition Binding="{Binding DiscoveryState}" Value="{x:Static TreasureCarState.Spotted}"/>
                            </MultiDataTrigger.Conditions>
                            <Setter TargetName="StateBoxBackground" Property="Color" Value="{StaticResource H_Color_Primary_Black}"/>
                            <Setter TargetName="StateText" Property="Text" Value="{Binding Source={Loc SeeItDriveIt.IDS_TreasureCar_Discovery_Spotted}, Converter={StaticResource A_StringToUpper}}"/>
                            <Setter Property="Visibility" Value="Visible"/>
                        </MultiDataTrigger>
                        <MultiDataTrigger>
                            <MultiDataTrigger.Conditions>
                                <Condition Binding="{Binding IsTreasureCarScene, RelativeSource={RelativeSource AncestorType=Page}}" Value="{StaticResource A_Boolean_True}"/>
                                <Condition Binding="{Binding DiscoveryState}" Value="{x:Static TreasureCarState.Discovered}"/>
                            </MultiDataTrigger.Conditions>
                            <Setter TargetName="StateBoxBackground" Property="Color" Value="{StaticResource PART_A_Color_ProgressionThread_discovery}"/>
                            <Setter TargetName="StateText" Property="Text" Value="{Binding Source={Loc SeeItDriveIt.IDS_TreasureCar_Discovery_CarFound}, Converter={StaticResource A_StringToUpper}}"/>
                            <Setter TargetName="MagnifyingGlassIcon" Property="Visibility" Value="{x:Static Visibility.Collapsed}"/>
                            <Setter Property="Visibility" Value="Visible"/>
                        </MultiDataTrigger>
                    </ControlTemplate.Triggers>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>

    <Style x:Key="A_Style_TreasureCar_DiscoveryIcon" TargetType="Control">
        <Setter Property="Visibility" Value="Collapsed"/>
        <Setter Property="HorizontalAlignment" Value="Left"/>
        <Setter Property="VerticalAlignment" Value="Bottom"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="Control">
                    <FZMaterial x:Name="DiscoveryStateIcon"
                                Width="50"
                                Height="50"
                                Margin="0,0,0,40"/>
                    <ControlTemplate.Triggers>
                        <MultiDataTrigger>
                            <MultiDataTrigger.Conditions>
                                <Condition Binding="{Binding IsTreasureCarScene, RelativeSource={RelativeSource AncestorType=Page}}" Value="{StaticResource A_Boolean_True}"/>
                                <Condition Binding="{Binding DiscoveryState}" Value="{x:Static TreasureCarState.Discovered}"/>
                            </MultiDataTrigger.Conditions>
                            <Setter Property="Visibility" Value="Visible"/>
                            <Setter TargetName="DiscoveryStateIcon" Property="ImageSource" Value="/ForzaUI;component/Textures/Data_Bound/SeeItDriveIt/TreasureCars/FoundTreasureCarIcon.png"/>
                        </MultiDataTrigger>
                        <MultiDataTrigger>
                            <MultiDataTrigger.Conditions>
                                <Condition Binding="{Binding IsTreasureCarScene, RelativeSource={RelativeSource AncestorType=Page}}" Value="{StaticResource A_Boolean_True}"/>
                                <Condition Binding="{Binding DiscoveryState}" Value="{x:Static TreasureCarState.Collected}"/>
                            </MultiDataTrigger.Conditions>
                            <Setter Property="Visibility" Value="Visible"/>
                            <Setter TargetName="DiscoveryStateIcon" Property="ImageSource" Value="/ForzaUI;component/Textures/Data_Bound/SeeItDriveIt/TreasureCars/CollectedTreasureCarIcon.png"/>
                        </MultiDataTrigger>
                    </ControlTemplate.Triggers>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>

    <Style x:Key="A_Style_FrameworkElement_CarSelectThumbnailHideSeek"
           TargetType="FZMaterial">
        <Setter Property="Width" Value="300" />
        <Setter Property="Height" Value="40" />
        <Setter Property="Margin" Value="0,0,0,15" />
        <Setter Property="VerticalAlignment" Value="Bottom" />
        <Style.Triggers>
            <DataTrigger Binding="{Binding IsFakeCarRecord}" Value="True">
                <Setter Property="Margin" Value="0,0,0,10"/>
                <Setter Property="Width" Value="322"/>
                <Setter Property="Height" Value="194"/>
                <Setter Property="Stretch" Value="None" />
            </DataTrigger>
        </Style.Triggers>
    </Style>

    <local:MappingConverter x:Key="A_Converter_RarityToMaterial_CarSelectRarity" Default="" CheckEnumKey="XAMLRarity">
        <local:MappingConverterEntry Key="{x:Static local:XAMLRarity.Common}" Value="" />
        <local:MappingConverterEntry Key="{x:Static local:XAMLRarity.Rare}" Value="" />
        <local:MappingConverterEntry Key="{x:Static local:XAMLRarity.Epic}" Value="" />
        <local:MappingConverterEntry Key="{x:Static local:XAMLRarity.Legendary}" Value="" />
        <local:MappingConverterEntry Key="{x:Static local:XAMLRarity.HorizonEdition}" Value="/ForzaUI;component/Textures/Data_Bound/Anthem/CarSelect/Forza_Edition_BG.png" />
        <local:MappingConverterEntry Key="{x:Static local:XAMLRarity.BarnFind}" Value="" />
        <local:MappingConverterEntry Key="{x:Static local:XAMLRarity.TreasureCar}" Value="" />
    </local:MappingConverter>

    <DataTemplate x:Key="A_DataTemplate_CarSelectCarouselItem">
        <Grid>
            <local:FZMaterial x:Name="RarityBackground"
                   Margin="8,8,8,40"
                   Stretch="Fill"
                   Visibility="Hidden"/>
            <Grid Margin="8,8,8,38"
                  Width="308"
                  Height="172"
                  VerticalAlignment="Bottom"
                  HorizontalAlignment="Center">
                <local:FZMaterial ImageSource="{Binding LocalPlayerIsHider, Converter={StaticResource A_Converter_HideSeekCarBackgroundTeam}, RelativeSource={RelativeSource AncestorType=Page}}"
                                  Style="{StaticResource A_Style_FrameworkElement_CarSelectThumbnailHideSeek}"
                                  Visibility="{Binding SceneEnum, FallbackValue=Visible, Converter={StaticResource A_Converter_VisibleWhenHideSeek}, RelativeSource={RelativeSource AncestorType=Page}}"/>
                <local:FZMaterial ImageSource="{Binding BigThumbnail}"
                                  Stretch="Uniform"
                                  Visibility="{Binding HideDefaultThumbnail, FallbackValue=Visible, Converter={StaticResource A_FZBooleanToVisibilityConverter_Inverse}, RelativeSource={RelativeSource AncestorType=Page}}"
                                  x:Name="Icon" />

                <Grid x:Name="barn_find_icons"
                     Visibility="{Binding IsBarnFindsScene, FallbackValue=Collapsed, Converter={StaticResource A_FZBooleanToVisibilityConverter}, RelativeSource={RelativeSource AncestorType=Page}}">
                    <local:FZMaterial ImageSource="{Binding BigThumbnail}"
                                      Preset="{Binding BarnFindState, Converter={StaticResource A_Converter_BarnFindThumnailPresetFromState}}"
                                      Stretch="Uniform"
                                      x:Name="BarnThumbnail"
                                      Visibility="{Binding BarnFindState, Converter={StaticResource A_Converter_BarnFindThumbnailVisibilityFromState}}"
                                      Color="{Binding BarnFindState, Converter={StaticResource A_Converter_BarnFindThumbnailColorFromState}}" />
                    <local:FZMaterial Style="{StaticResource A_Style_FZMaterial_BarnFindOverlayIcon}"
                                      x:Name="BarnOverlayIcon" />
                </Grid>

                <Grid x:Name="treasure_cars_icons"
                     Visibility="{Binding IsTreasureCarScene, FallbackValue=Collapsed, Converter={StaticResource A_FZBooleanToVisibilityConverter}, RelativeSource={RelativeSource AncestorType=Page}}">
                    <Grid Visibility="{Binding DiscoveryState, Converter={StaticResource A_Converter_TreasureCar_DiscoveryState_to_Visibility}}">
                        <FZMaterial x:Name="TreasureCarThumbnail"
                                    ImageSource="{Binding BigThumbnail}"
                                    Stretch="Uniform"
                                    Visibility="{Binding Downloaded, RelativeSource={RelativeSource Self}, Converter={StaticResource A_FZBooleanToVisibilityConverter}}"/>
                    </Grid>
                    <Grid Visibility="{Binding DiscoveryState, Converter={StaticResource A_Converter_TreasureCarOverlayIconVisibilityFromState}}">
                        <FZMaterial x:Name="TreasureCarIcon"
                                    Style="{StaticResource A_Style_FZMaterial_TreasureCarOverlayIcon}"
                                    Visibility="{Binding Downloaded, RelativeSource={RelativeSource Self}, Converter={StaticResource A_FZBooleanToVisibilityConverter}}" />
                    </Grid>
                </Grid>
            </Grid>
            <Grid x:Name="ItemContentsContainer"
              local:ManualPassthroughProperty.Input="{Binding (local:MultiStringFormatter.Output), RelativeSource={RelativeSource Self}}"
              local:ManualPassthroughProperty.Allowed="{Binding IsKeyboardFocusWithin, RelativeSource={RelativeSource AncestorType={x:Type ListBoxItem}}}"
              local:ScreenReader.Line="{Binding (local:ManualPassthroughProperty.Output), RelativeSource={RelativeSource Self}}"
              local:ScreenReader.LineType="SelectedItem"
              local:ScreenReader.Event="OnChange"
              local:ScreenReader.ControlType="Button"
              local:ScreenReader.SelectedNumber="{Binding (local:CollectionIndexer.Index), Converter={StaticResource A_IndexToNumberConverter}, FallbackValue=-1}"
              local:ScreenReader.SelectedCount="{Binding Items.Count, RelativeSource={RelativeSource AncestorType={x:Type Selector}}}"
              Margin="8">
                <Grid VerticalAlignment="Top" Margin="-4,-4,-4,0">
                    <local:FZMaterial x:Name="ItemTileBackground"
                                      Style="{StaticResource A_Style_FZMaterial_CarSelectCarouselItem_ItemTitleBackground}"
                                      Opacity="0.5">
                    </local:FZMaterial>
                    <StackPanel Margin="8">
                        <Decorator x:Name="TitleContainer" HorizontalAlignment="Center" VerticalAlignment="Top" Margin="0,-5,0,-5" ClipToBounds="True">
                            <local:FZTextBlock x:Name="CarName" Style="{DynamicResource A_Style_FZTextBlock_CarSelectCarousel_MainTitle_Dynamic}"/>
                        </Decorator>
                        <Decorator Height="6"/>
                        <Decorator x:Name="ManufacturerContainer" HorizontalAlignment="Center" VerticalAlignment="Top" ClipToBounds="True" Margin="0,-5,0,-5"
                                 Visibility="{Binding IsFakeCarRecord, Converter={StaticResource A_FZBooleanToVisibilityConverter_Inverse}}">
                            <local:FZTextBlock x:Name="Manufacturer" Style="{StaticResource A_Style_FZTextBlock_CarSelectCarousel_Manufacturer}" />
                        </Decorator>
                    </StackPanel>
                </Grid>
                <FZMaterial Color="{StaticResource H_Color_Glass_Purple_40pc}" 
                    Margin="-4"
                    Preset="{StaticResource H_Roundtangle_Outer_3px}"
                    Visibility="{Binding IsLocked, Converter={StaticResource A_FZBooleanToVisibilityConverter}, FallbackValue=Collapsed}"/>
                <FrameworkElement x:Name="details_toggle_holder" Tag="{Binding Tag, RelativeSource={RelativeSource AncestorType=Page}}"/>
                <StackPanel VerticalAlignment="Bottom"
                            Style="{StaticResource A_Style_StackPanel_Rarity_Visibility}">
                    <Grid Margin="0,0,0,2"
                        Height="{StaticResource A_Height_StatusIconContainer}" >
                        <DockPanel x:Name="all_status"
                            HorizontalAlignment="Right">
                            <local:FZMaterial DockPanel.Dock="Right"
                                Visibility="{Binding IsCurrent, Converter={StaticResource A_FZBooleanToVisibilityConverter}, FallbackValue={x:Static Visibility.Collapsed}}"
                                MinWidth="{StaticResource A_Height_StatusIconContainer}"
                                Margin="2,0,0,0"
                                Color="{StaticResource H_Color_Primary_Green}" Preset="{Roundtangle CornerRadius=2}">
                                <local:FZMaterial x:Name="current_icon"
                                    ImageSource="/ForzaUI;component/Textures/Anthem/A_Current.png"
                                    Style="{StaticResource A_Style_FZMaterial_CarSelectCarouselItem_StatusIcon}"
                                    Margin="0" />
                            </local:FZMaterial>

                            <local:FZMaterial DockPanel.Dock="Right" x:Name="new_text"
                                                Visibility="{Binding IsNew, Converter={StaticResource A_FZBooleanToVisibilityConverter}, FallbackValue={x:Static Visibility.Collapsed}}"
                                                Color="{StaticResource H_Color_Primary_Yellow}"
                                                Preset="{StaticResource H_Roundtangle_Outer_2px}"
                                                Margin="2,0,0,0">
                                <local:FZTextBlock Text="{Binding Source={local:Loc InGameMarketplace.IDS_New}, Mode=OneWay, Converter={StaticResource A_StringToUpper}}"
                                                Style="{StaticResource A_Style_FZTextBlock_CarSelectCarouseItem_StatusText}"
                                                Margin="4,0,4,0"/>
                            </local:FZMaterial>
                            
                            <Grid Visibility="{Binding ActualWidth, RelativeSource={RelativeSource Self}, Converter={CompareConverter Value=4, LessThanOrEqual=Hidden, GreaterThanOrEqual=Visible}}">
                                <FZMaterial Color="{StaticResource H_Color_Primary_White}" Opacity="0.6" Preset="{Roundtangle CornerRadius=2}"/>
                                <StackPanel
                                    Margin="0,0,4,0"
                                    Orientation="Horizontal">

                                    <!-- texts -->

                                    <local:FZMaterial ImageSource="/ForzaUI;component/Textures/Data_Bound/UI_Symbols/BarnFind_Stopwatch.png"
                                                    Style="{StaticResource A_Style_FZMaterial_CarSelectCarouselItem_StatusIcon_BarnFindInProgress}"/>

                                    <!--StackPanel Orientation="Horizontal"
                                                Height="{StaticResource A_Height_StatusIconContainer}"
                                                Style="{StaticResource A_Style_StackPanel_Rarity_Visibility}"-->
                                        <local:FZMaterial x:Name="camera_icon" ImageSource="/ForzaUI;component/Textures/Data_Bound/Promo/Car_Collection/Carousel_CameraIcon.png"
                                                          Style="{StaticResource A_Style_FZMaterial_CarSelectCarouselItem_StatusIcon}"
                                                          Visibility="{Binding IsPhotoCaptured, Converter={StaticResource A_FZBooleanToVisibilityConverter}, FallbackValue=Collapsed}"/>
                                        <local:FZMaterial x:Name="dlc_icon" ImageSource="/ForzaUI;component/Textures/Anthem/A_DLC.png"
                                                          Style="{StaticResource A_Style_FZMaterial_CarSelectCarouselItem_StatusIcon}"
                                                          Visibility="{Binding IsDLC, Converter={StaticResource A_FZBooleanToVisibilityConverter}, FallbackValue={x:Static Visibility.Collapsed}}"/>
                                        <local:FZMaterial x:Name="star_icon" ImageSource="/ForzaUI;component/Textures/Anthem/A_Star.png"
                                                          Style="{StaticResource A_Style_FZMaterial_CarSelectCarouselItem_StatusIcon}"
                                                          Visibility="{Binding IsFavorite, Converter={StaticResource A_FZBooleanToVisibilityConverter}, FallbackValue={x:Static Visibility.Collapsed}}" />
                                        <local:FZMaterial x:Name="snow_icon" ImageSource="/ForzaUI;component/Textures/Anthem/A_SnowParts.png"
                                                          Visibility="{x:Static Visibility.Collapsed}"
                                                          Style="{StaticResource A_Style_FZMaterial_CarSelectCarouselItem_StatusIcon}" />
                                        <local:FZMaterial x:Name="tick_icon" ImageSource="/ForzaUI;component/Textures/Anthem/A_Tick.png"
                                                          Style="{StaticResource A_Style_FZMaterial_CarSelectCarouselItem_StatusIcon}"
                                                          Visibility="{Binding IsCurrentlySelected, Converter={StaticResource A_FZBooleanToVisibilityConverter}, FallbackValue={x:Static Visibility.Collapsed}}" />

                                        <local:FZMaterial x:Name="voucher_icon" ImageSource="/ForzaUI;component/Textures/Anthem/A_Voucher.png"
                                                          HorizontalAlignment="Center"
                                                          Visibility="{Binding IsVoucher, Converter={StaticResource A_FZBooleanToVisibilityConverter}, FallbackValue={x:Static Visibility.Collapsed}}"
                                                          Style="{StaticResource A_Style_FZMaterial_CarSelectCarouselItem_StatusIcon}" />

                                        <local:FZMaterial x:Name="warning_icon" Visibility="{Binding IsWarning, Converter={StaticResource A_FZBooleanToVisibilityConverter}, FallbackValue={x:Static Visibility.Collapsed}}" ImageSource="game:\Media\UI\Textures\Data_Bound\Anthem\Icons\Slow_Warning.png"
                                                          Style="{StaticResource A_Style_FZMaterial_CarSelectCarouselItem_StatusIcon}"
                                                          Color="#ffff" />

                                        <local:FZTextBlock Text="{Binding BlammoType, Converter={StaticResource A_Converter_BlammoTypeToText}}"
                                               Style="{StaticResource A_Style_FZTextBlock_CarSelectCarouseItem_StatusText}"
                                               x:Name="blammo_text"/>
                                        <local:FZTextBlock Text="{local:Loc InGameMarketplace.IDS_Free}"
                                               Style="{StaticResource A_Style_FZTextBlock_CarSelectCarouseItem_StatusText}"
                                               x:Name="free_text"/>
                                        <local:FZTextBlock Text="{local:Loc InGameMarketplace.IDS_OnSale}"
                                               Style="{StaticResource A_Style_FZTextBlock_CarSelectCarouseItem_StatusText}"
                                               x:Name="sale_text" />

                                        <local:FZTextBlock 
                                            x:Name="owned_text"
                                            Text="{Binding Source={local:Loc Upgrades_flow.IDS_Owned}, Mode=OneWay, Converter={StaticResource A_StringToUpper}}" 
                                            Visibility="{Binding IsOwned, Converter={StaticResource A_FZBooleanToVisibilityConverter}, FallbackValue={x:Static Visibility.Collapsed}}"
                                            Style="{StaticResource A_Style_FZTextBlock_CarSelectCarouseItem_StatusText}" />

                                    <!--/StackPanel-->

                                    <local:FZMaterial HorizontalAlignment="Right"
                                                VerticalAlignment="Bottom"
                                                Visibility="{Binding IsHorizonPromoScene, FallbackValue=Collapsed, Converter={StaticResource A_FZBooleanToVisibilityConverter}, RelativeSource={RelativeSource AncestorType=Page}}"
                                                Color="{StaticResource H_Color_Primary_Pink}">
                                        <StackPanel Orientation="Horizontal"
                                            Visibility="{Binding IsFakeCarRecord, Converter={StaticResource A_FZBooleanToVisibilityConverter_Inverse}, FallbackValue=Collapsed}">
                                            <local:FZMaterial ImageSource="/ForzaUI;component/Textures/Anthem/A_Garage.png"
                                                              Style="{StaticResource A_Style_FZMaterial_CarSelectCarouselItem_StatusIcon}"
                                                              Visibility="{Binding IsOwned, Converter={StaticResource A_FZBooleanToVisibilityConverter}, FallbackValue={x:Static Visibility.Collapsed}}"/>
                                            <local:FZMaterial ImageSource="/ForzaUI;component/Textures/Anthem/A_DLC.png"
                                                              Style="{StaticResource A_Style_FZMaterial_CarSelectCarouselItem_StatusIcon}"
                                                              Visibility="{Binding IsDLC, Converter={StaticResource A_FZBooleanToVisibilityConverter}, FallbackValue={x:Static Visibility.Collapsed}}"/>
                                            <local:FZMaterial ImageSource="/ForzaUI;component/Textures/Data_Bound/Promo/Car_Collection/Carousel_CameraIcon.png"
                                                              Style="{StaticResource A_Style_FZMaterial_CarSelectCarouselItem_StatusIcon}"
                                                              Visibility="{Binding IsPhotoCaptured, Converter={StaticResource A_FZBooleanToVisibilityConverter}, FallbackValue=Collapsed}"/>
                                        </StackPanel>
                                    </local:FZMaterial>
                                    
                                    <StackPanel VerticalAlignment="Bottom" ClipToBounds="True">
                                        <local:FZMaterial VerticalAlignment="Top">
                                            <local:FZMaterial.Style>
                                                <Style TargetType="local:FZMaterial">
                                                    <Setter Property="Visibility" Value="Collapsed"/>
                                                    <Setter Property="Color" Value="#C8341735"/>
                                                    <Setter Property="Height" Value="75"/>
                                                    <Style.Triggers>
                                                        <MultiDataTrigger>
                                                            <MultiDataTrigger.Conditions>
                                                                <Condition Binding="{Binding BarnFindState, Converter={StaticResource A_Converter_BarnFindStateInt64ToInt32}}"
                                                                        Value="{x:Static local:BarnFindStateEnum.Restored}"/>
                                                                <Condition Binding="{Binding IsKeyboardFocusWithin, RelativeSource={RelativeSource AncestorType={x:Type ListBoxItem}}}"
                                                                        Value="{StaticResource A_Boolean_True}"/>
                                                            </MultiDataTrigger.Conditions>
                                                            <Setter Property="Visibility" Value="Visible"/>
                                                        </MultiDataTrigger>
                                                    </Style.Triggers>
                                                </Style>
                                            </local:FZMaterial.Style>
                                            <StackPanel HorizontalAlignment="Center"
                                            Orientation="Horizontal"
                                            VerticalAlignment="Center"
                                            Height="{StaticResource A_Height_StatusIconContainer}">
                                                <StackPanel.Style>
                                                    <Style TargetType="StackPanel">
                                                        <Setter Property="Visibility" Value="{Binding IsFakeCarRecord, Converter={StaticResource A_FZBooleanToVisibilityConverter_Inverse}, FallbackValue=Collapsed}"/>
                                                    </Style>
                                                </StackPanel.Style>
                                                <local:FZTextBlock Text="{Binding Source={local:Loc InGame.IDS_Use_the}, Mode=OneWay, Converter={StaticResource A_StringToUpper}}">
                                                    <local:FZTextBlock.Style>
                                                        <Style BasedOn="{StaticResource A_Style_FZTextBlock_BarnfindReady}"
                                                           TargetType="local:FZTextBlock">
                                                            <Setter Property="Color" Value="{StaticResource H_Color_Primary_White}"/>
                                                            <Setter Property="CapHeight" Value="25"/>
                                                        </Style>
                                                    </local:FZTextBlock.Style>
                                                </local:FZTextBlock>
                                                <local:ControllerButtonControl Style="{StaticResource A_Style_ControllerButtonControl_Standalone}"
                                                                           Button="A"
                                                                           VerticalAlignment="Center" />
                                            </StackPanel>
                                        </local:FZMaterial>
                                        <local:FZMaterial VerticalAlignment="Bottom">
                                            <local:FZMaterial.Style>
                                                <Style TargetType="local:FZMaterial">
                                                    <Setter Property="Visibility" Value="Collapsed"/>
                                                    <Setter Property="Color" Value="{StaticResource H_Color_Primary_Purple}"/>
                                                    <Style.Triggers>
                                                        <DataTrigger Binding="{Binding BarnFindState, Converter={StaticResource A_Converter_BarnFindStateInt64ToInt32}}"
                                                                 Value="{x:Static local:BarnFindStateEnum.Restored}">
                                                            <Setter Property="Visibility"
                                                                Value="Visible"/>
                                                        </DataTrigger>
                                                        <DataTrigger Binding="{Binding IsKeyboardFocusWithin, RelativeSource={RelativeSource AncestorType={x:Type ListBoxItem}}}"
                                                                 Value="{StaticResource A_Boolean_True}">
                                                            <Setter Property="Color"
                                                                Value="{StaticResource H_Color_Primary_Yellow}"/>
                                                        </DataTrigger>
                                                    </Style.Triggers>
                                                </Style>
                                            </local:FZMaterial.Style>
                                            <StackPanel HorizontalAlignment="Center"
                                                Orientation="Horizontal"
                                                VerticalAlignment="Bottom"
                                                Height="{StaticResource A_Height_StatusIconContainer}"
                                                ClipToBounds="True">
                                                <StackPanel.Style>
                                                    <Style TargetType="StackPanel">
                                                        <Setter Property="Visibility" Value="{Binding IsFakeCarRecord, Converter={StaticResource A_FZBooleanToVisibilityConverter_Inverse}, FallbackValue=Collapsed}"/>
                                                    </Style>
                                                </StackPanel.Style>
                                                <local:FZTextBlock Text="{Binding Source={local:Loc BarnFind.IDS_CarState_Ready}, Mode=OneWay, Converter={StaticResource A_StringToUpper}}">
                                                    <local:FZTextBlock.Style>
                                                        <Style BasedOn="{StaticResource A_Style_FZTextBlock_BarnfindReady}"
                                                               TargetType="local:FZTextBlock">
                                                            <Setter Property="Color" Value="{StaticResource H_Color_Primary_White}"/>
                                                            <Style.Triggers>
                                                                <DataTrigger Binding="{Binding IsKeyboardFocusWithin, RelativeSource={RelativeSource AncestorType={x:Type ListBoxItem}}}"
                                                                             Value="{StaticResource A_Boolean_True}">
                                                                    <Setter Property="Color" 
                                                                            Value="{StaticResource H_Color_Primary_Black}"/>
                                                                </DataTrigger>
                                                            </Style.Triggers>
                                                        </Style>
                                                    </local:FZTextBlock.Style>
                                                </local:FZTextBlock>
                                            </StackPanel>
                                        </local:FZMaterial>
                                    </StackPanel>
                                </StackPanel>
                            </Grid>
                        </DockPanel>

                        <!--*******************************-->

                        <Grid Margin="0,0,0,-2" ClipToBounds="True" Opacity="{Binding Tag, ElementName=details_toggle_holder, Converter={LinearTransformConverter Scale=1.2, Add=-0.2}}">
                            <Grid>
                                <Grid.RenderTransform>
                                    <TranslateTransform Y="{Binding Tag, ElementName=details_toggle_holder, Converter={LinearTransformConverter Scale=-56, Add=56}}"/>
                                </Grid.RenderTransform>
                                <Grid Margin="0,0,0,2">
                                    <Grid HorizontalAlignment="Left">
                                        <StackPanel Orientation="Horizontal">
                                            <Grid x:Name="drivetrain_icon" 
                                                  Margin="0,0,2,0"
                                                  Visibility="{Binding IsTreasureCarScene, FallbackValue=Visible, Converter={StaticResource A_FZBooleanToVisibilityConverter_Inverse}, RelativeSource={RelativeSource AncestorType=Page}}">
                                                <local:FZMaterial  Preset="{StaticResource H_Roundtangle_Outer_2px}" Color="{StaticResource H_Color_Primary_White}" Opacity="0.6"/>
                                                <local:FZMaterial ImageSource="{Binding PowertrainID, Converter={StaticResource A_PowertrainConverter}, FallbackValue=/ForzaUI;component/Textures/Data_Bound/Drivetrain_Icons/Drivetrain_NULL.png}"
                                                              Stretch="Uniform"
                                                              GreedyMeasure="True"
                                                              Margin="4,0"/>
                                            </Grid>
                                            <Grid x:Name="preset_icon" Margin="0,0,2,0" Height="{StaticResource A_Height_StatusIconContainer}" Width="{StaticResource A_Height_StatusIconContainer}" Visibility="{Binding HasPreset, FallbackValue=Collapsed, Converter={FZBooleanToVisibilityConverter}}">
                                                <FZMaterial Preset="{StaticResource H_Roundtangle_Outer_2px}" Color="{StaticResource H_Color_Primary_White}" Opacity="0.6"/>
                                                <FZMaterial ImageSource="game:\Media\UI\Textures\Data_Bound\ui_symbols\car_preset.png" Color="{StaticResource H_Color_Primary_Black}"/>
                                            </Grid>
                                            <Grid x:Name="tyre_icon" Width="{StaticResource A_Height_StatusIconContainer}" Height="{StaticResource A_Height_StatusIconContainer}" Margin="0,0,2,0" Visibility="{Binding TireLevel, Converter={StaticResource H_Converter_TyreLevelToIconVisibility}, FallbackValue=Collapsed}">
                                                <local:FZMaterial Preset="{StaticResource H_Roundtangle_Outer_2px}" Color="{StaticResource H_Color_Primary_White}" Opacity="0.6"/>
                                                <local:FZMaterial Preset="{StaticResource H_Roundtangle_Outer_2px}" Color="{StaticResource H_Color_Primary_Black}"
                                                ImageSource="{Binding TireLevel, Converter={StaticResource H_Converter_TyreLevelToIcon}}"/>
                                            </Grid>
                                        </StackPanel>
                                        <Grid HorizontalAlignment="Left"
                                            Visibility="{Binding IsLocked, Converter={StaticResource A_FZBooleanToVisibilityConverter}, FallbackValue=Collapsed}"
                                            Height="36"
                                            MaxWidth="202"
                                            Margin="2,0,0,0">
                                            <FZMaterial Color="{StaticResource H_Color_Primary_White}"
                                                Preset="{StaticResource H_Roundtangle_Outer_1px}"/>
                                            <DockPanel Margin="10,0" VerticalAlignment="Center">
                                                <FZMaterial HorizontalAlignment="Center" VerticalAlignment="Center" ImageSource="game:\Media\UI\Textures\Anthem\Icons\TiledMenus\SlotMenu\Locked.png"
                                                Height="28" Width="28" Stretch="UniformToFill" Color="{StaticResource H_Color_Primary_Black}"
                                                DockPanel.Dock="Left" Margin="-8,0,6,0"/>
                                                <FZTextBlock VerticalAlignment="Center" Color="{StaticResource H_Color_Primary_Black}" Text="{Loc Campaign.IDS_Rank_Locked}" CapHeight="24" />
                                            </DockPanel>
                                        </Grid>
                                    </Grid>
                                </Grid>
                            </Grid>
                        </Grid>
                    </Grid>

                    <Grid Height="{StaticResource A_Height_StatusIconContainer}"
                          Visibility="{Binding IsFakeCarRecord, Converter={StaticResource A_FZBooleanToVisibilityConverter_Inverse}, FallbackValue=Collapsed}">
                        <DockPanel>
                            <Grid DockPanel.Dock="Right" Margin="4,0,0,0"
                                  Visibility="{Binding SceneEnum, FallbackValue=Visible, Converter={StaticResource A_Converter_VisibleWhenHideSeek_Inverse}, RelativeSource={RelativeSource AncestorType=Page}}">
                                <Control Style="{StaticResource H_Style_TemplatedElement_CarClassBadge}"
                                    Height="auto"
                                    local:BindingProxy.A="{Binding PerformanceIndex}"
                                    local:BindingProxy.B="{Binding ClassID}"
                                    Visibility="{Binding EliminatorLevel, Converter={StaticResource A_Converter_HiddenIfValid}, FallbackValue={x:Static Visibility.Visible}}" />
                                <Control Template="{StaticResource A_ControlTemplate_EliminatorCarLevel_Small}"
                                     Visibility="{Binding EliminatorLevel, Converter={StaticResource A_Converter_VisibleIfValid}, FallbackValue={x:Static Visibility.Collapsed}}" />
                            </Grid>
                            <Grid>
                                <Grid Visibility="{Binding SceneEnum, FallbackValue=Visible, Converter={StaticResource A_Converter_VisibleWhenHideSeek_Inverse}, RelativeSource={RelativeSource AncestorType=Page}}">
                                    <local:FZMaterial Preset="{Binding Rarity, Converter={StaticResource H_Converter_CarSelect_RarityToPreset}}"
                                                      Color="{Binding Rarity, Converter={StaticResource A_Converter_RarityToColor_CarSelectRarityStroke}}"
                                                      Visibility="{Binding EliminatorLevel, Converter={StaticResource A_Converter_HiddenIfValid}, FallbackValue={x:Static Visibility.Visible}}" />
                                    <local:FZMaterial Preset="{StaticResource H_Roundtangle_Outer_1px}"
                                                      Color="{Binding EliminatorLevel, Converter={StaticResource A_Converter_Grade_To_PresetColor_B}}"
                                                      Visibility="{Binding EliminatorLevel, Converter={StaticResource A_Converter_VisibleIfValid}, FallbackValue={x:Static Visibility.Collapsed}}" />
                                    <local:FZMaterial Preset="{StaticResource H_Roundtangle_Outer_1px}"
                                                      Color="{StaticResource H_Color_Primary_Pink}"
                                                      Visibility="{Binding IsRecommended, Converter={FZBooleanToVisibilityConverter}, FallbackValue=Collapsed}" />
                                </Grid>

                                <local:FZMaterial Color="{Binding LocalPlayerIsHider, Converter={StaticResource A_Converter_HideSeekColor}, RelativeSource={RelativeSource AncestorType=Page}}"
                                                  Visibility="{Binding SceneEnum, FallbackValue=Collapsed, Converter={StaticResource A_Converter_VisibleWhenHideSeek}, RelativeSource={RelativeSource AncestorType=Page}}" />

                                <Grid HorizontalAlignment="Left">
                                    <Grid Visibility="{Binding ShowPhotoInfo, Converter={StaticResource A_FZBooleanToVisibilityConverter_Inverse}, RelativeSource={RelativeSource AncestorType=Page}, FallbackValue=Visible}">
                                        <Grid Visibility ="{Binding SceneEnum, FallbackValue=Visible, Converter={StaticResource A_Converter_VisibleWhenHideSeek_Inverse}, RelativeSource={RelativeSource AncestorType=Page}}">
                                            <Decorator Height="{StaticResource A_Height_StatusIconContainer}"
                                                       Visibility="{Binding IsRecommended, FallbackValue=Visible, Converter={StaticResource A_FZBooleanToVisibilityConverter_Inverse}}">
                                                <local:FZTextBlock Text="{Binding Rarity, Converter={StaticResource A_Converter_RarityToNameString}}"
                                                                   Style="{StaticResource A_Style_FZTextBlock_CarSelectCarouselItem_RarityText}"
                                                                   Margin="8,0"/>
                                            </Decorator>
                                            <local:FZMaterial Height="{StaticResource A_Height_StatusIconContainer}"
                                                              Color="#0000"
                                                              Visibility="{Binding IsRecommended, FallbackValue=Collapsed, Converter={FZBooleanToVisibilityConverter}}">
                                                <local:FZTextBlock Text="{local:Loc CarFlow.IDS_Badge_Recommended}"
                                                                   Style="{StaticResource A_Style_FZTextBlock_CarSelectCarouseItem_StatusText}"
                                                                   Margin="8,0"
                                                                   Color="{StaticResource H_Color_Primary_White}"/>
                                            </local:FZMaterial>
                                        </Grid>
                                        <local:FZMaterial Height="{StaticResource A_Height_StatusIconContainer}"
                                                          Color="#0000"
                                                          Visibility="{Binding SceneEnum, FallbackValue=Collapsed, Converter={StaticResource A_Converter_VisibleWhenHideSeek}, RelativeSource={RelativeSource AncestorType=Page}}">
                                            <local:FZTextBlock Text="{Binding LocalPlayerIsHider, Converter={StaticResource A_Converter_HideSeekCarBannerText}, RelativeSource={RelativeSource AncestorType=Page}}"
                                                               Style="{StaticResource A_Style_FZTextBlock_CarSelectCarouseItem_StatusText}" 
                                                               Margin="8,0"
                                                               Color="{StaticResource H_Color_Primary_White}"/>
                                        </local:FZMaterial>
                                    </Grid>
                                </Grid>
                            </Grid>
                        </DockPanel>
                    </Grid>
                </StackPanel>
                <Control Style="{StaticResource A_Style_TreasureCar_DiscoveryStateBox}"/>
                <Control Style="{StaticResource A_Style_TreasureCar_DiscoveryIcon}"/>
            </Grid>
            <Grid x:Name="lost_voucher" Visibility="Collapsed">
                <FZMaterial Color="#33000000" Preset="{StaticResource H_Roundtangle_Outer_3px}" />

                    <Grid HorizontalAlignment="Center" VerticalAlignment="Center" Margin="0,0,0,26">
                        <FZMaterial Color="{StaticResource H_Color_Primary_White}" Preset="{StaticResource H_Roundtangle_Outer_3px}" />
                        <FZTextBlock Text="{Loc CarFlow.IDS_Reclaim}" CapHeight="24" Margin="18,13" Color="{StaticResource H_Color_Primary_Purple}" />
                    </Grid>
            </Grid>
            <FZMaterial Preset="{GlassRoundtangle BasedOn={StaticResource H_GlassRoundtangle_3px}, CornerRadius=8}" Color="#00ffffff" Opacity="{Binding (MultiDataConversion.Output), RelativeSource={RelativeSource AncestorType=ListBoxItem}, Converter={StaticResource H_Converter_FullscreenCarousel_OpacityShifter_Min}}"/>
            <FZMaterial Preset="{GlassRoundtangle BasedOn={StaticResource H_GlassRoundtangle_3px}, CornerRadius=8}" Color="#00ffffff" Opacity="{Binding (MultiDataConversion.Output), RelativeSource={RelativeSource AncestorType=ListBoxItem}, Converter={StaticResource H_Converter_FullscreenCarousel_OpacityShifter_Max}}"/>
        </Grid>
        <DataTemplate.Triggers>
            <DataTrigger Binding="{Binding IsLocked}" Value="True">
                <Setter TargetName="details_toggle_holder" Property="Tag" Value="{x:Null}"/>
            </DataTrigger>
            <DataTrigger Binding="{Binding IsFakeCarRecord}" Value="True">
                <Setter TargetName="Icon" Property="ImageSource" Value="{Binding CarBucketIcon}"/>
                <Setter TargetName="Icon" Property="Color" Value="{StaticResource H_Color_Primary_Black}"/>
                <Setter TargetName="Icon" Property="Margin" Value="8,16,8,0"/>
                <Setter TargetName="Icon" Property="Height" Value="auto"/>
                <Setter TargetName="Icon" Property="Width" Value="auto"/>
                <Setter TargetName="Icon" Property="VerticalAlignment" Value="Center"/>
                <Setter TargetName="Icon" Property="HorizontalAlignment" Value="Stretch"/>
                <Setter TargetName="Icon" Property="Stretch" Value="UniformToFill"/>
                <Setter TargetName="TitleContainer" Property="VerticalAlignment" Value="Bottom"/>
                <Setter TargetName="TitleContainer" Property="Margin" Value="0"/>
                <Setter TargetName="ItemTileBackground" Property="Visibility" Value="Collapsed"/>
                <Setter TargetName="ItemContentsContainer" Property="Margin" Value="4,0,4,-150"/>
                <Setter TargetName="ItemContentsContainer" Property="VerticalAlignment" Value="Center"/>
                <Setter TargetName="ItemContentsContainer"
                        Property="local:MultiStringFormatter.Format"
                        Value="{local:Loc Main.IDS_ScreenReader_Format_CarSelect_FakeCarRecord}" />
                <Setter TargetName="ItemContentsContainer"
                        Property="local:MultiStringFormatter.Param0"
                        Value="{Binding Name}" />
                <Setter TargetName="all_status"
                        Property="Visibility"
                        Value="Collapsed" />
            </DataTrigger>
            <DataTrigger Binding="{Binding IsFakeCarRecord}" Value="False">
                <Setter TargetName="ItemContentsContainer"
                        Property="local:MultiStringFormatter.Format"
                        Value="{local:Loc Main.IDS_ScreenReader_Format_CarSelect_CarRecord}" />
                <Setter TargetName="ItemContentsContainer"
                        Property="local:MultiStringFormatter.Param0"
                        Value="{Binding DisplayName}" />
                <Setter TargetName="ItemContentsContainer"
                        Property="local:MultiStringFormatter.Param1"
                        Value="{Binding Year, Converter={StaticResource A_ObjectToStringConverter}}" />
                <Setter TargetName="ItemContentsContainer"
                        Property="local:MultiStringFormatter.Param2"
                        Value="{Binding MakeName}" />
                <Setter TargetName="RarityBackground"
                        Property="Visibility" Value="Visible"/>
                <Setter TargetName="RarityBackground"
                        Property="ImageSource" Value="{Binding Rarity, Converter={StaticResource A_Converter_RarityToMaterial_CarSelectRarity}}"/>
            </DataTrigger>
            <DataTrigger Binding="{Binding BarnFindState, Converter={StaticResource A_Converter_BarnFindStateIsDiscoveredOrLater}}"
                         Value="{StaticResource A_Boolean_False}">
                <Setter TargetName="ItemContentsContainer"
                        Property="local:MultiStringFormatter.Format"
                        Value="{local:Loc Main.IDS_ScreenReader_Format_CarSelect_FakeCarRecord}" />
                <Setter TargetName="ItemContentsContainer"
                       Property="local:MultiStringFormatter.Param0"
                       Value="{local:Loc BarnFind.IDS_CarState_Locked}" />
            </DataTrigger>
            <DataTrigger Binding="{Binding BarnFindState, Converter={StaticResource A_Converter_BarnFindStateIsDiscoveredNotAvailable}}"
                         Value="{StaticResource A_Boolean_True}">
                <Setter TargetName="ItemContentsContainer"
                        Property="local:MultiStringFormatter.Format"
                        Value="{local:Loc Main.IDS_ScreenReader_Format_CarSelect_FakeCarRecord}" />
                <Setter TargetName="ItemContentsContainer"
                       Property="local:MultiStringFormatter.Param0"
                       Value="{local:Loc BarnFind.IDS_CarState_DiscoveredNotAvailable}" />
            </DataTrigger>
            <DataTrigger Binding="{Binding DiscoveryState}"
                         Value="{x:Static TreasureCarState.Hidden}">
                <Setter TargetName="ItemContentsContainer"
                        Property="local:MultiStringFormatter.Format"
                        Value="{local:Loc Main.IDS_ScreenReader_Format_CarSelect_FakeCarRecord}" />
                <Setter TargetName="ItemContentsContainer"
                       Property="local:MultiStringFormatter.Param0"
                       Value="{local:Loc SeeItDriveIt.IDS_TreasureCar_UnknownVehicle}" />
            </DataTrigger>
            <DataTrigger Binding="{Binding IsLost}"
                         Value="{StaticResource A_Boolean_True}">
                <Setter TargetName="lost_voucher"
                        Property="Visibility"
                        Value="Visible" />
            </DataTrigger>
            <DataTrigger Binding="{Binding LostCar}"
                         Value="1">
                <Setter TargetName="lost_voucher"
                        Property="Visibility"
                        Value="Visible" />
            </DataTrigger>
            <DataTrigger Binding="{Binding IsLocked}"
                         Value="True">
                <Setter TargetName="all_status"
                        Property="Visibility"
                        Value="Collapsed" />
                <Setter TargetName="drivetrain_icon"
                        Property="Visibility"
                        Value="Collapsed" />
                <Setter TargetName="preset_icon"
                        Property="Visibility"
                        Value="Collapsed" />
                <Setter TargetName="tyre_icon"
                        Property="Visibility"
                        Value="Collapsed" />
            </DataTrigger>
            <DataTrigger Binding="{Binding ShowPhotoInfo, RelativeSource={RelativeSource AncestorType=Page}, FallbackValue=False}"
                         Value="True">
                <Setter TargetName="blammo_text"
                        Property="Visibility"
                        Value="Collapsed" />
                <Setter TargetName="new_text"
                        Property="Visibility"
                        Value="Collapsed" />
            </DataTrigger>
            <DataTrigger Binding="{Binding BlammoType}"
                         Value="{x:Static local:MarketplaceBlammoType.None}">
                <Setter TargetName="blammo_text"
                        Property="Visibility"
                        Value="Collapsed" />
            </DataTrigger>
            <DataTrigger Binding="{Binding BlammoType, Converter={CompareConverter Value={x:Null}, NotEqual=hide}}"
                         Value="hide">
                <Setter TargetName="new_text"
                        Property="Visibility"
                        Value="Collapsed" />
            </DataTrigger>
            <DataTrigger Binding="{Binding IsBuyCarScene, RelativeSource={RelativeSource FindAncestor, AncestorType=Page}, FallbackValue=False}"
                         Value="False">
                <Setter TargetName="free_text"
                        Property="Visibility"
                        Value="Collapsed" />
                <Setter TargetName="sale_text"
                        Property="Visibility"
                        Value="Collapsed" />
                <Setter TargetName="preset_icon"
                        Property="Visibility"
                        Value="Collapsed" />
            </DataTrigger>
            <DataTrigger Binding="{Binding IsFree, FallbackValue=False}"
                         Value="False">
                <Setter TargetName="free_text"
                        Property="Visibility"
                        Value="Collapsed" />
            </DataTrigger>
            <DataTrigger Binding="{Binding IsOnSale, FallbackValue=False}"
                         Value="False">
                <Setter TargetName="sale_text"
                        Property="Visibility"
                        Value="Collapsed" />
            </DataTrigger>
            <DataTrigger Binding="{Binding BarnFindState, Converter={StaticResource A_Converter_BarnFindStateIsNotCollected}, FallbackValue=False}"
                         Value="True">
                <Setter TargetName="owned_text"
                        Property="Visibility"
                        Value="Collapsed" />
                <Setter TargetName="new_text"
                        Property="Visibility"
                        Value="Collapsed" />
                <Setter TargetName="dlc_icon"
                        Property="Visibility"
                        Value="Collapsed" />
                <Setter TargetName="star_icon"
                        Property="Visibility"
                        Value="Collapsed" />
                <Setter TargetName="snow_icon"
                        Property="Visibility"
                        Value="Collapsed" />
                <Setter TargetName="tick_icon"
                        Property="Visibility"
                        Value="Collapsed" />
                <Setter TargetName="voucher_icon"
                        Property="Visibility"
                        Value="Collapsed" />
                <Setter TargetName="current_icon"
                        Property="Visibility"
                        Value="Collapsed" />
            </DataTrigger>
            <!-- Non-Eliminator only -->
            <DataTrigger Binding="{Binding EliminatorLevel, Converter={StaticResource A_Converter_HiddenIfValid}, FallbackValue={x:Static Visibility.Visible}}"
                         Value="{x:Static Visibility.Hidden}">
                <Setter TargetName="all_status"
                        Property="Visibility"
                        Value="Collapsed" />
            </DataTrigger>
            <!-- Eliminator only -->
            <!--DataTrigger Binding="{Binding EliminatorLevel, Converter={StaticResource A_Converter_HiddenIfValid}, FallbackValue={x:Static Visibility.Visible}}"
                         Value="{x:Static Visibility.Visible}">
                <Setter TargetName="sale_text"
                        Property="Visibility"
                        Value="Collapsed" />
            </DataTrigger-->
        </DataTemplate.Triggers>
    </DataTemplate>



    <Style x:Key="A_Style_ListBoxItem_CurrentLargeIcon"
           TargetType="{x:Type ListBoxItem}">
        <Setter Property="Focusable" Value="False" />
    </Style>

    <Style x:Key="A_Style_FZMaterial_CarSelect_CurrentLargeIcon"
           TargetType="{x:Type local:FZMaterial}">
        <Setter Property="Stretch" Value="Uniform" />
        <Setter Property="StretchDirection" Value="DownOnly" />
        <Setter Property="HorizontalAlignment" Value="Center" />
        <Setter Property="VerticalAlignment" Value="Center" />
        <Setter Property="GreedyMeasure" Value="True" />
        <Setter Property="Margin" Value="5" />
    </Style>

    <Style x:Key="A_Style_FZMaterial_CarSelect_CurrentLargeIconContainer"
           TargetType="{x:Type FrameworkElement}">
        <Setter Property="Height" Value="160" />
        <Setter Property="Width" Value="342" />
        <Setter Property="Visibility" Value="Collapsed" />
        <Setter Property="Focusable" Value="False" />
        <Style.Triggers>
            <DataTrigger Binding="{Binding IsSelected, RelativeSource={RelativeSource AncestorType=ListBoxItem}}"
                     Value="True">
                <Setter Property="Visibility"
                        Value="Visible" />
            </DataTrigger>
        </Style.Triggers>
    </Style>

    <CornerRadius x:Key="A_CornerRadius_Selection">5</CornerRadius>
    <local:FZMaterialPresetRoundtangle x:Key="A_FZMaterialPresetRoundtangle_Selection"
                                       BasedOn="{StaticResource A_FZMaterialPreset_FlatPanel_Base}"
                                       CornerRadius="{StaticResource A_CornerRadius_Selection}"/>

    <Style TargetType="{x:Type local:FZButton}"
           x:Key="A_Style_FullscreenCarousel_NavButton_Horizontal">
        <Setter Property="Template"
                Value="{StaticResource A_ControlTemplate_Button_ClickableButtonWithMouseRollover}" />
        <Setter Property="Focusable"
                Value="False" />
        <Setter Property="MinWidth"
                Value="42" />
        <Setter Property="Height"
                Value="205" />
        <Setter Property="VerticalAlignment"
                Value="Stretch" />
    </Style>


    <Style TargetType="local:FZMaterial"
           x:Key="A_Style_FZMaterial_FullScreenCarousel_ScrollPageArrow"
           BasedOn="{StaticResource H_Style_ScrollPageArrow}">
        <Setter Property="Width"
                Value="17" />
        <Setter Property="Height"
                Value="24" />
        <Setter Property="Color"
                Value="{StaticResource H_Color_Primary_Black}" />
        <Style.Triggers>
            <DataTrigger Binding="{Binding IsPressed, RelativeSource={RelativeSource AncestorType=Button}}"
                         Value="True">
                <Setter Property="Color"
                        Value="{StaticResource H_Color_Primary_Pink}" />
            </DataTrigger>
            <DataTrigger Binding="{Binding IsEnabled, RelativeSource={RelativeSource AncestorType=Button}}"
                         Value="False">
                <Setter Property="Opacity"
                        Value="0.3" />
                <Setter Property="Color"
                        Value="#FFFFFFFF" />
            </DataTrigger>
        </Style.Triggers>
    </Style>

    <ControlTemplate x:Key="A_ControlTemplate_NavigationArrows_FullscreenCarousel"
                     TargetType="{x:Type local:NavigationArrows}">
        <Grid>
            <local:FZButton x:Name="ScrollPrevButton"
                            HorizontalAlignment="Left"
                            Style="{StaticResource A_Style_FullscreenCarousel_NavButton_Horizontal}"
                            Command="{TemplateBinding ScrollPagePrevCommand}"
                            IsEnabled="{TemplateBinding CanSelectPrev}">
                <local:FZMaterial x:Name="LeftArrowMaterial"
                                  ImageSource="/ForzaUI;component/Textures/Anthem/Icons/scroll_page_arrow_left.png"
                                  Style="{StaticResource A_Style_FZMaterial_FullScreenCarousel_ScrollPageArrow}" />
            </local:FZButton>
            <local:FZButton x:Name="ScrollNextButton"
                            HorizontalAlignment="Right"
                            Style="{StaticResource A_Style_FullscreenCarousel_NavButton_Horizontal}"
                            Command="{TemplateBinding ScrollPageNextCommand}"
                            IsEnabled="{TemplateBinding CanSelectNext}">
                <local:FZMaterial x:Name="RightArrowMaterial"
                                  ImageSource="/ForzaUI;component/Textures/Anthem/Icons/scroll_page_arrow_right.png"
                                  Style="{StaticResource A_Style_FZMaterial_FullScreenCarousel_ScrollPageArrow}" />
            </local:FZButton>
        </Grid>
    </ControlTemplate>


</ResourceDictionary>
