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

    <Color x:Key="A_Color_TrafficLights_Yellow">#FFFEFF49</Color>

    <local:MultiConverter x:Key="A_Converter_AuctionTime">
        <local:MultiConverterEntry>
            <local:MultiConverterEntry.Converter>
                <local:LinearTransformConverter Scale="60" />
            </local:MultiConverterEntry.Converter>
        </local:MultiConverterEntry>
        <local:MultiConverterEntry>
            <local:MultiConverterEntry.Converter>
                <local:AbbreviatedTimeConverter SubstituteStringOnZero="{local:Loc AuctionHouse.IDS_Ending}" />
            </local:MultiConverterEntry.Converter>
        </local:MultiConverterEntry>
    </local:MultiConverter>

    <local:FZMaterialPresetRoundtangleStroke x:Key="A_FZMaterialPresetRoundtangleStroke_AuctionHouse_CurrentBidNotSet"
                                                 BasedOn="{StaticResource A_FZMaterialPreset_FlatPanel_Base}"
                                                 CornerRadius="{StaticResource A_CornerRadius_Inner_All}"
                                                 Thickness="2" />

    <Style x:Key="A_Style_FZMaterial_Auction_Banner"
           TargetType="local:FZMaterial">
        <Setter Property="Preset"
                Value="{StaticResource A_FZMaterialPresetRoundtangle_FlatPanel_InnerAll}" />
        <Style.Triggers>
            <DataTrigger Binding="{Binding State}"
                         Value="{x:Static local:AuctionState.None}">
                <Setter Property="Visibility"
                        Value="Hidden" />
            </DataTrigger>
            <DataTrigger Binding="{Binding State}"
                         Value="{x:Static local:AuctionState.Expired}">
                <Setter Property="Visibility"
                        Value="Hidden" />
            </DataTrigger>
            <DataTrigger Binding="{Binding State}"
                         Value="{x:Static local:AuctionState.WillSell}">
                <Setter Property="Color"
                        Value="{StaticResource A_Color_AuctionHouse_Status_WillSell}" />
            </DataTrigger>
            <DataTrigger Binding="{Binding State}"
                         Value="{x:Static local:AuctionState.Winning}">
                <Setter Property="Color"
                        Value="{StaticResource A_Color_AuctionHouse_Status_Winning}" />
            </DataTrigger>
            <DataTrigger Binding="{Binding State}"
                         Value="{x:Static local:AuctionState.Outbid}">
                <Setter Property="Color"
                        Value="{StaticResource A_Color_AuctionHouse_Status_Outbid}" />
            </DataTrigger>
            <DataTrigger Binding="{Binding State}"
                         Value="{x:Static local:AuctionState.Lost}">
                <Setter Property="Color"
                        Value="{StaticResource A_Color_AuctionHouse_Status_Lost}" />
            </DataTrigger>
            <DataTrigger Binding="{Binding State}"
                         Value="{x:Static local:AuctionState.DidntSell}">
                <Setter Property="Color"
                        Value="{StaticResource A_Color_AuctionHouse_Status_DidntSell}" />
            </DataTrigger>
            <DataTrigger Binding="{Binding State}"
                         Value="{x:Static local:AuctionState.Sold}">
                <Setter Property="Color"
                        Value="{StaticResource A_Color_AuctionHouse_Status_Sold}" />
            </DataTrigger>
            <DataTrigger Binding="{Binding State}"
                         Value="{x:Static local:AuctionState.Won}">
                <Setter Property="Color"
                        Value="{StaticResource A_Color_AuctionHouse_Status_Won}" />
            </DataTrigger>
            <DataTrigger Binding="{Binding State}"
                         Value="{x:Static local:AuctionState.Banned}">
                <Setter Property="Color"
                        Value="{StaticResource A_Color_AuctionHouse_Status_Banned}" />
            </DataTrigger>
        </Style.Triggers>
    </Style>

    <Style x:Key="A_Style_FrameworkElement_Auction_Banner_Content_Coloured"
           TargetType="FrameworkElement">
        <Setter Property="local:BindingProxy.C"
                Value="{StaticResource A_Color_SubHeader_Text}" />
        <Style.Triggers>
            <DataTrigger Binding="{Binding State}"
                         Value="{x:Static local:AuctionState.WillSell}">
                <Setter Property="local:BindingProxy.C"
                        Value="{StaticResource A_Color_Header_Text}" />
            </DataTrigger>
            <DataTrigger Binding="{Binding State}"
                         Value="{x:Static local:AuctionState.Winning}">
                <Setter Property="local:BindingProxy.C"
                        Value="{StaticResource A_Color_Header_Text}" />
            </DataTrigger>
            <DataTrigger Binding="{Binding State}"
                         Value="{x:Static local:AuctionState.None}">
                <Setter Property="local:BindingProxy.C"
                        Value="{StaticResource A_Color_Header_Text}" />
            </DataTrigger>
            <DataTrigger Binding="{Binding State}"
                         Value="{x:Static local:AuctionState.Sold}">
                <Setter Property="local:BindingProxy.C"
                        Value="{StaticResource A_Color_Header_Text}" />
            </DataTrigger>
            <DataTrigger Binding="{Binding State}"
                         Value="{x:Static local:AuctionState.Won}">
                <Setter Property="local:BindingProxy.C"
                        Value="{StaticResource A_Color_Header_Text}" />
            </DataTrigger>
            <DataTrigger Binding="{Binding NoActions}"
                         Value="True">
                <Setter Property="local:BindingProxy.C"
                        Value="{StaticResource A_Color_SubHeader_Text}" />
            </DataTrigger>
        </Style.Triggers>
    </Style>
    
    <Style x:Key="A_Style_FZMaterial_Auction_Banner_Content"
           BasedOn="{StaticResource A_Style_FrameworkElement_Auction_Banner_Content_Coloured}"
           TargetType="local:FZMaterial">
        <Setter Property="Color"
                Value="{Binding Path=(local:BindingProxy.C), RelativeSource={RelativeSource Self}}" />
    </Style>
    
    <Style x:Key="A_Style_FZTextBlock_Auction_Banner"
           BasedOn="{StaticResource A_Style_FrameworkElement_Auction_Banner_Content_Coloured}"
           TargetType="local:FZTextBlock">
        <Setter Property="FontFamily"
                Value="Horizon_A" />
        <Setter Property="Color"
                Value="{Binding Path=(local:BindingProxy.C), RelativeSource={RelativeSource Self}}" />
        <Setter Property="Stretch"
                Value="None" />
        <Setter Property="CapHeight"
                Value="15" />
        <Setter Property="HorizontalAlignment"
                Value="Center" />
        <Setter Property="VerticalAlignment"
                Value="Center" />
        <Style.Triggers>
            <DataTrigger Binding="{Binding State}"
                         Value="{x:Static local:AuctionState.DidntSell}">
                <Setter Property="Text"
                        Value="{local:Loc AuctionHouse.IDS_State_DidntSell}" />
            </DataTrigger>
            <DataTrigger Binding="{Binding State}"
                         Value="{x:Static local:AuctionState.Outbid}">
                <Setter Property="Text"
                        Value="{local:Loc AuctionHouse.IDS_State_Outbid}" />
            </DataTrigger>
            <DataTrigger Binding="{Binding State}"
                         Value="{x:Static local:AuctionState.Sold}">
                <Setter Property="Text"
                        Value="{local:Loc AuctionHouse.IDS_State_Sold}" />
            </DataTrigger>
            <DataTrigger Binding="{Binding State}"
                         Value="{x:Static local:AuctionState.WillSell}">
                <Setter Property="Text"
                        Value="{local:Loc AuctionHouse.IDS_State_WillSell}" />
            </DataTrigger>
            <DataTrigger Binding="{Binding State}"
                         Value="{x:Static local:AuctionState.Lost}">
                <Setter Property="Text"
                        Value="{local:Loc AuctionHouse.IDS_State_Lost}" />
            </DataTrigger>
            <DataTrigger Binding="{Binding State}"
                         Value="{x:Static local:AuctionState.Winning}">
                <Setter Property="Text"
                        Value="{local:Loc AuctionHouse.IDS_State_Winning}" />
            </DataTrigger>
            <DataTrigger Binding="{Binding State}"
                         Value="{x:Static local:AuctionState.Won}">
                <Setter Property="Text"
                        Value="{local:Loc AuctionHouse.IDS_State_Won}" />
            </DataTrigger>
            <DataTrigger Binding="{Binding State}"
                         Value="{x:Static local:AuctionState.Banned}">
                <Setter Property="Text"
                        Value="{local:Loc AuctionHouse.IDS_State_Banned}" />
            </DataTrigger>
        </Style.Triggers>
    </Style>
    <Style x:Key="A_Style_FZTextBlock_Auction_CanExpire"
           TargetType="local:FZTextBlock">
        <Setter Property="local:BindingProxy.A"
                Value="{StaticResource A_Color_Header_Text}" />
        <Setter Property="Color"
                Value="{Binding Path=(local:BindingProxy.A), RelativeSource={RelativeSource Self}}" />
        <Style.Triggers>
            <DataTrigger Binding="{Binding Ended}"
                         Value="True">
                <Setter Property="Color"
                        Value="{StaticResource A_Color_AuctionHouse_Expired}" />
            </DataTrigger>
        </Style.Triggers>
    </Style>
    <Style x:Key="A_Style_FZMaterial_Auction_CanExpire"
           TargetType="local:FZMaterial">
        <Setter Property="local:BindingProxy.A"
                Value="{StaticResource A_Color_Header_Text}" />
        <Setter Property="Color"
                Value="{Binding Path=(local:BindingProxy.A), RelativeSource={RelativeSource Self}}" />
        <Style.Triggers>
            <DataTrigger Binding="{Binding Ended}"
                         Value="True">
                <Setter Property="Color"
                        Value="{StaticResource A_Color_AuctionHouse_Expired}" />
            </DataTrigger>
        </Style.Triggers>
    </Style>
    <Style x:Key="A_Style_FZTextBlock_Auction_Pill_CreditValueText"
           TargetType="local:FZTextBlock">
        <Setter Property="CapHeight"
                Value="21" />
        <Setter Property="FontFamily"
                Value="Horizon_A" />
        <Setter Property="Margin"
                Value="6,0,0,0" />
        <Style.Triggers>
            <DataTrigger Binding="{Binding Ended}"
                         Value="True">
                <Setter Property="Color"
                        Value="{StaticResource A_Color_AuctionHouse_Expired}" />
            </DataTrigger>
            <DataTrigger Binding="{Binding NoActions}"
                         Value="True">
                <Setter Property="Color"
                        Value="{StaticResource A_Color_AuctionHouse_NoActionsText}" />
            </DataTrigger>
        </Style.Triggers>
    </Style>

    <ControlTemplate x:Key="A_Template_ContentControl_BidBox"
                     TargetType="ContentControl">
        <StackPanel Orientation="Vertical">
            <local:FZTextBlock Style="{DynamicResource A_Style_FZTextBlock_BidBoxTitle_Dynamic}" />
            <Decorator Height="7" />
            <StackPanel Height="{DynamicResource A_Double_BidBox_CreditIconSize}"
                        Orientation="Horizontal"
                        HorizontalAlignment="{Binding HorizontalAlignment, RelativeSource={RelativeSource TemplatedParent}}">
                <local:FZMaterial Style="{DynamicResource A_Style_FZMaterial_BidBoxIcon_Dynamic}" />
                <ContentPresenter VerticalAlignment="Center"/>
            </StackPanel>
        </StackPanel>
    </ControlTemplate>

    <Style x:Key="A_Style_FZTextBlock_BidBoxTitle_Default"
           TargetType="{x:Type local:FZTextBlock}"
           BasedOn="{StaticResource A_Style_FZTextBlock_Auction_CanExpire}">
        <Setter Property="Text" Value="{Binding Tag, RelativeSource={RelativeSource AncestorType=ContentControl}}" />
        <Setter Property="Height" Value="16" />
        <Setter Property="Stretch" Value="Uniform" />
        <Setter Property="StretchDirection" Value="Both" />
        <Setter Property="TextAlignment" Value="{DynamicResource A_TextAlignment_BidBox_Title}" />
        <Setter Property="FontFamily" Value="Horizon_A" />
        <Setter Property="local:BindingProxy.A" Value="{StaticResource A_Color_AuctionHouse_PillDetailText}" />
    </Style>

    <Style x:Key="A_Style_FZTextBlock_BidBoxTitle_Dynamic"
           BasedOn="{StaticResource A_Style_FZTextBlock_BidBoxTitle_Default}"
           TargetType="{x:Type local:FZTextBlock}" />

    <Style x:Key="A_Style_FZMaterial_BidBoxIcon_Default"
           TargetType="{x:Type local:FZMaterial}"
           BasedOn="{StaticResource A_Style_FZMaterial_Auction_CanExpire}">
        <Setter Property="local:BindingProxy.A" Value="{Binding Path=(local:BindingProxy.B), RelativeSource={RelativeSource TemplatedParent}}" />
        <Setter Property="ImageSourceNoPreload" Value="/ForzaUI;component/Textures/Anthem/Icons/CRIcon/CR_32_FilledCircle.png" />
        <Setter Property="Width" Value="{DynamicResource A_Double_BidBox_CreditIconSize}" />
        <Setter Property="Height" Value="{DynamicResource A_Double_BidBox_CreditIconSize}" />
    </Style>

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

    <Style x:Key="A_Style_ContentControl_BidBox_HighestBid"
           TargetType="ContentControl">
        <Setter Property="Template"
                Value="{StaticResource A_Template_ContentControl_BidBox}" />
        <Setter Property="Tag"
                Value="{local:Loc AuctionHouse.IDS_HighestBid}" />
        <Setter Property="local:BindingProxy.B"
                Value="{StaticResource A_Color_AuctionHouse_CurrentBidPrice}" />
        <Style.Triggers>
            <DataTrigger Binding="{Binding HighestBidder}"
                         Value="{x:Null}">
                <Setter Property="Tag"
                        Value="{local:Loc AuctionHouse.IDS_NoBidsTitle}" />
            </DataTrigger>
            <MultiDataTrigger>
                <MultiDataTrigger.Conditions>
                    <Condition  Binding="{Binding HighestBidder, Converter={StaticResource A_FZBooleanToVisibilityConverter}}"
                                Value="{x:Static Visibility.Visible}" />
                    <Condition Binding="{Binding Ended}"
                               Value="True" />
                </MultiDataTrigger.Conditions>
                <Setter Property="Tag"
                        Value="{local:Loc AuctionHouse.IDS_WinningBid}" />
            </MultiDataTrigger>
        </Style.Triggers>
    </Style>

    <Style x:Key="A_Style_FZTextBlock_AuctionDetails_TimeRemaining"
           TargetType="local:FZTextBlock">
        <Setter Property="FontFamily"
                Value="Horizon_A" />
        <Setter Property="Height"
                Value="16" />
        <Setter Property="Stretch"
                Value="Uniform" />
        <Setter Property="StretchDirection"
                Value="Both" />
        <Setter Property="Color"
                Value="{StaticResource A_Color_AuctionHouse_TimeRemaining}" />
    </Style>
    <Style x:Key="A_Style_FrameworkElement_AuctionDetails_TimeRemaining_Active"
           TargetType="FrameworkElement">
        <Setter Property="Visibility"
                Value="Visible" />
        <Style.Triggers>
            <DataTrigger Binding="{Binding Ended}"
                         Value="True">
                <Setter Property="Visibility"
                        Value="Collapsed" />
            </DataTrigger>
        </Style.Triggers>
    </Style>
    <Style x:Key="A_Style_FrameworkElement_AuctionDetails_TimeRemaining_Expired"
           TargetType="FrameworkElement">
        <Setter Property="Visibility"
                Value="Collapsed" />
        <Style.Triggers>
            <DataTrigger Binding="{Binding Ended}"
                         Value="True">
                <Setter Property="Visibility"
                        Value="Visible" />
            </DataTrigger>
        </Style.Triggers>
    </Style>

    <ControlTemplate TargetType="Control"
                     x:Key="A_ControlTemplate_AuctionDetails_TimeRemaining">
        <Grid>
            <!-- Time remaining -->
            <StackPanel Orientation="Horizontal"
                        VerticalAlignment="Bottom"
                        HorizontalAlignment="Center"
                        Margin="0,-2"
                        Style="{StaticResource A_Style_FrameworkElement_AuctionDetails_TimeRemaining_Active}">
                <local:FZMaterial Height="18"
                                  Width="18"
                                  ImageSource="/ForzaUI;component/Textures/Anthem/Icons/TinyGavel.png"
                                  VerticalAlignment="Center"
                                  Color="{StaticResource A_Color_AuctionHouse_TimeRemaining}" />
                <Decorator Width="5" />
                <local:FZTextBlock Text="{Binding Source={local:Loc AuctionHouse.IDS_Time_Remaining}, Converter={StaticResource A_StringToUpper}}"
                                   Style="{StaticResource A_Style_FZTextBlock_AuctionDetails_TimeRemaining}"
                                   Color="{StaticResource A_Color_AuctionHouse_PillDetailText}"
                                   Visibility="{Binding (local:BindingProxy.A), RelativeSource={RelativeSource TemplatedParent}, Converter={StaticResource A_FZBooleanToVisibilityConverter}, FallbackValue=Collapsed}" />
                <Decorator Width="5"
                       Visibility="{Binding (local:BindingProxy.A), RelativeSource={RelativeSource TemplatedParent}, Converter={StaticResource A_FZBooleanToVisibilityConverter}, FallbackValue=Collapsed}" />
                <local:FZTextBlock Style="{StaticResource A_Style_FZTextBlock_AuctionDetails_TimeRemaining}"
                                   Text="{Binding TimeRemaining, Converter={StaticResource A_Converter_AuctionTime}}" />
            </StackPanel>
            <StackPanel Orientation="Horizontal"
                        VerticalAlignment="Bottom"
                        HorizontalAlignment="Center"
                        Margin="0,-2"
                        Style="{StaticResource A_Style_FrameworkElement_AuctionDetails_TimeRemaining_Expired}">
                <local:FZMaterial Height="18"
                                  Width="18"
                                  ImageSource="/ForzaUI;component/Textures/Anthem/Icons/TinyGavel.png"
                                  VerticalAlignment="Center"
                                  Color="{StaticResource A_Color_AuctionHouse_Expired}" />
                <Decorator Width="10" />
                <local:FZTextBlock Style="{StaticResource A_Style_FZTextBlock_AuctionDetails_TimeRemaining}"
                                   Color="{StaticResource A_Color_AuctionHouse_Expired}"
                                   Text="{local:Loc AuctionHouse.IDS_Ended}" />
            </StackPanel>
        </Grid>
    </ControlTemplate>

    <Size x:Key="A_Size_Auction_GamerPicSizeParams">102,102</Size>

    <Style x:Key="A_Style_FZMaterial_Auction_HighestBidder"
           TargetType="local:FZMaterial">
        <Setter Property="ImageSourceNoPreload"
                Value="{Binding HighestBidder, Converter={StaticResource A_GamerPicConverter}, ConverterParameter={StaticResource A_Size_Auction_GamerPicSizeParams}}" />
        <Style.Triggers>
            <DataTrigger Binding="{Binding HighestBidder}"
                         Value="{x:Null}">
                <Setter Property="ImageSourceNoPreload"
                        Value="/ForzaUI;component/Textures/Anthem/NoGamerpic.png" />
                <Setter Property="Color"
                        Value="{Binding Tag, RelativeSource={RelativeSource Self}}" />
            </DataTrigger>
        </Style.Triggers>
    </Style>

    <Style x:Key="A_Style_FZTextBlock_Auction_HighestBidder"
           TargetType="local:FZTextBlock">
        <Setter Property="Text"
                Value="{Binding HighestBidder.FormattedGamertag}" />
        <Style.Triggers>
            <DataTrigger Binding="{Binding HighestBidder}"
                         Value="{x:Null}">
                <Setter Property="Text"
                        Value="{local:Loc AuctionHouse.IDS_NoBids}" />
            </DataTrigger>
        </Style.Triggers>
    </Style>

    <Style x:Key="A_Style_FZTextBlock_Auction_HighestBidder_Title"
           TargetType="local:FZTextBlock">
        <Setter Property="Text"
                Value="{local:Loc AuctionHouse.IDS_AuctionHouse_High_Bidder}" />
        <Style.Triggers>
            <DataTrigger Binding="{Binding HighestBidder}"
                         Value="{x:Null}">
                <Setter Property="Text"
                        Value="" />
            </DataTrigger>
            <MultiDataTrigger>
                <MultiDataTrigger.Conditions>
                    <Condition  Binding="{Binding HighestBidder, Converter={StaticResource A_FZBooleanToVisibilityConverter}}"
                                Value="{x:Static Visibility.Visible}" />
                    <Condition Binding="{Binding Ended}"
                                 Value="True" />
                </MultiDataTrigger.Conditions>
                <Setter Property="Text"
                        Value="{local:Loc AuctionHouse.IDS_Winner}" />
            </MultiDataTrigger>
        </Style.Triggers>
    </Style>

    <ControlTemplate TargetType="Control"
                     x:Key="A_Template_Control_Auction_HighestBidder">
        <Grid Height="107">
            <DockPanel LastChildFill="True">
                <Grid Width="107"
                    DockPanel.Dock="Left">
                    <local:FZMaterial x:Name="GamerPicMaterial"
                        Style="{StaticResource A_Style_FZMaterial_Auction_HighestBidder}"
                        Preset="{StaticResource A_FZMaterialPresetRoundtangle_FlatPanel_InnerAll}"
                        Stretch="Uniform"
                        Tag="{Binding Path=(local:BindingProxy.B), RelativeSource={RelativeSource TemplatedParent}}"
                        Visibility="{Binding Downloaded, RelativeSource={RelativeSource Self}, Converter={StaticResource A_FZBooleanToVisibilityConverter_UseHidden}}" />
                    <ProgressBar Style="{DynamicResource A_Style_ProgressBar_WaitSpinner_Dynamic}"
                        HorizontalAlignment="Center"
                        VerticalAlignment="Center"
                        Visibility="{Binding Downloaded, ElementName=GamerPicMaterial, Converter={StaticResource A_FZBooleanToVisibilityConverter_Inverse}}"/>
                </Grid>
                <Decorator Width="15"
                           DockPanel.Dock="Left" />
                <DockPanel Margin="0,10">
                    <Decorator DockPanel.Dock="Top"
                               HorizontalAlignment="Left">
                        <local:FZTextBlock Style="{StaticResource A_Style_FZTextBlock_Auction_HighestBidder_Title}"
                                           StretchDirection="Both"
                                           Stretch="Uniform"
                                           Height="16"
                                           TextAlignment="Left"
                                           FontFamily="Horizon_A"
                                           Color="{TemplateBinding local:BindingProxy.A}" />
                    </Decorator>
                    <local:FZTextBlock DockPanel.Dock="Bottom"
                                       Style="{StaticResource A_Style_FZTextBlock_Auction_HighestBidder}"
                                       FontFamily="Horizon_B"
                                       CapHeight="22"
                                       Stretch="Uniform"
                                       Color="{TemplateBinding local:BindingProxy.A}" />
                    <local:FZTextBlock Text="{Binding HighestBidder.FormattedClubTag}"
                                       FontFamily="Horizon_B"
                                       CapHeight="22"
                                       VerticalAlignment="Center"
                                       Color="{TemplateBinding local:BindingProxy.A}"
                                       Visibility="{Binding HighestBidder, Converter={StaticResource A_FZBooleanToVisibilityConverter_UseHidden}}" />
                </DockPanel>
            </DockPanel>
        </Grid>
    </ControlTemplate>

    <Style x:Key="A_Style_Control_Auction_HighestBidder"
           TargetType="Control">
        <Style.Resources>
            <Style x:Key="A_Style_ProgressBar_WaitSpinner_Dynamic"
                TargetType="{x:Type ProgressBar}"
                BasedOn="{StaticResource A_Style_ProgressBar_WaitSpinner}"/>
        </Style.Resources>
        <Setter Property="Template" Value="{StaticResource A_Template_Control_Auction_HighestBidder}"/>
    </Style>

    <Style x:Key="A_Style_Control_Auction_HighestBidder_Dark"
           TargetType="Control">
        <Style.Resources>
            <Style x:Key="A_Style_ProgressBar_WaitSpinner_Dynamic"
                TargetType="{x:Type ProgressBar}"
                BasedOn="{StaticResource A_Style_ProgressBar_WaitSpinnerDark}"/>
        </Style.Resources>
        <Setter Property="Template" Value="{StaticResource A_Template_Control_Auction_HighestBidder}"/>
    </Style>

    <local:LinearTransformConverter Scale="1"
                                    x:Key="A_Converter_UGCLevelRatio" />

    <Style x:Key="A_Style_FZTextBlock_ClubAndGamertag"
           TargetType="local:FZTextBlock">
        <Setter Property="Stretch"
                Value="Uniform" />
        <Setter Property="FontSize"
                Value="22" />
        <Setter Property="StretchDirection"
                Value="Both" />
        <Setter Property="FontFamily"
                Value="Horizon_B" />
        <Setter Property="Color"
                Value="{StaticResource A_Color_SubHeader_Text}" />
    </Style>

    <ControlTemplate TargetType="Control"
                     x:Key="A_Template_ClubAndGamertag">
        <Viewbox>
            <StackPanel Orientation="Horizontal">
                <StackPanel Orientation="Horizontal"
                            x:Name="TagBlock">
                    <local:FZTextBlock Style="{StaticResource A_Style_FZTextBlock_ClubAndGamertag}"
                                       Text="{Binding FormattedClubTag}" />
                    <Decorator Width="4" />
                </StackPanel>
                <local:FZTextBlock Style="{StaticResource A_Style_FZTextBlock_ClubAndGamertag}"
                                   Text="{Binding FormattedGamertag}" />
            </StackPanel>
        </Viewbox>
        <ControlTemplate.Triggers>
            <DataTrigger Binding="{Binding FormattedClubTag}"
                         Value="{x:Null}">
                <Setter Property="Visibility"
                        TargetName="TagBlock"
                        Value="Collapsed" />
            </DataTrigger>
            <DataTrigger Binding="{Binding FormattedClubTag}"
                         Value="">
                <Setter Property="Visibility"
                        TargetName="TagBlock"
                        Value="Collapsed" />
            </DataTrigger>
        </ControlTemplate.Triggers>
    </ControlTemplate>

    <!-- local:TextBlockInlineMarkup.Markup = UGC player level -->
    <!-- local:BindingProxy.A = UserProfile -->
    <!-- local:BindingProxy.B = UGC Type -->
    <!-- local:BindingProxy.C = Title Text -->
    <!-- Tag = Contributors text -->
    <ControlTemplate TargetType="Control"
                     x:Key="A_Template_Control_Auction_Collaborator">
        <StackPanel Orientation="Vertical">
            <StackPanel Orientation="Horizontal"
                        HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}">
                <local:FZTextBlock Height="16"
                                   Stretch="Uniform"
                                   StretchDirection="Both"
                                   TextAlignment="Left"
                                   VerticalAlignment="Center"
                                   FontFamily="Horizon_A"
                                   Color="{StaticResource A_Color_SubHeader_Text}"
                                   Text="{Binding Path=(local:BindingProxy.C), RelativeSource={RelativeSource TemplatedParent}}"                                   
                                   x:Name="Text" />
            </StackPanel>
            <Decorator Height="11" />
            <StackPanel Orientation="Vertical">
                <Control Template="{StaticResource A_Template_ClubAndGamertag}"
                         DataContext="{Binding Path=(local:BindingProxy.A), RelativeSource={RelativeSource TemplatedParent}}"
                         HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
                         Height="22"
                         x:Name="Gamertag" />
                <Viewbox x:Name="Stock"
                         Visibility="Collapsed"
                         Height="22"
                         HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}">
                    <local:FZTextBlock Style="{StaticResource A_Style_FZTextBlock_ClubAndGamertag}"
                                       Stretch="None"
                                       Text="{local:Loc AuctionHouse.IDS_Stock}"
                                       TextAlignment="{TemplateBinding HorizontalContentAlignment}" />
                </Viewbox>
                <Viewbox x:Name="Contributors"
                         Visibility="{Binding Tag, Converter={StaticResource A_StringVisConverter}, RelativeSource={RelativeSource TemplatedParent}}"
                         Height="22"
                         HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
                         Margin="0,15,0,0">
                    <local:FZTextBlock Style="{StaticResource A_Style_FZTextBlock_ClubAndGamertag}"
                                       Stretch="None"
                                       Text="{Binding Tag, RelativeSource={RelativeSource TemplatedParent}}"
                                       TextAlignment="{TemplateBinding HorizontalContentAlignment}" />
                </Viewbox>
                <Decorator Height="15" />

                <Control Template="{StaticResource A_ControlTemplate_RankLevel_Pill}"
                         DataContext="{Binding Path=(local:BindingProxy.A), RelativeSource={RelativeSource FindAncestor, AncestorType=Control}}"
                         Tag="{Binding Path=(local:BindingProxy.B), RelativeSource={RelativeSource FindAncestor, AncestorType=Control}}"
                         HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
                         x:Name="Rating" />
            </StackPanel>
        </StackPanel>
        <ControlTemplate.Triggers>
            <!-- No collaborator -->
            <DataTrigger Binding="{Binding Path=(local:BindingProxy.A), RelativeSource={RelativeSource Self}}"
                         Value="{x:Null}">
                <Setter Property="Visibility"
                        TargetName="Stock"
                        Value="{x:Static Visibility.Visible}" />
                <Setter Property="Visibility"
                        TargetName="Gamertag"
                        Value="{x:Static Visibility.Collapsed}" />
                <Setter Property="Opacity"
                        TargetName="Rating"
                        Value="0.4" />
            </DataTrigger>
        </ControlTemplate.Triggers>
    </ControlTemplate>

    <Style x:Key="A_Style_FZTextBlock_OptionText_ViewAuctionOption"
           BasedOn="{StaticResource A_Style_FZTextBlock_OptionText}"
           TargetType="local:FZTextBlock">
        <Style.Resources>
            <Color x:Key="A_Color_TextMenu_Text_Dynamic">#FF00B18D</Color>
        </Style.Resources>
    </Style>

    <DataTemplate x:Key="A_DataTemplate_TextMenu_AuctionDetails">
        <Grid IsHitTestVisible="False"
              Margin="10,16">
            <DockPanel LastChildFill="True">
                <local:FZTextBlock Text="{Binding Subtext}"
                                   Style="{StaticResource A_Style_FZTextBlock_OptionText_ViewAuctionOption}"
                                   DockPanel.Dock="Right" />
                <local:FZTextBlock Text="{Binding Text}"
                                   Style="{StaticResource A_Style_FZTextBlock_OptionText}" />
            </DockPanel>
        </Grid>
    </DataTemplate>

    <Style x:Key="A_Style_FZRun_AuctionHouse_BOLD" TargetType="{x:Type local:FZRun}">
        <Setter Property="FontFamily" Value="Horizon_A"/>
    </Style>

    <Style x:Key="A_Style_FZTextBlock_ActionHouse_PillText"
           BasedOn="{StaticResource A_Style_FZTextBlock_HorizonA}"
           TargetType="{x:Type local:FZTextBlock}">
        <Setter Property="Color"
                Value="{StaticResource A_Color_AuctionHouse_StatusText}" />
        <Setter Property="HorizontalAlignment"
                Value="Center" />
        <Setter Property="VerticalAlignment"
                Value="Center" />
        <Setter Property="CapHeight"
                Value="16" />
        <Setter Property="Margin"
                Value="6" />
    </Style>

    <Style x:Key="A_Style_Control_AuctionHouseItemPill"
           TargetType="{x:Type Control}">
        <Style.Resources>
            <Visibility x:Key="A_Visibility_HEBonus_Dynamic">Collapsed</Visibility>
        </Style.Resources>
        <Setter Property="Height"
                Value="28" />
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate>
                    <local:FZMaterial Style="{DynamicResource A_Style_FZMaterial_PillBG_Dynamic}">
                        <Viewbox>
                            <StackPanel Orientation="Horizontal">
                                <local:FZTextBlock Text="{Binding Tag, RelativeSource={RelativeSource TemplatedParent}, Converter={StaticResource A_StringToUpper}}"
                                                   Style="{StaticResource A_Style_FZTextBlock_ActionHouse_PillText}" />
                                <StackPanel Orientation="Horizontal"
                                    Visibility="{DynamicResource A_Visibility_HEBonus_Dynamic}">
                                    <local:FZMaterial Color="#66FFFFFF"
                                        Width="2"
                                        Margin="0,1"
                                        Visibility="{Binding HorizonEditionBonus, Converter={StaticResource A_StringVisConverter}}"/>
                                    <local:FZTextBlock local:TextBlockInlineMarkup.Markup="{Binding HorizonEditionBonus, Converter={StaticResource A_StringToUpper}}"
                                        local:TextBlockInlineMarkup.ResourceBaseName="A_Style_FZRun_AuctionHouse_"
                                                       Style="{StaticResource A_Style_FZTextBlock_ActionHouse_PillText}"
                                                       FontFamily="Horizon_B"
                                                       Visibility="{Binding HorizonEditionBonus, Converter={StaticResource A_StringVisConverter}}" />
                                </StackPanel>
                            </StackPanel>
                        </Viewbox>
                    </local:FZMaterial>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>

    <Style x:Key="A_Style_Control_AuctionHouse_RarityPill"
           BasedOn="{StaticResource A_Style_Control_AuctionHouseItemPill}"
           TargetType="{x:Type Control}">
        <Style.Resources>
            <local:MappingConverter x:Key="A_Converter_RarityToPreset" Default="{StaticResource A_FZMaterialPresetRoundtangle_FlatPanel_InnerAll}">
                <local:MappingConverterEntry Key="{x:Static local:XAMLRarity.HorizonEdition}" Value="{StaticResource A_FZMaterialPresetRoundtangle_GradientHorizonEdition_InnerAll}" />
            </local:MappingConverter>
            <Style x:Key="A_Style_FZMaterial_PillBG_Dynamic"
                   TargetType="{x:Type local:FZMaterial}">
                <Setter Property="Preset"
                        Value="{Binding Rarity, Converter={StaticResource A_Converter_RarityToPreset}}" />
                <Setter Property="Color"
                        Value="{Binding Rarity, Converter={StaticResource A_Converter_RarityToColor}}" />
            </Style>
        </Style.Resources>
        <Setter Property="Tag"
                Value="{Binding Rarity, Converter={StaticResource A_Converter_RarityToNameString}}" />
        <Setter Property="Visibility"
                Value="Collapsed" />
        <Style.Triggers>
            <MultiDataTrigger>
                <MultiDataTrigger.Conditions>
                    <Condition Binding="{Binding IsBarnFind}"
                               Value="False" />
                </MultiDataTrigger.Conditions>
                <Setter Property="Visibility"
                        Value="Visible" />
            </MultiDataTrigger>
        </Style.Triggers>
    </Style>

    <Style x:Key="A_Style_Control_AuctionHouse_RarityPillWithHEBonus"
           BasedOn="{StaticResource A_Style_Control_AuctionHouse_RarityPill}"
           TargetType="{x:Type Control}">
        <Style.Resources>
            <Visibility x:Key="A_Visibility_HEBonus_Dynamic">Visible</Visibility>
        </Style.Resources>
    </Style>


    <Style x:Key="A_Style_Control_AuctionHouse_BarnFindPill"
           BasedOn="{StaticResource A_Style_Control_AuctionHouseItemPill}"
           TargetType="{x:Type Control}">
        <Style.Resources>
            <Style x:Key="A_Style_FZMaterial_PillBG_Dynamic"
                   TargetType="{x:Type local:FZMaterial}">
                <Setter Property="Preset"
                        Value="{StaticResource A_FZMaterialPresetRoundtangle_FlatPanel_InnerAll}" />
                <Setter Property="Color"
                        Value="{StaticResource A_Color_AuctionHouse_CarInGarageBackground}" />
            </Style>
        </Style.Resources>
        <Setter Property="Tag"
                Value="{local:Loc AuctionHouse.IDS_BarnFind}" />
        <Setter Property="Visibility"
                Value="Collapsed" />
        <Style.Triggers>
            <MultiDataTrigger>
                <MultiDataTrigger.Conditions>
                    <Condition Binding="{Binding IsBarnFind}"
                               Value="True" />
                </MultiDataTrigger.Conditions>
                <Setter Property="Visibility"
                        Value="Visible" />
            </MultiDataTrigger>
        </Style.Triggers>
    </Style>

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

</ResourceDictionary>