<Page DataContext="{Binding RelativeSource={RelativeSource Self}}"
      Style="{StaticResource A_Style_Page_Generic}"
      mc:Ignorable="d"
      x:Class="ForzaUI.A_AuctionListings"
      xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
      xmlns:Dynamic="clr-namespace:System.Dynamic;assembly=System.Core"
      xmlns:System="clr-namespace:System;assembly=mscorlib"
      xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
      xmlns:local="clr-namespace:ForzaUI;assembly="
      xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
      xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
    <Page.Resources>    
        <Style x:Key="A_Style_ListBoxItem_AuctionListings" TargetType="ListBoxItem"
            BasedOn="{StaticResource H_Style_ContentControl_Carousel_ContainerStyle}">
            <Style.Resources>
                <CornerRadius x:Key="A_StrokeHighlight_ContentRadius">2</CornerRadius>
            </Style.Resources>
            <Setter Property="Height" Value="194" />
            <Setter Property="Margin" Value="0,0,0,8" />
            <Setter Property="local:FocusOnMouseOverBehaviour.Self" Value="True" />
            <Setter Property="DynamicData.Data">
                <Setter.Value>
                    <DynamicDataSource>
                        <DynamicDataItem Name="ItemBackgroundStyle"
                                         DataType="Style">
                            <DynamicDataItem.Value>
                                <Style TargetType="{Type FZMaterial}">
                                    <Setter Property="Preset" Value="{Roundtangle CornerRadius=2}"/>
                                </Style>
                            </DynamicDataItem.Value>
                        </DynamicDataItem>
                    </DynamicDataSource>
                </Setter.Value>
            </Setter>
        </Style>
        <Style BasedOn="{StaticResource A_Style_ListBoxItem_TextMenu_NotFocusable}"
               TargetType="ListBoxItem"
               x:Key="A_Style_ListBoxItem_AuctionListings_Empty">
            <Setter Property="Template">
                <Setter.Value>
                    <ControlTemplate TargetType="ListBoxItem">
                        <local:FZMaterial Color="{StaticResource H_Color_Glass_Purple_40pc}" />
                    </ControlTemplate>
                </Setter.Value>
            </Setter>
            <Setter Property="Height"
                    Value="194" />
            <Setter Property="Margin"
                    Value="0,0,0,6" />
            <Setter Property="Focusable"
                    Value="False" />
        </Style>

        <Style TargetType="local:FZTextBlock"
               x:Key="A_Style_FZTextBlock_Auction_CarDetail">
            <Setter Property="HorizontalAlignment"
                    Value="Left" />
            <Setter Property="LineAdjust"
                    Value="-0.35" />
            <Setter Property="VerticalAlignment"
                    Value="Top" />
            <Setter Property="StretchDirection"
                    Value="DownOnly" />
            <Setter Property="CapHeight"
                    Value="22" />
            <Setter Property="Color"
                    Value="{StaticResource A_Color_AuctionHouse_PillDetailText}" />
            <Setter Property="TextAlignment"
                    Value="Left" />
            <Setter Property="TextTrimming"
                Value="CharacterEllipsis" />
            <Setter Property="ClipToBounds"
                    Value="False"/>
            <Setter Property="Stretch"
                    Value="None"/>
            <Setter Property="HorizontalAlignment"
                    Value="Stretch"/>
            <Setter Property="AutoScroll"
                    Value="{StaticResource A_AutoScrollSettings_CarName}"/>
            <Setter Property="AutoScroll.AllowScrolling"
                    Value="False"/>
            <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>
                <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 x:Key="A_Style_FZTextBlock_Auction_CarName" TargetType="FZTextBlock"
            BasedOn="{StaticResource A_Style_FZTextBlock_Auction_CarDetail}">
            <Setter Property="ScreenReader.Event" Value="OnChange"/>
            <Setter Property="ScreenReader.LineType" Value="SelectedItem"/>
            <Setter Property="MultiStringFormatter.Param0" Value="{Binding CarModel}"/>
            <Setter Property="MultiStringFormatter.Param1" Value="{Binding CarYear}"/>
            <Setter Property="MultiStringFormatter.Param2" Value="{Binding CarManufacturer}"/>
            <Setter Property="MultiStringFormatter.Format" Value="{Loc Main.IDS_ScreenReader_Format_CarSelect_CarRecord}"/>
            <Style.Triggers>
                <DataTrigger Binding="{Binding Path=(Selector.IsSelected), RelativeSource={RelativeSource AncestorType=ListBoxItem}}" Value="True">
                    <Setter Property="ScreenReader.Line" Value="{Binding (MultiStringFormatter.Output), RelativeSource={RelativeSource Self}}"/>
                </DataTrigger>
            </Style.Triggers>
        </Style>
        <Style x:Key="A_Style_Control_AuctionHouse_CarClass" TargetType="Control"
            BasedOn="{StaticResource H_Style_TemplatedElement_CarClassBadge}">
            <Setter Property="ScreenReader.Event" Value="OnChange"/>
            <Setter Property="ScreenReader.LineType" Value="SelectedDetails"/>
            <Setter Property="MultiStringFormatter.Param0" Value="{Binding CarClass, Converter={StaticResource A_CarClassToStringConverter}}"/>
            <Setter Property="MultiStringFormatter.Param1" Value="{Binding CarPI, Converter={StaticResource A_PIConverter}}"/>
            <Setter Property="MultiStringFormatter.Param2" Value="{Binding PowertrainID, Converter={StaticResource A_PowertrainToStringConverter}}"/>
            <Setter Property="MultiStringFormatter.Param3" Value="{Binding Rarity, Converter={StaticResource A_Converter_RarityToNameString}}"/>
            <Setter Property="MultiStringFormatter.Format" Value="{local:Loc Main.IDS_ScreenReader_Format_CarSelect_PerformanceInfo}"/>
            <Style.Triggers>
                <DataTrigger Binding="{Binding Path=(Selector.IsSelected), RelativeSource={RelativeSource AncestorType=ListBoxItem}}" Value="True">
                    <Setter Property="ScreenReader.Line" Value="{Binding (MultiStringFormatter.Output), RelativeSource={RelativeSource Self}}"/>
                </DataTrigger>
            </Style.Triggers>
        </Style>
        <Style TargetType="ContentControl"
               x:Key="A_Style_ContentControl_BidBox_Small">
            <Style.Resources>
                <TextAlignment x:Key="A_TextAlignment_BidBox_Title">Right</TextAlignment>
            </Style.Resources>
            <Setter Property="Template"
                    Value="{StaticResource A_Template_ContentControl_BidBox}" />
        </Style>
        <Style TargetType="ContentControl"
               BasedOn="{StaticResource A_Style_ContentControl_BidBox_Small}"
               x:Key="A_Style_ContentControl_BidBox_Small_OnItem">
            <Style.Resources>
                <TextAlignment x:Key="A_TextAlignment_BidBox_Title">Right</TextAlignment>
                <Style x:Key="A_Style_FZTextBlock_BidBoxTitle_Dynamic"
                       TargetType="{x:Type local:FZTextBlock}"
                       BasedOn="{StaticResource A_Style_FZTextBlock_BidBoxTitle_Default}">
                    <Setter Property="FontFamily" Value="Horizon_B"/>
                    <Style.Triggers>
                        <DataTrigger Binding="{Binding NoActions}"
                                     Value="True">
                            <Setter Property="local:BindingProxy.A"
                                    Value="{StaticResource A_Color_AuctionHouse_NoActionsText}" />
                        </DataTrigger>
                        <DataTrigger Binding="{Binding Ended}"
                                     Value="True">
                            <Setter Property="local:BindingProxy.A"
                                    Value="{StaticResource A_Color_AuctionHouse_Expired}" />
                        </DataTrigger>
                    </Style.Triggers>
                </Style>
            </Style.Resources>
            <Setter Property="Template"
                    Value="{StaticResource A_Template_ContentControl_BidBox}" />
        </Style>
        <Style BasedOn="{StaticResource A_Style_ContentControl_BidBox_HighestBid}"
               TargetType="ContentControl"
               x:Key="A_Style_ContentControl_BidBox_Small_HighestBid">
            <Style.Resources>
                <TextAlignment x:Key="A_TextAlignment_BidBox_Title">Right</TextAlignment>
            </Style.Resources>
        </Style>
        <Style BasedOn="{StaticResource A_Style_ContentControl_BidBox_Small_HighestBid}"
               TargetType="ContentControl"
               x:Key="A_Style_ContentControl_BidBox_Small_HighestBid_OnItem">
            <Style.Resources>
                <TextAlignment x:Key="A_TextAlignment_BidBox_Title">Right</TextAlignment>
                <Style x:Key="A_Style_FZTextBlock_BidBoxTitle_Dynamic"
                       TargetType="{x:Type local:FZTextBlock}"
                       BasedOn="{StaticResource A_Style_FZTextBlock_BidBoxTitle_Default}">
                    <Setter Property="FontFamily" Value="Horizon_B"/>
                    <Style.Triggers>
                        <DataTrigger Binding="{Binding NoActions}"
                                     Value="True">
                            <Setter Property="local:BindingProxy.A"
                                    Value="{StaticResource A_Color_AuctionHouse_NoActionsText}" />
                        </DataTrigger>
                        <DataTrigger Binding="{Binding Ended}"
                                     Value="True">
                            <Setter Property="local:BindingProxy.A"
                                    Value="{StaticResource A_Color_AuctionHouse_Expired}" />
                        </DataTrigger>
                    </Style.Triggers>
                </Style>
            </Style.Resources>
        </Style>
        <Style x:Key="A_Style_FZMaterial_AuctionItemTimeRemaining"
               TargetType="{x:Type local:FZMaterial}">
            <Setter Property="Color"
                    Value="{StaticResource H_Color_Primary_Purple}" />
            <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>
        <local:LinearTransformConverter Add="1"
                                        Scale="-1"
                                        x:Key="A_InvertConverter" />
        <Style x:Key="A_Style_FZTextBlock_Auction_Pill_CreditValueText_CurrentBidPrice"
               BasedOn="{StaticResource A_Style_FZTextBlock_Auction_Pill_CreditValueText}"
               TargetType="local:FZTextBlock">
            <Setter Property="Color"
                    Value="{StaticResource H_Color_Primary_Purple}" />
        </Style>
        <Style x:Key="A_Style_FZTextBlock_Auction_Pill_CreditValueText_BuyOutPrice" TargetType="local:FZTextBlock"
               BasedOn="{StaticResource A_Style_FZTextBlock_Auction_Pill_CreditValueText}">
            <Setter Property="Color" Value="{StaticResource H_Color_Primary_Black}" />
            <Setter Property="FontFamily" Value="Horizon_A" />
            <Setter Property="Margin" Value="10,0,0,0" />
            <Setter Property="CapHeight" Value="25" />
            <Setter Property="VerticalAlignment" Value="Center" />
            <Setter Property="HorizontalAlignment" Value="Left" />
            <Setter Property="Stretch" Value="None" />
            <Setter Property="MaxWidth" Value="200" />
            <Setter Property="AutoScroll" Value="{StaticResource A_AutoScrollSettings_CarName}" />
            <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>

        <Style x:Key="A_Style_Control_BuyOut" TargetType="ContentControl">
            <Setter Property="ScreenReader.Event" Value="OnChange" />
            <Setter Property="ScreenReader.LineType" Value="ItemDescription" />
            <Setter Property="MultiStringFormatter.Param0" Value="{Binding HighestBid, Converter={StaticResource A_NumUnitConverter_NoUnit_0dp}}" />
            <Setter Property="MultiStringFormatter.Param1" Value="{Binding Buyout, Converter={StaticResource A_NumUnitConverter_NoUnit_0dp}}" />
            <Setter Property="MultiStringFormatter.Format" Value="{Loc Main.IDS_ScreenReader_Format_AuctionHouse_HighestBid_BuyOut}" />
            <Setter Property="Template">
                <Setter.Value>
                    <ControlTemplate>
                        <StackPanel Orientation="Horizontal">
                            <FZMaterial x:Name="BuyoutIcon"
                                        Width="50"
                                        Height="50"
                                        Stretch="Uniform"
                                        Margin="10,0,0,0"
                                        VerticalAlignment="Center"
                                        Color="{StaticResource H_Color_Primary_Grey_70pc}"
                                        ImageSource="/ForzaUI;component/Textures/Anthem/Icons/Auction/Buy_Out_Icon.png"/>
                            <Control x:Name="CreditsIcon"
                                        Style="{StaticResource H_Style_Control_CreditsIcon}"
                                        Width="31"
                                        Height="31"
                                        Margin="10,0,0,0"
                                        VerticalAlignment="Center"/>
                            <FZTextBlock x:Name="BuyoutPrice"
                                         Style="{StaticResource A_Style_FZTextBlock_Auction_Pill_CreditValueText_BuyOutPrice}"
                                         Text="{Binding Buyout, Converter={StaticResource A_NumUnitConverter_NoUnit_0dp}}"
                                         TrackingAdjust="-0.005"/>
                            <FZMaterial x:Name="Arrow"
                                        Visibility="Collapsed"
                                        Style="{StaticResource A_Style_FZMaterial_BuyoutPriceHigh_Arrow}"/> 
                        </StackPanel>
                        <ControlTemplate.Triggers>
                            <DataTrigger Binding="{Binding IsBuyoutAboveCarPrice}" Value="True">
                                <Setter TargetName="Arrow" Property="Visibility" Value="Visible"/>
                                <Setter TargetName="BuyoutPrice" Property="Color" Value="{StaticResource A_Color_AuctionHouse_HighPrice}"/>
                            </DataTrigger>
                            <DataTrigger Binding="{Binding Path=(Selector.IsSelected), RelativeSource={RelativeSource AncestorType=ListBoxItem}}" Value="True">
                                <Setter Property="ScreenReader.Line" Value="{Binding (MultiStringFormatter.Output), RelativeSource={RelativeSource Self}}"/>
                            </DataTrigger>
                        </ControlTemplate.Triggers>
                    </ControlTemplate>
                </Setter.Value>
            </Setter>
        </Style>

        <Style x:Key="A_Style_Control_AuctionHouse_Owned"
               TargetType="{x:Type Control}">
            <Setter Property="Margin" Value="10,10,0,0"/>
            <Setter Property="Template">
                <Setter.Value>
                    <ControlTemplate>
                        <local:FZMaterial Preset="{StaticResource A_FZMaterialPresetRoundtangle_FlatPanel_InnerInnerAll}"
                                          Color="{StaticResource H_Color_Primary_Black}"
                                          Visibility="{Binding IsOwned, Converter={StaticResource A_FZBooleanToVisibilityConverter}}"
                                          HorizontalAlignment="Left"
                                          VerticalAlignment="Top">
                            <local:FZMaterial Color="{StaticResource A_Color_AuctionHouse_BidNow_Light}"
                                              Margin="2">
                                <local:FZTextBlock CapHeight="14"
                                                   Margin="7,3"
                                                   Color="{StaticResource H_Color_Primary_Black}"
                                                   HorizontalAlignment="Center"
                                                   VerticalAlignment="Center"
                                                   Text="{local:Loc Upgrades_flow.IDS_Owned}"/>
                            </local:FZMaterial>
                        </local:FZMaterial>
                    </ControlTemplate>
                </Setter.Value>
            </Setter>
        </Style>

        <Double x:Key="A_AuctionOver_Opacity">0.5</Double>
        
        <local:MappingConverter x:Key="A_Converter_AuctionState_to_Opacity" Default="1.0">
            <local:MappingConverterEntry Key="{x:Static local:AuctionState.Expired}" Value="{StaticResource A_AuctionOver_Opacity}"/>
            <local:MappingConverterEntry Key="{x:Static local:AuctionState.Won}" Value="{StaticResource A_AuctionOver_Opacity}"/>
            <local:MappingConverterEntry Key="{x:Static local:AuctionState.DidntSell}" Value="{StaticResource A_AuctionOver_Opacity}"/>
            <local:MappingConverterEntry Key="{x:Static local:AuctionState.Sold}" Value="{StaticResource A_AuctionOver_Opacity}"/>
            <local:MappingConverterEntry Key="{x:Static local:AuctionState.Lost}" Value="{StaticResource A_AuctionOver_Opacity}"/>
            <local:MappingConverterEntry Key="{x:Static local:AuctionState.Banned}" Value="{StaticResource A_AuctionOver_Opacity}"/>
            <local:MappingConverterEntry Key="{x:Static local:AuctionState.Bought}" Value="{StaticResource A_AuctionOver_Opacity}"/>
        </local:MappingConverter>
        
        <Style x:Key="A_Style_FZTextBlock_AuctionItem_TimeRemaining" TargetType="local:FZTextBlock">
            <Setter Property="Text" Value="{Binding TimeRemaining, Converter={StaticResource A_Converter_AuctionTime}}" />
            <Setter Property="FontFamily" Value="Horizon_A" />
            <Setter Property="CapHeight" Value="16" />
            <Setter Property="Stretch" Value="Uniform" />
            <Setter Property="StretchDirection" Value="DownOnly" />
            <Setter Property="VerticalAlignment" Value="Center" />
            <Setter Property="Color" Value="{StaticResource H_Color_Primary_Black}" />
            <Setter Property="Visibility" Value="{Binding State, Converter={StaticResource A_Converter_AuctionState_to_SoldVisibility_Inverse}}" />
            <Setter Property="ScreenReader.Event" Value="OnChange" />
            <Setter Property="ScreenReader.LineType" Value="TimeState" />
            <Setter Property="MultiStringFormatter.Param0" Value="{Binding Text, RelativeSource={RelativeSource Self}}" />
            <Setter Property="MultiStringFormatter.Format" Value="{Loc Main.IDS_ScreenReader_Format_TimeRemaining}" />
            <Style.Triggers>
                <DataTrigger Binding="{Binding Ended}" Value="True">
                    <Setter Property="Color" Value="{StaticResource A_Color_AuctionHouse_Expired}" />
                    <Setter Property="Text" Value="{local:Loc AuctionHouse.IDS_Ended}" />
                </DataTrigger>
                <DataTrigger Binding="{Binding NoActions}" Value="True">
                    <Setter Property="Color" Value="{StaticResource A_Color_AuctionHouse_NoActionsText}" />
                </DataTrigger>
                <MultiDataTrigger>
                    <MultiDataTrigger.Conditions>
                        <Condition Binding="{Binding Path=(Selector.IsSelected), RelativeSource={RelativeSource AncestorType=ListBoxItem}}" Value="True"/>
                        <Condition Binding="{Binding Visibility, RelativeSource={RelativeSource Self}}" Value="{x:Static Visibility.Visible}"/>
                    </MultiDataTrigger.Conditions>
                    <Setter Property="ScreenReader.Line" Value="{Binding (MultiStringFormatter.Output), RelativeSource={RelativeSource Self}}"/>
                </MultiDataTrigger>
            </Style.Triggers>
        </Style>
        <Style x:Key="A_Control_AuctionState" TargetType="Control">
            <Style.Resources>
                <local:MappingConverter x:Key="A_Converter_AuctionState_to_Visibility_AuctionState" Default="{x:Static Visibility.Hidden}">
                    <local:MappingConverterEntry Key="{x:Static local:AuctionState.Winning}" Value="{x:Static Visibility.Visible}"/>
                    <local:MappingConverterEntry Key="{x:Static local:AuctionState.Outbid}" Value="{x:Static Visibility.Visible}"/>
                </local:MappingConverter>
            </Style.Resources>
            <Setter Property="Template" Value="{StaticResource A_Template_Control_Auction_StateBox}"/>
            <Setter Property="HorizontalAlignment" Value="Right"/>
            <Setter Property="VerticalAlignment" Value="Bottom"/>
            <Setter Property="Visibility" Value="{Binding State, Converter={StaticResource A_Converter_AuctionState_to_Visibility_AuctionState}}"/>
            <Setter Property="ScreenReader.Event" Value="OnChange"/>
            <Setter Property="ScreenReader.LineType" Value="SelectedGroupState"/>
            <Style.Triggers>
                <MultiDataTrigger>
                    <MultiDataTrigger.Conditions>
                        <Condition Binding="{Binding Path=(Selector.IsSelected), RelativeSource={RelativeSource AncestorType=ListBoxItem}}" Value="True"/>
                        <Condition Binding="{Binding Visibility, RelativeSource={RelativeSource Self}}" Value="{x:Static Visibility.Visible}"/>
                    </MultiDataTrigger.Conditions>
                    <Setter Property="ScreenReader.Line" Value="{Binding State, Converter={StaticResource A_Converter_AuctionState_to_AuctionStateText}}"/>
                </MultiDataTrigger>
            </Style.Triggers>
        </Style>
        <DataTemplate x:Key="A_DataTemplate_AuctionListings">
            <DataTemplate.Resources>
                <local:UIStoryboard x:Key="PART_Storyboard_BlendValueInputChanged">
                    <DoubleAnimationUsingKeyFrames FillBehavior="Stop"
                                                   Storyboard.TargetName="{x:Null}"
                                                   Storyboard.TargetProperty="(local:BlendValue.Blend)">
                        <DiscreteDoubleKeyFrame KeyTime="0:0:0"
                                                Value="0" />
                        <EasingDoubleKeyFrame KeyTime="0:0:0.36"
                                              Value="1" />
                    </DoubleAnimationUsingKeyFrames>
                </local:UIStoryboard>
            </DataTemplate.Resources>
            <Grid IsHitTestVisible="False">
                <Grid Opacity="{Binding Path=(local:BlendValue.Output), RelativeSource={RelativeSource Self}, Converter={StaticResource A_InvertConverter}}"
                      local:BlendValue.Input="{Binding HasFailed}"
                      local:BlendValue.InputChangedStoryboard="{StaticResource PART_Storyboard_BlendValueInputChanged}">
                    <ProgressBar Height="56"
                                 HorizontalAlignment="Center"
                                 IsIndeterminate="True"
                                 Opacity="{Binding Path=(local:BlendValue.Output), RelativeSource={RelativeSource Self}, Converter={StaticResource A_InvertConverter}}"
                                 Style="{StaticResource A_Style_ProgressBar_WaitSpinnerDark}"
                                 VerticalAlignment="Center"
                                 local:BlendValue.Input="{Binding Loaded}"
                                 local:BlendValue.InputChangedStoryboard="{StaticResource PART_Storyboard_BlendValueInputChanged}"
                                 x:Name="Spinner" />
                </Grid>
                <DockPanel LastChildFill="True"
                           Opacity="{Binding Path=(local:BlendValue.Output), RelativeSource={RelativeSource Self}}"
                           local:BlendValue.Input="{Binding Loaded}"
                           local:BlendValue.InputChangedStoryboard="{StaticResource PART_Storyboard_BlendValueInputChanged}"
                           x:Name="Content">
                    <Grid DockPanel.Dock="Left"
                          Height="194" 
                          Width="240">
                        <Grid>
                            <!-- Thumbnail -->
                            <Grid Margin="0,0,0,36">
                                <local:FZMaterial x:Name="RarityBackground"
                                                  ImageSource="{Binding Rarity, Converter={StaticResource A_Converter_RarityToMaterial_CarSelectRarity}}"
                                                  VerticalAlignment="Stretch"
                                                  HorizontalAlignment="Stretch"
                                                  Margin="5"/>
                                <local:FZMaterial VerticalAlignment="Stretch"
                                                  HorizontalAlignment="Stretch"
                                                  ImageSource="{Binding CarThumbnail}"
                                                  Stretch="Uniform"/>
                            </Grid>
                            <!-- Auction State -->
                            <Control Margin="0,0,0,45"
                                     Style="{StaticResource A_Control_AuctionState}" 
                                     BindingProxy.A="{Binding State}"/>
                            <!-- SOLD!/NOT SOLD! -->
                            <Control Template="{StaticResource A_Template_Control_Auction_FinalState}"
                                     BindingProxy.A="{Binding State}"/>

                            <Decorator Visibility="{Binding State, Converter={StaticResource A_Converter_AuctionState_to_SoldVisibility_Inverse}}">
                                <local:FZMaterial ImageSource="/ForzaUI;component/Textures/Anthem/A_DLC.png"
                                                  HorizontalAlignment="Left"
                                                  VerticalAlignment="Bottom"
                                                  Color="{StaticResource H_Color_Primary_Black}"
                                                  Height="25"
                                                  Width="25"
                                                  Margin="9,0,0,43"
                                                  Visibility="{Binding IsDLC, Converter={StaticResource A_FZBooleanToVisibilityConverter}}" />
                            </Decorator>

                            <Decorator Visibility="{Binding State, Converter={StaticResource A_Converter_AuctionState_to_SoldVisibility_Inverse}}">
                                <Control Style="{StaticResource A_Style_Control_AuctionHouse_Owned}"/>
                            </Decorator>
                        </Grid>
                        <local:FZMaterial Preset="{Binding TimeRemaining, Converter={StaticResource A_Converter_RemainingTime_Gradient}}"
                                          Visibility="{Binding State, Converter={StaticResource A_Converter_AuctionState_to_SoldVisibility_Inverse}}"
                                          VerticalAlignment="Bottom"
                                          Height="36">
                            <!-- Time remaining -->
                            <StackPanel HorizontalAlignment="Left"
                                        Orientation="Horizontal"
                                        VerticalAlignment="Center"
                                        Margin="10,0,0,0">
                                <local:FZMaterial Height="24"
                                                  Width="24"
                                                  Stretch="Uniform"
                                                  Margin="0,0,0,0"
                                                  ImageSource="/ForzaUI;component/Textures/Anthem/Icons/Auction/Clock_Icon.png"
                                                  VerticalAlignment="Center"
                                                  HorizontalAlignment="Left"
                                                  Color="{StaticResource H_Color_Primary_Black}" />
                                <Decorator Width="10" />
                                <local:FZTextBlock Style="{StaticResource A_Style_FZTextBlock_AuctionItem_TimeRemaining}"/>
                            </StackPanel>
                        </local:FZMaterial>
                        
                    </Grid>
                    <Grid Margin="10">
                        <!-- Car Name, Manufacturer and Year -->
                        <StackPanel HorizontalAlignment="Left"
                                    Orientation="Vertical"
                                    VerticalAlignment="Top"
                                    MaxWidth="550"
                                    Opacity="{Binding State, Converter={StaticResource A_Converter_AuctionState_to_Opacity}}">
                            <Decorator Height="11" />
                            <local:FZTextBlock Color="{StaticResource H_Color_Primary_Black}"
                                               LineAdjust="-0.35"
                                               Style="{StaticResource A_Style_FZTextBlock_Auction_CarName}"
                                               FontFamily="Horizon_A"
                                               Text="{Binding CarModel, Converter={StaticResource A_StringToUpper}}"
                                               Margin="0,0,120,0" />
                            <Decorator Height="11" />
                            <local:FZTextBlock FontFamily="Horizon_B"
                                               CapHeight="20"
                                               Style="{StaticResource A_Style_FZTextBlock_Auction_CarDetail}"
                                               Color="{StaticResource H_Color_Primary_Grey_70pc}"
                                               VerticalAlignment="Center">
                                <local:FZRun Text="{Binding CarYear}"
                                             FontFamily="Horizon_B"/>
                                <local:FZRun Text=" " />
                                <local:FZRun Text="{Binding CarManufacturer, Converter={StaticResource A_StringToUpper}}"/>
                            </local:FZTextBlock>
                        </StackPanel>
                        <!-- Car Class -->
                        <StackPanel HorizontalAlignment="Right"
                                    Orientation="Horizontal"
                                    VerticalAlignment="Top"
                                    Opacity="{Binding State, Converter={StaticResource A_Converter_AuctionState_to_Opacity}}">
                            <Control Style="{StaticResource A_Style_Control_AuctionHouse_CarClass}"
                                     HorizontalAlignment="Right"
                                     local:BindingProxy.A="{Binding CarPI}"
                                     local:BindingProxy.B="{Binding CarClass}"
                                     Height="34" />
                            
                        </StackPanel>

                        <!-- Seperator -->
                        <local:FZMaterial Color="{StaticResource H_Color_Primary_Black}"
                                  Preset="{StaticResource A_FZMaterialPreset_FlatPanel_Base}"
                                  Color="{StaticResource H_Color_Primary_Grey_70pc}"
                                  VerticalAlignment="Top"
                                  x:Name="Seperator"
                                  Height="4"
                                  Margin="0,99,0,0"
                                  Opacity="{Binding State, Converter={StaticResource A_Converter_AuctionState_to_Opacity}}" />

                        <!-- Highest Bid and Buyout -->
                        <StackPanel Orientation="Horizontal"
                                    VerticalAlignment="Bottom"
                                    Margin="0,0,0,11"
                                    Opacity="{Binding State, Converter={StaticResource A_Converter_AuctionState_to_Opacity}}">

                            <local:FZMaterial x:Name="HighestBidIcon"
                                              Width="50"
                                              Height="50"
                                              Stretch="Uniform"
                                              VerticalAlignment="Center"
                                              Opacity="1"
                                              Color="{StaticResource H_Color_Primary_Grey_70pc}"
                                              ImageSource="/ForzaUI;component/Textures/Anthem/Icons/Auction/Highest_Bid.png"/>
                                              
                            <Control Style="{StaticResource H_Style_Control_CreditsIcon}"
                                              Width="31"
                                              Height="31"
                                              Margin="10,0,0,0"
                                              VerticalAlignment="Center"/>
                                              
                            <local:FZTextBlock x:Name="BidderClubTagName"
                                               Text="{Binding HighestBid, Converter={StaticResource A_NumUnitConverter_NoUnit_0dp}}"
                                               TrackingAdjust="-0.005"
                                               MinWidth="102"
                                               Style="{StaticResource A_Style_FZTextBlock_Auction_Pill_CreditValueText_BuyOutPrice}"/>
                            <Decorator Width="20"/>
                            <ContentControl Style="{StaticResource A_Style_Control_BuyOut}"/>
                        </StackPanel>
                    </Grid>
                </DockPanel>
                <local:FZMaterial Width="56"
                                  Height="56"
                                  Color="#55000000"
                                  Opacity="{Binding Path=(local:BlendValue.Output), RelativeSource={RelativeSource Self}}"
                                  HorizontalAlignment="Center"
                                  VerticalAlignment="Center"
                                  local:BlendValue.Input="{Binding HasFailed}"
                                  local:BlendValue.InputChangedStoryboard="{StaticResource PART_Storyboard_BlendValueInputChanged}"
                                  ImageSource="/ForzaUI;component/Textures/Anthem/Icons/Cross.png" />
            </Grid>
        </DataTemplate>

        <Style TargetType="FrameworkElement"
               x:Key="A_Style_FrameworkElement_HasResults">
            <Setter Property="Visibility"
                    Value="Hidden" />
            <Style.Triggers>
                <DataTrigger Binding="{Binding Collection.CountState}"
                             Value="{x:Static local:AsyncItemsCountState.Results}">
                    <DataTrigger.Setters>
                        <Setter Property="Visibility"
                                Value="Visible" />
                    </DataTrigger.Setters>
                </DataTrigger>
                <DataTrigger Binding="{Binding SelectedItem.HasFailed, ElementName=PART_ItemList}"
                             Value="True">
                    <DataTrigger.Setters>
                        <Setter Property="Visibility"
                                Value="Hidden" />
                    </DataTrigger.Setters>
                </DataTrigger>
            </Style.Triggers>
        </Style>
        <Style TargetType="FrameworkElement"
               x:Key="A_Style_FrameworkElement_NoItemsYet">
            <Setter Property="Visibility"
                    Value="Visible" />
            <Style.Triggers>
                <DataTrigger Binding="{Binding Collection.CountState}"
                             Value="{x:Static local:AsyncItemsCountState.Results}">
                    <DataTrigger.Setters>
                        <Setter Property="Visibility"
                                Value="Hidden" />
                    </DataTrigger.Setters>
                </DataTrigger>
                <DataTrigger Binding="{Binding SelectedItem.HasFailed, ElementName=PART_ItemList}"
                             Value="True">
                    <DataTrigger.Setters>
                        <Setter Property="Visibility"
                                Value="Visible" />
                    </DataTrigger.Setters>
                </DataTrigger>
            </Style.Triggers>
        </Style>
        <Style TargetType="FrameworkElement"
               x:Key="A_Style_FrameworkElement_Loading">
            <Setter Property="Visibility"
                    Value="Hidden" />
            <Style.Triggers>
                <DataTrigger Binding="{Binding Collection.CountState}"
                             Value="{x:Static local:AsyncItemsCountState.Loading}">
                    <DataTrigger.Setters>
                        <Setter Property="Visibility"
                                Value="Visible" />
                    </DataTrigger.Setters>
                </DataTrigger>
            </Style.Triggers>
        </Style>
        <Style BasedOn="{StaticResource A_Style_FZTextBlock_HorizonA}"
               TargetType="local:FZTextBlock"
               x:Key="A_Style_FZTextBlock_NoResultsText">
            <Setter Property="Visibility"
                    Value="Visible" />
            <Setter Property="TextWrapping"
                    Value="Wrap" />
            <Setter Property="Text"
                    Value="{local:Loc AuctionHouse.IDS_NoResults}" />
            <Setter Property="Margin"
                    Value="100,0" />
            <Setter Property="FontSize"
                    Value="42" />
            <Setter Property="TextAlignment"
                    Value="Center" />
            <Setter Property="Color"
                    Value="{StaticResource A_Color_SubHeader_Text}" />
            <Style.Triggers>
                <DataTrigger Binding="{Binding Collection.CountState}"
                             Value="{x:Static local:AsyncItemsCountState.Loading}">
                    <DataTrigger.Setters>
                        <Setter Property="Visibility"
                                Value="Hidden" />
                    </DataTrigger.Setters>
                </DataTrigger>
                <DataTrigger Binding="{Binding Collection.CountState}"
                             Value="{x:Static local:AsyncItemsCountState.Error}">
                    <DataTrigger.Setters>
                        <Setter Property="Text"
                                Value="{Binding Collection.ErrorString, Converter={StaticResource A_StringToUpper}}" />
                    </DataTrigger.Setters>
                </DataTrigger>
                <DataTrigger Binding="{Binding Path=SelectedItem.HasFailed, ElementName=PART_ItemList}"
                             Value="True">
                    <DataTrigger.Setters>
                        <Setter Property="Text"
                                Value="{Binding Path=SelectedItem.ErrorString, ElementName=PART_ItemList, Converter={StaticResource A_StringToUpper}}" />
                        <Setter Property="Visibility"
                                Value="Visible" />
                    </DataTrigger.Setters> 
                </DataTrigger>
            </Style.Triggers>
        </Style>

        <ControlTemplate x:Key="H_Template_ContentControl_BidBox" TargetType="ContentControl">
            <Grid>
                <local:FZTextBlock Text="{Binding Tag, RelativeSource={RelativeSource AncestorType=ContentControl}}"
                                               HorizontalAlignment="Left"
                                               CapHeight="16"
                                               Color="{StaticResource H_Color_Primary_White}"
                                               Opacity="0.3"
                                               FontFamily="Horizon_B"/>
                <ContentPresenter/>
            </Grid>
        </ControlTemplate>
        
        <Style TargetType="ContentControl"
               x:Key="H_Style_ContentControl_BidBox_HighestBid">
            <Setter Property="Template"  Value="{StaticResource H_Template_ContentControl_BidBox}"/>
            <Setter Property="Tag"
                Value="{local:Loc AuctionHouse.IDS_HighestBid}" />
            <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>
        
    </Page.Resources>
    <local:UIPageTransitionManager.TransitionManager>
        <local:UIPageTransitionManager Preset="{StaticResource A_UIPageTransitionManagerPreset_Menu}" />
    </local:UIPageTransitionManager.TransitionManager>
    <Grid x:Name="PART_LayoutRoot">
       <Control Style="{StaticResource A_Style_Control_ScreenBackground}" />
        <!-- Bars -->
        <local:PlayerBarControl Style="{StaticResource A_Style_PlayerBarControl}"
                                x:Name="TopBar" />
        <ContentControl Style="{StaticResource A_Style_ButtonBar}"
                        x:Name="BottomBar">
            <ContentControl Style="{StaticResource A_Style_ContentControl_DefaultButtonBar}"
                            local:ControllerButtonPanel.BDescription="{local:Loc HelpButtons.IDS_Back}"
                            x:Name="PART_DefaultHelpPanel" />
        </ContentControl>
        <Grid Style="{StaticResource A_Style_FrameworkElement_LayoutRoot}">
            <local:RoutedEventCommand x:Name="ItemListPageDown"
                                      RoutedEvent="UIElement.MouseLeftButtonUp"
                                      Command="{Binding ScrollPageNextCommand, ElementName=PART_ItemList}" />
            <local:RoutedEventCommand x:Name="ItemListPageUp"
                                      RoutedEvent="UIElement.MouseLeftButtonUp"
                                      Command="{Binding ScrollPagePrevCommand, ElementName=PART_ItemList}" />

            <StackPanel HorizontalAlignment="Center"
                        Margin="0,0,0,19" 
                        Orientation="Vertical"
                        VerticalAlignment="Center">
                <Decorator HorizontalAlignment="Left"
                           Style="{StaticResource A_Style_FrameworkElement_DefaultTransition_0}">
                    <ContentControl Content="{local:Loc ScreenTitles.IDS_AuctionHouse}"
                                    Style="{StaticResource A_Style_ContentControl_ScreenTitleBlock}"
                                    Width="438"
                                    Tag="{Binding Subtitle}"
                                    local:BindingProxy.A="/ForzaUI;component/Textures/Anthem/Icons/Titles/AuctionHouse.png" />
                </Decorator>
                <!-- Content -->
                <StackPanel Orientation="Horizontal">
                    <Grid Panel.ZIndex="1"  
                          Width="870">
                        <!-- List -->
                        <Grid KeyboardNavigation.DirectionalNavigation="Contained"
                              Style="{StaticResource A_Style_FrameworkElement_DefaultTransition_3}">
                            <DockPanel LastChildFill="True">
                                <Grid Height="800">
                                    <!-- 808 height instead of 800 is so that when we hover the last item, the list doesn't scroll down -->
                                    <WrapListBox
                                        FocusOnPageFocusGained.SelectorSelectedItem="True"
                                        Width="870"
                                        Template="{StaticResource H_ControlTemplate_Carousel_Default}"
                                        ScrollOrientation="Vertical"
                                        Height="808"
                                        x:Name="PART_ItemList"
                                        ItemHeight="202"
                                        ItemWidth="870"
                                        WrapSelection="True"
                                        AlternationCount="10000"
                                        ItemsSource="{Binding Collection}"
                                        ItemTemplate="{StaticResource A_DataTemplate_AuctionListings}"
                                        ItemContainerStyle="{StaticResource A_Style_ListBoxItem_AuctionListings}"
                                        EmptyItemStyle="{StaticResource A_Style_ListBoxItem_AuctionListings_Empty}"
                                        Panel.ZIndex="1">
                                        <WrapListBox.Resources>
                                            <Thickness x:Key="A_Margin_VirtualizingWrapPanel">0</Thickness>
                                        </WrapListBox.Resources>
                                    </WrapListBox>
                                </Grid>
                            </DockPanel>
                        </Grid>
                    </Grid>
                    <Decorator Width="10" />
                    <ScrollBar
                            Style="{StaticResource A_Style_ScrollBar_Default}"
                            Minimum="{Binding ScrollWindowMin, ElementName=PART_ItemList}"
                            Maximum="{Binding ScrollWindowMax, ElementName=PART_ItemList}"
                            Value="{Binding ScrollWindowValue, ElementName=PART_ItemList, Mode=TwoWay}"
                            ViewportSize="{Binding ScrollWindowSize, ElementName=PART_ItemList}" />
                    <Decorator Width="10" />
                    <Decorator Width="880">
                        <Grid>
                            <Grid Style="{StaticResource A_Style_FrameworkElement_HasResults}">
                                <DockPanel DataContext="{Binding SelectedItem, ElementName=PART_ItemList}"
                                           LastChildFill="True">
                                    <!-- Detail panel -->
                                    <StackPanel Orientation="Vertical" DockPanel.Dock="Bottom"
                                          Style="{StaticResource A_Style_FrameworkElement_DefaultTransition_2}">
                                        <StackPanel Orientation="Horizontal" >
                                            <!-- Highest Bidder and Highest Bid -->
                                            <local:FZMaterial Width="438"
                                                            Height="206"
                                                            HorizontalAlignment="Stretch"
                                                            Style="{StaticResource H_Style_Container_GlassHighBlur_Description}"
                                                            Margin="0">
                                                <StackPanel Orientation="Vertical"
                                                            Margin="20,10,0,0"
                                                            Visibility="{Binding Loaded, Converter={StaticResource A_FZBooleanToVisibilityConverter_UseHidden}, FallbackValue=Hidden}">
                                                
                                                    <!-- Highest bidder -->
                                                    <Control HorizontalAlignment="Left"
                                                            Style="{StaticResource A_Style_Control_Auction_HighestBidder_Dark}"
                                                            local:BindingProxy.A="{StaticResource H_Color_Primary_White}"
                                                            local:BindingProxy.B="{StaticResource H_Color_Primary_Grey_70pc}" />

                                                    <Decorator Height="26" />

                                                    <!-- Highest Bid -->
                                                    <Control HorizontalAlignment="Left"
                                                            Template="{StaticResource A_Template_Control_Auction_HighestBid}" />
                                                </StackPanel>
                                            </local:FZMaterial>
                                            
                                            <Decorator Width="4" />

                                            <!-- Seller and Buyout -->
                                            <local:FZMaterial Style="{StaticResource H_Style_Container_GlassHighBlur_Description}"
                                                            Margin="0"
                                                            HorizontalAlignment="Stretch"
                                                            Width="438"
                                                            Height="206">
                                                <StackPanel Orientation="Vertical"
                                                            Margin="20,10,0,0"
                                                            Visibility="{Binding Loaded, Converter={StaticResource A_FZBooleanToVisibilityConverter_UseHidden}, FallbackValue=Hidden}">
                                                    <!-- Seller -->
                                                    <Control HorizontalAlignment="Left"
                                                            Style="{StaticResource A_Style_Control_Auction_Seller}"
                                                            local:BindingProxy.A="{StaticResource H_Color_Primary_White}"
                                                            local:BindingProxy.B="{StaticResource H_Color_Primary_Grey_70pc}" />

                                                    <Decorator Height="26" />

                                                    <!-- Buyout -->
                                                    <Control HorizontalAlignment="Left"
                                                             Template="{StaticResource A_Template_Control_Auction_Buyout}" />
                                                </StackPanel>
                                            </local:FZMaterial>
                                        </StackPanel>

                                        <Decorator Height="4" />
                                        <!-- Remaining Time -->
                                        <local:FZMaterial Height="50"
                                                          Margin="0"
                                                          Style="{StaticResource H_Style_Container_GlassHighBlur_Description}">
                                            <Grid Visibility="{Binding State, Converter={StaticResource A_Converter_AuctionState_to_SoldVisibility_Inverse}, FallbackValue=Hidden}">
                                                <!-- Remaining Time Clock -->
                                                <local:FZMaterial Height="28"
                                                                  Width="28"
                                                                  Stretch="Uniform"
                                                                  Margin="20,0,0,0"
                                                                  ImageSource="/ForzaUI;component/Textures/Anthem/Icons/Auction/Clock_Icon.png"
                                                                  VerticalAlignment="Center"
                                                                  HorizontalAlignment="Left"
                                                                  Color="{StaticResource H_Color_Primary_Yellow}" />

                                                <local:FZTextBlock Style="{StaticResource A_Style_FZTextBlock_AuctionItem_TimeRemaining}"
                                                                Color="{StaticResource H_Color_Primary_Yellow}"
                                                                CapHeight="22"
                                                                Margin="58,1,0,0"
                                                                VerticalAlignment="Center"/>

                                                <!-- Auction State -->
                                                <Control Margin="0,0,20,0"
                                                         HorizontalAlignment="Right"
                                                         VerticalAlignment="Center"
                                                         Template="{StaticResource A_Template_Control_Auction_StateBox}" 
                                                         BindingProxy.A="{Binding State}"/>
                                            </Grid>

                                        </local:FZMaterial>
                                    </StackPanel>
                                    <Decorator DockPanel.Dock="Bottom"
                                               Height="4" />
                                    <ContentControl Style="{StaticResource A_Style_FrameworkElement_DefaultTransition_2}"
                                                    Tag="{local:Loc AuctionHouse.IDS_AuctionDetails}"
                                                    Template="{StaticResource A_ControlTemplate_SidePanel}"> 
                                        <Grid Margin="20,21,20,18"
                                              Visibility="{Binding Loaded, Converter={StaticResource A_FZBooleanToVisibilityConverter_UseHidden}, FallbackValue=Hidden}">
                                            <!-- Background Dots -->
                                            <FZMaterial GreedyMeasure="True"
                                                        Stretch="Uniform"
                                                        Width="847"
                                                        Margin="0,50,0,0"
                                                        HorizontalAlignment="Center"
                                                        VerticalAlignment="Center"
                                                        ImageSource="/ForzaUI;component/Textures/Data_Bound/Anthem/SkillPerks/backing_dots.png"/>
                                            <!-- Thumbnail -->
                                            <local:FZMaterial GreedyMeasure="True"
                                                              HorizontalAlignment="Center"
                                                              ImageSource="{Binding CarThumbnail}"
                                                              Margin="0,25,0,0"
                                                              Stretch="Uniform"
                                                              VerticalAlignment="Center"
                                                              Width="670" />
                                            <!-- Car info -->
                                            <StackPanel HorizontalAlignment="Left"
                                                        Orientation="Vertical"
                                                        VerticalAlignment="Top">
                                                <local:FZTextBlock Color="{StaticResource A_Color_SubHeader_Text}"
                                                                   CapHeight="30"
                                                                   HorizontalAlignment="Stretch"
                                                                   LineAdjust="-0.35"
                                                                   Style="{StaticResource A_Style_FZTextBlock_Auction_CarDetail}"
                                                                   FontFamily="Horizon_A"
                                                                   Text="{Binding CarModel, Converter={StaticResource A_StringToUpper}}" 
                                                                   AutoScroll.AllowScrolling="True"
                                                                   TextTrimming="None"/>
                                                <Decorator Height="11" />
                                                <local:FZTextBlock Color="{StaticResource H_Color_Primary_Grey_70pc}"
                                                                   FontFamily="Horizon_B"
                                                                   CapHeight="28"
                                                                   Style="{StaticResource A_Style_FZTextBlock_Auction_CarDetail}"
                                                                   VerticalAlignment="Center">
                                                        <local:FZRun Text="{Binding CarYear}"
                                                                     FontFamily="Horizon_B"/>
                                                        <local:FZRun Text=" " />
                                                        <local:FZRun Text="{Binding CarManufacturer, Converter={StaticResource A_StringToUpper}}"/>
                                                </local:FZTextBlock>
                                                <Decorator Height="10" />
                                                <Control Style="{StaticResource A_Style_Control_AuctionHouse_RarityPillWithHEBonus}"
                                                         HorizontalAlignment="Left"/>
                                            </StackPanel>
                                            <StackPanel HorizontalAlignment="Left"
                                                        VerticalAlignment="Bottom"
                                                        Orientation="Horizontal">
                                                <Control Height="70"
                                                         Width="50"
                                                         Style="{StaticResource H_Style_TemplatedElement_CarClassBadgeBox}"
                                                         local:BindingProxy.A="{Binding CarPI}"
                                                         local:BindingProxy.B="{Binding CarClass}" />
                                                <Decorator Width="10" />
                                                <Control Style="{StaticResource A_Style_Control_DriveTrainDisplay_VerticalWithWhiteBackground}"/>

                                            </StackPanel>
                                            <Control Style="{StaticResource A_Style_Control_AuctionHouse_Owned}"
                                                     VerticalAlignment="Bottom"
                                                     HorizontalAlignment="Right"/>
                                        </Grid>
                                    </ContentControl>
                                </DockPanel>
                            </Grid>
                            <Grid Margin="0,0,0,-1"
                                  Style="{StaticResource A_Style_FrameworkElement_DefaultTransition_2}">
                                <local:FZMaterial Style="{StaticResource A_Style_FrameworkElement_NoItemsYet}"
                                                  Color="{StaticResource H_Color_Glass_Purple_20pc}"
                                                  Preset="{StaticResource A_FZMaterialPresetGlassRoundtangle_GlassPanel_OuterAll}">
                                    <Grid>
                                        <Grid Style="{StaticResource A_Style_FrameworkElement_Loading}">
                                            <ProgressBar Height="56"
                                                         HorizontalAlignment="Center"
                                                         IsIndeterminate="True"
                                                         Style="{StaticResource A_Style_ProgressBar_WaitSpinner}"
                                                         VerticalAlignment="Center"
                                                         x:Name="Spinner" />
                                        </Grid>
                                        <StackPanel HorizontalAlignment="Center"
                                                    VerticalAlignment="Center">
                                            <local:FZTextBlock Style="{StaticResource A_Style_FZTextBlock_NoResultsText}" />
                                            <Decorator Height="15" />
                                            <local:FZTextBlock Style="{StaticResource A_Style_FZTextBlock_NoResultsText}"
                                                               Text="{local:Loc AuctionHouse.IDS_PleaseTryAgainLater}"
                                                               FontFamily="Horizon_B" />
                                        </StackPanel>
                                    </Grid>
                                </local:FZMaterial>
                            </Grid>
                        </Grid>
                    </Decorator>
                </StackPanel>
            </StackPanel>
        </Grid>
    </Grid>
</Page>
