<Page xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
      xmlns:System="clr-namespace:System;assembly=mscorlib"
      xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
      xmlns:local="clr-namespace:ForzaUI"
      xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
      xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
      DataContext="{Binding RelativeSource={RelativeSource Self}}"
      Style="{StaticResource A_Style_Page_Generic}"
      mc:Ignorable="d"
      x:Class="ForzaUI.Scenes.Anthem.A_RareCarDealershipVote">

    <Page.Resources>
        <Style x:Key="A_Style_FZMaterial_Background"
           TargetType="local:FZMaterial">
            <Style.Setters>
                <Setter Property="Stretch"
                Value="UniformToFill" />
                <Setter Property="MinWidth"
                Value="{Binding ActualWidth, RelativeSource={RelativeSource AncestorType=Page}}" />
                <Setter Property="MinHeight"
                Value="{Binding ActualHeight, RelativeSource={RelativeSource AncestorType=Page}}" />
                <Setter Property="VerticalAlignment"
                Value="Center" />
                <Setter Property="HorizontalAlignment"
                Value="Center" />
            </Style.Setters>
        </Style>

        <local:FZMaterialPresetRoundtangle x:Key="A_FZMaterialPresetRoundtangle_RareCarShopGradientBackground"
                                           GradientColorA="{StaticResource A_Color_RareCarDealership_GradientA}"
                                           GradientColorB="{StaticResource A_Color_RareCarDealership_GradientB}"
                                           GradientAngle="90"
                                           CornerRadius="8,8,8,8"
                                           BasedOn="{StaticResource A_FZMaterialPresetRoundtangle_FlatPanel_InnerAll}" />

        <Style x:Key="A_Style_FZMaterial_RareCarShopGradientBackground"
               TargetType="local:FZMaterial">
            <Setter Property="Preset" Value="{StaticResource A_FZMaterialPresetRoundtangle_RareCarShopGradientBackground}" />
        </Style>

        <ControlTemplate x:Key="A_ControlTemplate_RareCarDealershipVote_ButtonLeftRight" TargetType="{x:Type Control}">
            <StackPanel Orientation="Horizontal" Margin="0,-5,0,0">
                <local:ControllerButtonControl Style="{StaticResource A_Style_ControllerButtonControl_Standalone}"
                    Margin="0,0,0,7" Button="DPadLeft" />
                <local:ControllerButtonControl Style="{StaticResource A_Style_ControllerButtonControl_Standalone}"
                    Margin="0,0,0,7" Button="DPadRight" />
            </StackPanel>
        </ControlTemplate>
        
        <ControlTemplate x:Key="A_ControlTemplate_RareCarDealershipVote_ButtonLeftRight_Controller" TargetType="{x:Type Control}">
            <local:ControllerButtonControl Style="{StaticResource A_Style_ControllerButtonControl_Standalone}"
                                               Height="40"
                                               UseLargeIcon="False"
                                               Margin="0,-5,0,4"
                                               Button="DPadHorizontal" />
        </ControlTemplate>

        <ControlTemplate x:Key="A_ControlTemplate_RareCarDealershipVote_ButtonVote" TargetType="{x:Type Control}">
            <local:ControllerButtonControl Style="{StaticResource A_Style_ControllerButtonControl_Standalone}"
                                               Height="40"
                                               UseLargeIcon="False"
                                               Margin="0,-4,0,4"
                                               Button="A" />
        </ControlTemplate>

        <Style x:Key="A_Style_FZRareCarDealershipVote_Markup_BUTTON_LEFTRIGHT" TargetType="{x:Type Control}">
            <Setter Property="Template" Value="{StaticResource A_ControlTemplate_RareCarDealershipVote_ButtonLeftRight_Controller}" />

            <Style.Triggers>
                <DataTrigger Binding="{Binding IsControllerActiveInput, RelativeSource={RelativeSource AncestorType=Page}}"
                                 Value="False" >
                    <Setter Property="Template"
                                Value="{StaticResource A_ControlTemplate_RareCarDealershipVote_ButtonLeftRight}" />
                </DataTrigger>

                <DataTrigger Binding="{Binding IsControllerActiveInput, RelativeSource={RelativeSource AncestorType=Page}}"
                                 Value="True" >
                    <Setter Property="Template"
                                Value="{StaticResource A_ControlTemplate_RareCarDealershipVote_ButtonLeftRight_Controller}" />
                </DataTrigger>
            </Style.Triggers>
        </Style>

        <Style x:Key="A_Style_FZRareCarDealershipVote_Markup_BUTTON_VOTE" TargetType="{x:Type Control}">
            <Setter Property="Template" Value="{StaticResource A_ControlTemplate_RareCarDealershipVote_ButtonVote}" />
        </Style>

        <local:MappingConverter x:Key="A_Converter_HasVotedToBannerText">
            <local:MappingConverterEntry Key="{StaticResource A_Boolean_True}" Value="{local:Loc Lobby.IDS_RareCarDealership_Vote_Banner_PostVote}"/>
            <local:MappingConverterEntry Key="{StaticResource A_Boolean_False}" Value="{local:Loc Lobby.IDS_RareCarDealership_Vote_Banner_PreVote}"/>
        </local:MappingConverter>

        <local:UIStoryboard x:Key="SelectCarsAStory">
            <local:UIStoryboard.TriggerAnimation>
                <local:StartAudioTrigger local:TriggerAnimation.KeyTime="0:0:0.0" EventName="AudioUITrigger_E3_Forzathon_Lose"/>
            </local:UIStoryboard.TriggerAnimation>
            <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="NamePanel_A">
                <LinearDoubleKeyFrame KeyTime="0:0:0.18" Value="1" />
            </DoubleAnimationUsingKeyFrames>
            <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="NamePanel_B">
                <LinearDoubleKeyFrame KeyTime="0:0:0.18" Value="0" />
            </DoubleAnimationUsingKeyFrames>
            <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="Car_Selection_Light_A0">
                <LinearDoubleKeyFrame KeyTime="0:0:0.18" Value="1" />
            </DoubleAnimationUsingKeyFrames>
            <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="Car_Selection_Light_A1">
              <LinearDoubleKeyFrame KeyTime="0:0:0.18" Value="1" />
            </DoubleAnimationUsingKeyFrames>
            <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="Car_Selection_Light_B0">
                <LinearDoubleKeyFrame KeyTime="0:0:0.18" Value="0" />
            </DoubleAnimationUsingKeyFrames>
            <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="Car_Selection_Light_B1">
              <LinearDoubleKeyFrame KeyTime="0:0:0.18" Value="0" />
            </DoubleAnimationUsingKeyFrames>
            <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="CarThumbnail_A0">
                <LinearDoubleKeyFrame KeyTime="0:0:0.18" Value="1" />
            </DoubleAnimationUsingKeyFrames>
            <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="CarThumbnail_A1">
              <LinearDoubleKeyFrame KeyTime="0:0:0.18" Value="1" />
            </DoubleAnimationUsingKeyFrames>
            <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="CarThumbnail_B0">
                <LinearDoubleKeyFrame KeyTime="0:0:0.18" Value="0.7" />
            </DoubleAnimationUsingKeyFrames>
            <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="CarThumbnail_B1">
              <LinearDoubleKeyFrame KeyTime="0:0:0.18" Value="0.7" />
            </DoubleAnimationUsingKeyFrames>
            <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="CarName_A0">
                <LinearDoubleKeyFrame KeyTime="0:0:0.18" Value="1" />
            </DoubleAnimationUsingKeyFrames>
            <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="CarName_A1">
              <LinearDoubleKeyFrame KeyTime="0:0:0.18" Value="1" />
            </DoubleAnimationUsingKeyFrames>
            <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="CarName_B0">
                <LinearDoubleKeyFrame KeyTime="0:0:0.18" Value="0.5" />
            </DoubleAnimationUsingKeyFrames>
            <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="CarName_B1">
              <LinearDoubleKeyFrame KeyTime="0:0:0.18" Value="0.5" />
            </DoubleAnimationUsingKeyFrames>
            <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="NamePanel_A">
                <LinearDoubleKeyFrame KeyTime="0:0:0.18" Value="1" />
            </DoubleAnimationUsingKeyFrames>
            <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="NamePanel_B">
                <LinearDoubleKeyFrame KeyTime="0:0:0.18" Value="0.25" />
            </DoubleAnimationUsingKeyFrames>
            <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="DarkenedLayer_A">
                <LinearDoubleKeyFrame KeyTime="0:0:0.18" Value="0" />
            </DoubleAnimationUsingKeyFrames>
            <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="DarkenedLayer_B">
                <LinearDoubleKeyFrame KeyTime="0:0:0.18" Value="1" />
            </DoubleAnimationUsingKeyFrames>
            <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="BannerText_A">
                <LinearDoubleKeyFrame KeyTime="0:0:0.18" Value="1" />
            </DoubleAnimationUsingKeyFrames>
            <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="BannerText_B">
                <LinearDoubleKeyFrame KeyTime="0:0:0.0" Value="0" />
            </DoubleAnimationUsingKeyFrames>
            <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="BannerText_Center">
              <LinearDoubleKeyFrame KeyTime="0:0:0.0" Value="0" />
            </DoubleAnimationUsingKeyFrames>
            <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="SoftEdgeGlow">
                <LinearDoubleKeyFrame KeyTime="0:0:0.0" Value="0" />
            </DoubleAnimationUsingKeyFrames>
        </local:UIStoryboard>

        <local:UIStoryboard x:Key="SelectCarsBStory">
            <local:UIStoryboard.TriggerAnimation>
                <local:StartAudioTrigger local:TriggerAnimation.KeyTime="0:0:0.0" EventName="AudioUITrigger_E3_Forzathon_Lose"/>
            </local:UIStoryboard.TriggerAnimation>
            <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="NamePanel_B">
                <LinearDoubleKeyFrame KeyTime="0:0:0.18" Value="1" />
            </DoubleAnimationUsingKeyFrames>
            <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="NamePanel_A">
                <LinearDoubleKeyFrame KeyTime="0:0:0.18" Value="0" />
            </DoubleAnimationUsingKeyFrames>
            <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="Car_Selection_Light_B0">
                <LinearDoubleKeyFrame KeyTime="0:0:0.18" Value="1" />
            </DoubleAnimationUsingKeyFrames>
            <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="Car_Selection_Light_B1">
              <LinearDoubleKeyFrame KeyTime="0:0:0.18" Value="1" />
            </DoubleAnimationUsingKeyFrames>
            <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="Car_Selection_Light_A0">
                <LinearDoubleKeyFrame KeyTime="0:0:0.18" Value="0" />
            </DoubleAnimationUsingKeyFrames>
            <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="Car_Selection_Light_A1">
              <LinearDoubleKeyFrame KeyTime="0:0:0.18" Value="0" />
            </DoubleAnimationUsingKeyFrames>
            <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="CarThumbnail_B0">
                <LinearDoubleKeyFrame KeyTime="0:0:0.18" Value="1" />
            </DoubleAnimationUsingKeyFrames>
            <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="CarThumbnail_B1">
              <LinearDoubleKeyFrame KeyTime="0:0:0.18" Value="1" />
            </DoubleAnimationUsingKeyFrames>
            <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="CarThumbnail_A0">
                <LinearDoubleKeyFrame KeyTime="0:0:0.18" Value="0.7" />
            </DoubleAnimationUsingKeyFrames>
            <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="CarThumbnail_A1">
              <LinearDoubleKeyFrame KeyTime="0:0:0.18" Value="0.7" />
            </DoubleAnimationUsingKeyFrames>
            <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="CarName_B0">
                <LinearDoubleKeyFrame KeyTime="0:0:0.18" Value="1" />
            </DoubleAnimationUsingKeyFrames>
            <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="CarName_B1">
              <LinearDoubleKeyFrame KeyTime="0:0:0.18" Value="1" />
            </DoubleAnimationUsingKeyFrames>
            <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="CarName_A0">
                <LinearDoubleKeyFrame KeyTime="0:0:0.18" Value="0.5" />
            </DoubleAnimationUsingKeyFrames>
            <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="CarName_A1">
              <LinearDoubleKeyFrame KeyTime="0:0:0.18" Value="0.5" />
            </DoubleAnimationUsingKeyFrames>
            <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="NamePanel_B">
                <LinearDoubleKeyFrame KeyTime="0:0:0.18" Value="1" />
            </DoubleAnimationUsingKeyFrames>
            <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="NamePanel_A">
                <LinearDoubleKeyFrame KeyTime="0:0:0.18" Value="0.25" />
            </DoubleAnimationUsingKeyFrames>
            <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="DarkenedLayer_B">
                <LinearDoubleKeyFrame KeyTime="0:0:0.18" Value="0" />
            </DoubleAnimationUsingKeyFrames>
            <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="DarkenedLayer_A">
                <LinearDoubleKeyFrame KeyTime="0:0:0.18" Value="1" />
            </DoubleAnimationUsingKeyFrames>
            <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="BannerText_B">
                <LinearDoubleKeyFrame KeyTime="0:0:0.18" Value="1" />
            </DoubleAnimationUsingKeyFrames>
            <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="BannerText_A">
                <LinearDoubleKeyFrame KeyTime="0:0:0.0" Value="0" />
            </DoubleAnimationUsingKeyFrames>
            <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="BannerText_Center">
              <LinearDoubleKeyFrame KeyTime="0:0:0.0" Value="0" />
            </DoubleAnimationUsingKeyFrames>
            <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="SoftEdgeGlow">
              <LinearDoubleKeyFrame KeyTime="0:0:0.0" Value="0" />
            </DoubleAnimationUsingKeyFrames>
        </local:UIStoryboard>

        <local:UIStoryboard x:Key="VoteCarsAStory">
            <local:UIStoryboard.TriggerAnimation>
                <local:StartAudioTrigger local:TriggerAnimation.KeyTime="0:0:0.0" EventName="/Master/UI/Map/HZ2_SFX_HUD_Map_SetRoute_01"/>
            </local:UIStoryboard.TriggerAnimation>
            <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="NamePanel_A">
                <LinearDoubleKeyFrame KeyTime="0:0:0.1" Value="1" />
            </DoubleAnimationUsingKeyFrames>
            <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="NamePanel_B">
                <LinearDoubleKeyFrame KeyTime="0:0:0.1" Value="0" />
            </DoubleAnimationUsingKeyFrames>
            <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="Car_Selection_Light_A0">
                <LinearDoubleKeyFrame KeyTime="0:0:0.1" Value="1" />
            </DoubleAnimationUsingKeyFrames>
            <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="Car_Selection_Light_A1">
              <LinearDoubleKeyFrame KeyTime="0:0:0.1" Value="1" />
            </DoubleAnimationUsingKeyFrames>
            <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="Car_Selection_Light_B0">
                <LinearDoubleKeyFrame KeyTime="0:0:0.1" Value="0" />
            </DoubleAnimationUsingKeyFrames>
            <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="Car_Selection_Light_B1">
              <LinearDoubleKeyFrame KeyTime="0:0:0.1" Value="0" />
            </DoubleAnimationUsingKeyFrames>
            <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="CarThumbnail_A0">
                <LinearDoubleKeyFrame KeyTime="0:0:0.1" Value="1" />
            </DoubleAnimationUsingKeyFrames>
            <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="CarThumbnail_A1">
              <LinearDoubleKeyFrame KeyTime="0:0:0.1" Value="1" />
            </DoubleAnimationUsingKeyFrames>
            <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="CarThumbnail_B0">
                <LinearDoubleKeyFrame KeyTime="0:0:0.1" Value="0.5" />
            </DoubleAnimationUsingKeyFrames>
            <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="CarThumbnail_B1">
                <LinearDoubleKeyFrame KeyTime="0:0:0.1" Value="0.5" />
            </DoubleAnimationUsingKeyFrames>
            <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(ScaleTransform.ScaleX)" Storyboard.TargetName="CarThumbnail_B0">
                <LinearDoubleKeyFrame KeyTime="0:0:0.1" Value="0.9" />
            </DoubleAnimationUsingKeyFrames>
            <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(ScaleTransform.ScaleX)" Storyboard.TargetName="CarThumbnail_B1">
              <LinearDoubleKeyFrame KeyTime="0:0:0.1" Value="0.9" />
            </DoubleAnimationUsingKeyFrames>
            <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(ScaleTransform.ScaleY)" Storyboard.TargetName="CarThumbnail_B0">
                <LinearDoubleKeyFrame KeyTime="0:0:0.1" Value="0.9" />
            </DoubleAnimationUsingKeyFrames>
            <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(ScaleTransform.ScaleY)" Storyboard.TargetName="CarThumbnail_B1">
              <LinearDoubleKeyFrame KeyTime="0:0:0.1" Value="0.9" />
            </DoubleAnimationUsingKeyFrames>
            <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="CarName_A0">
                <LinearDoubleKeyFrame KeyTime="0:0:0.1" Value="1" />
            </DoubleAnimationUsingKeyFrames>
            <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="CarName_A1">
              <LinearDoubleKeyFrame KeyTime="0:0:0.1" Value="1" />
            </DoubleAnimationUsingKeyFrames>
            <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="CarName_B0">
                <LinearDoubleKeyFrame KeyTime="0:0:0.1" Value="0.25" />
            </DoubleAnimationUsingKeyFrames>
            <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="CarName_B1">
              <LinearDoubleKeyFrame KeyTime="0:0:0.1" Value="0.25" />
            </DoubleAnimationUsingKeyFrames>
            <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="NamePanel_A">
                <LinearDoubleKeyFrame KeyTime="0:0:0.1" Value="1" />
            </DoubleAnimationUsingKeyFrames>
            <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="NamePanel_B">
                <LinearDoubleKeyFrame KeyTime="0:0:0.1" Value="0" />
            </DoubleAnimationUsingKeyFrames>
            <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="DarkenedLayer_A">
                <LinearDoubleKeyFrame KeyTime="0:0:0.1" Value="0" />
            </DoubleAnimationUsingKeyFrames>
            <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="DarkenedLayer_B">
                <LinearDoubleKeyFrame KeyTime="0:0:0.1" Value="1" />
            </DoubleAnimationUsingKeyFrames>
            <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="BannerText_A">
                <LinearDoubleKeyFrame KeyTime="0:0:0.1" Value="1" />
            </DoubleAnimationUsingKeyFrames>
            <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="BannerText_B">
                <LinearDoubleKeyFrame KeyTime="0:0:0.0" Value="0" />
            </DoubleAnimationUsingKeyFrames>
            <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="BannerText_Center">
              <LinearDoubleKeyFrame KeyTime="0:0:0.0" Value="0" />
            </DoubleAnimationUsingKeyFrames>
            <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="SoftEdgeGlow">
                <LinearDoubleKeyFrame KeyTime="0:0:0.0" Value="0" />
            </DoubleAnimationUsingKeyFrames>
        </local:UIStoryboard>

        <local:UIStoryboard x:Key="VoteCarsBStory">
            <local:UIStoryboard.TriggerAnimation>
                <local:StartAudioTrigger local:TriggerAnimation.KeyTime="0:0:0.0" EventName="/Master/UI/Map/HZ2_SFX_HUD_Map_SetRoute_01"/>
            </local:UIStoryboard.TriggerAnimation>
            <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="NamePanel_B">
                <LinearDoubleKeyFrame KeyTime="0:0:0.1" Value="1" />
            </DoubleAnimationUsingKeyFrames>
            <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="NamePanel_A">
                <LinearDoubleKeyFrame KeyTime="0:0:0.1" Value="0" />
            </DoubleAnimationUsingKeyFrames>
            <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="Car_Selection_Light_B0">
                <LinearDoubleKeyFrame KeyTime="0:0:0.1" Value="1" />
            </DoubleAnimationUsingKeyFrames>
            <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="Car_Selection_Light_B1">
              <LinearDoubleKeyFrame KeyTime="0:0:0.1" Value="1" />
            </DoubleAnimationUsingKeyFrames>
            <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="Car_Selection_Light_A0">
                <LinearDoubleKeyFrame KeyTime="0:0:0.1" Value="0" />
            </DoubleAnimationUsingKeyFrames>
            <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="Car_Selection_Light_A1">
              <LinearDoubleKeyFrame KeyTime="0:0:0.1" Value="0" />
            </DoubleAnimationUsingKeyFrames>
            <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="CarThumbnail_B0">
                <LinearDoubleKeyFrame KeyTime="0:0:0.1" Value="1" />
            </DoubleAnimationUsingKeyFrames>
            <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="CarThumbnail_B1">
              <LinearDoubleKeyFrame KeyTime="0:0:0.1" Value="1" />
            </DoubleAnimationUsingKeyFrames>
            <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="CarThumbnail_A0">
                <LinearDoubleKeyFrame KeyTime="0:0:0.1" Value="0.5" />
            </DoubleAnimationUsingKeyFrames>
            <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="CarThumbnail_A1">
              <LinearDoubleKeyFrame KeyTime="0:0:0.1" Value="0.5" />
            </DoubleAnimationUsingKeyFrames>
            <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(ScaleTransform.ScaleX)" Storyboard.TargetName="CarThumbnail_A0">
                <LinearDoubleKeyFrame KeyTime="0:0:0.1" Value="0.9" />
            </DoubleAnimationUsingKeyFrames>
            <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(ScaleTransform.ScaleX)" Storyboard.TargetName="CarThumbnail_A1">
              <LinearDoubleKeyFrame KeyTime="0:0:0.1" Value="0.9" />
            </DoubleAnimationUsingKeyFrames>
            <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(ScaleTransform.ScaleY)" Storyboard.TargetName="CarThumbnail_A0">
                <LinearDoubleKeyFrame KeyTime="0:0:0.1" Value="0.9" />
            </DoubleAnimationUsingKeyFrames>
            <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(ScaleTransform.ScaleY)" Storyboard.TargetName="CarThumbnail_A1">
              <LinearDoubleKeyFrame KeyTime="0:0:0.1" Value="0.9" />
            </DoubleAnimationUsingKeyFrames>
            <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="CarName_B0">
                <LinearDoubleKeyFrame KeyTime="0:0:0.1" Value="1" />
            </DoubleAnimationUsingKeyFrames>
            <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="CarName_B1">
              <LinearDoubleKeyFrame KeyTime="0:0:0.1" Value="1" />
            </DoubleAnimationUsingKeyFrames>
            <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="CarName_A0">
                <LinearDoubleKeyFrame KeyTime="0:0:0.1" Value="0.25" />
            </DoubleAnimationUsingKeyFrames>
            <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="CarName_A1">
              <LinearDoubleKeyFrame KeyTime="0:0:0.1" Value="0.25" />
            </DoubleAnimationUsingKeyFrames>
            <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="NamePanel_B">
                <LinearDoubleKeyFrame KeyTime="0:0:0.1" Value="1" />
            </DoubleAnimationUsingKeyFrames>
            <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="NamePanel_A">
                <LinearDoubleKeyFrame KeyTime="0:0:0.1" Value="0" />
            </DoubleAnimationUsingKeyFrames>
            <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="DarkenedLayer_B">
                <LinearDoubleKeyFrame KeyTime="0:0:0.1" Value="0" />
            </DoubleAnimationUsingKeyFrames>
            <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="DarkenedLayer_A">
                <LinearDoubleKeyFrame KeyTime="0:0:0.1" Value="1" />
            </DoubleAnimationUsingKeyFrames>
            <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="BannerText_B">
                <LinearDoubleKeyFrame KeyTime="0:0:0.1" Value="1" />
            </DoubleAnimationUsingKeyFrames>
            <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="BannerText_A">
                <LinearDoubleKeyFrame KeyTime="0:0:0.0" Value="0" />
            </DoubleAnimationUsingKeyFrames>
            <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="BannerText_Center">
              <LinearDoubleKeyFrame KeyTime="0:0:0.0" Value="0" />
            </DoubleAnimationUsingKeyFrames>
            <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="SoftEdgeGlow">
                <LinearDoubleKeyFrame KeyTime="0:0:0.0" Value="0" />
            </DoubleAnimationUsingKeyFrames>
        </local:UIStoryboard>

        <System:TimeSpan x:Key="A_TimeSpan_Flash_SoftEdge_FadeInDuration">0:0:0.3</System:TimeSpan>
        <System:TimeSpan x:Key="A_TimeSpan_Flash_SoftEdge_MaxOpacityDuration">0:0:0.1</System:TimeSpan>
        <System:TimeSpan x:Key="A_TimeSpan_Flash_SoftEdge_FadeOutDuration">0:0:0.35</System:TimeSpan>
        <System:TimeSpan x:Key="A_TimeSpan_Flash_SoftEdge_FadeOutEndPause">0:0:2</System:TimeSpan>

        <KeyTime x:Key="A_KeyTime_SoftEdge_FadeInStart">0:0:1</KeyTime>

        <local:OffsetKeyTime x:Key="A_KeyTime_SoftEdge_FadeInEnd"
                             KeyTime="{StaticResource A_KeyTime_SoftEdge_FadeInStart}"
                             Offset="{StaticResource A_TimeSpan_Flash_SoftEdge_FadeInDuration}"/>
        <local:OffsetKeyTime x:Key="A_KeyTime_SoftEdge_FadeOutStart"
                             KeyTime="{StaticResource A_KeyTime_SoftEdge_FadeInEnd}"
                             Offset="{StaticResource A_TimeSpan_Flash_SoftEdge_MaxOpacityDuration}"/>
        <local:OffsetKeyTime x:Key="A_KeyTime_SoftEdge_FadeOutEnd"
                             KeyTime="{StaticResource A_KeyTime_SoftEdge_FadeOutStart}"
                             Offset="{StaticResource A_TimeSpan_Flash_SoftEdge_FadeOutDuration}"/>
        <local:OffsetKeyTime x:Key="A_KeyTime_SoftEdge_FadeOutEndPause"
                     KeyTime="{StaticResource A_KeyTime_SoftEdge_FadeOutEnd}"
                     Offset="{StaticResource A_TimeSpan_Flash_SoftEdge_FadeOutEndPause}"/>

        <local:UIStoryboard x:Key="A_Storyboard_SoftEdgeGlow" RepeatBehavior="Forever">
            <DoubleAnimationUsingKeyFrames Storyboard.TargetName="{x:Null}"
                                           Storyboard.TargetProperty="(UIElement.Opacity)"
                                           FillBehavior="Stop">
                <DiscreteDoubleKeyFrame KeyTime="{StaticResource A_KeyTime_SoftEdge_FadeInStart}" Value="0.0"/>
                <EasingDoubleKeyFrame KeyTime="{StaticResource A_KeyTime_SoftEdge_FadeInEnd}" Value="0.6" EasingFunction="{local:LinearEasing}" />
                <DiscreteDoubleKeyFrame KeyTime="{StaticResource A_KeyTime_SoftEdge_FadeOutStart}" Value="0.6"/>
                <EasingDoubleKeyFrame KeyTime="{StaticResource A_KeyTime_SoftEdge_FadeOutEnd}" Value="0.0" EasingFunction="{local:LinearEasing}" />
                <DiscreteDoubleKeyFrame KeyTime="{StaticResource A_KeyTime_SoftEdge_FadeOutEndPause}" Value="0"/>
            </DoubleAnimationUsingKeyFrames>
        </local:UIStoryboard>

        <Style x:Key="A_FZMaterial_Style_SoftEdgeGlow" TargetType="local:FZMaterial" >
            <Style.Triggers>
                <EventTrigger RoutedEvent="FrameworkElement.Loaded">
                    <BeginStoryboard Storyboard="{StaticResource A_Storyboard_SoftEdgeGlow}"/>
                </EventTrigger>
            </Style.Triggers>
        </Style>
    </Page.Resources>

    <local:UIPageTransitionManager.TransitionManager>
        <local:UIPageTransitionManager Preset="{StaticResource A_UIPageTransitionManagerPreset_Menu}"/>
    </local:UIPageTransitionManager.TransitionManager>

    <Grid x:Name="LayoutRoot">

        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="1*"/>
            <ColumnDefinition Width="1*"/>
        </Grid.ColumnDefinitions>

        <local:FZMaterial Style="{StaticResource A_Style_FZMaterial_Background}"
            ImageSource="/ForzaUI;component/Textures/Data_Bound/Rare_Car_Dealership/VotingScreen/Background.png" Margin="0,-1,0,-1" Grid.ColumnSpan="2"/>

        <FZMaterialGlassCapture />

        <Grid Style="{StaticResource A_Style_FrameworkElement_LayoutRoot}" Grid.ColumnSpan="2">
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="1*"/>
                <ColumnDefinition Width="1*"/>
            </Grid.ColumnDefinitions>

            <StackPanel Margin="0,80,0,0" Grid.ColumnSpan="2">
                <Grid HorizontalAlignment="Stretch" Margin="0,150,0,0">
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="1*"/>
                        <ColumnDefinition Width="1*"/>
                    </Grid.ColumnDefinitions>
                    <Grid.RowDefinitions>
                        <RowDefinition/>
                        <RowDefinition/>
                    </Grid.RowDefinitions>

                    <local:FZMaterial x:Name="NamePanel_A" Grid.Column="0" ImageSource="/ForzaUI;component/Textures/Data_Bound/Rare_Car_Dealership/VotingScreen/NamePanel_Highlight.png" Width="500" Height="150" HorizontalAlignment="Right" VerticalAlignment="Center"/>

                    <local:FZMaterial x:Name="NamePanel_B" Grid.Column="2" ImageSource="/ForzaUI;component/Textures/Data_Bound/Rare_Car_Dealership/VotingScreen/NamePanel_Highlight.png" Width="500" Height="150" HorizontalAlignment="Left" VerticalAlignment="Center" RenderTransformOrigin="0.5,0.5">
                        <local:FZMaterial.RenderTransform>
                            <ScaleTransform ScaleX="-1" ScaleY="1"/>
                        </local:FZMaterial.RenderTransform>
                    </local:FZMaterial>

                    <DockPanel Grid.Column="0" Width="500" Height="90" HorizontalAlignment="Right" VerticalAlignment="Center" Margin="0,0,137.5,0">
                      <local:FZTextBlock x:Name="CarName_A0" Text="{Binding CarA0Model}" CapHeight="30" Color="{StaticResource A_Color_White}" HorizontalAlignment="Right" DockPanel.Dock="Top"/>
                      <local:FZTextBlock x:Name="CarName_A1" Text="{Binding CarA1Model}" CapHeight="30" Color="{StaticResource A_Color_White}" HorizontalAlignment="Right" DockPanel.Dock="Bottom" VerticalAlignment="Bottom"/>
                    </DockPanel>

                    <DockPanel Grid.Column="2" Width="500" Height="90" HorizontalAlignment="Left" VerticalAlignment="Center" Margin="137.5,0,0,0">
                      <local:FZTextBlock x:Name="CarName_B0" Text="{Binding CarB0Model}" CapHeight="30" Color="{StaticResource A_Color_White}" HorizontalAlignment="Left" DockPanel.Dock="Top"/>
                      <local:FZTextBlock x:Name="CarName_B1" Text="{Binding CarB1Model}" CapHeight="30" Color="{StaticResource A_Color_White}" HorizontalAlignment="Left" DockPanel.Dock="Bottom" VerticalAlignment="Bottom"/>
                    </DockPanel>

                    <local:FZMaterial Grid.ColumnSpan="2" ImageSource="/ForzaUI;component/Textures/Data_Bound/Rare_Car_Dealership/VotingScreen/VS.png" Width="400" Height="283" HorizontalAlignment="Center"/>
                </Grid>

                <Grid Width="1800" Margin="0,-80,0,0">
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="1*"/>
                        <ColumnDefinition Width="1*"/>
                    </Grid.ColumnDefinitions>

                    <Grid VerticalAlignment="Center">
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition Width="1*"/>
                            <ColumnDefinition Width="1*"/>
                        </Grid.ColumnDefinitions>
                      
                        <local:FZMaterial x:Name="Car_Selection_Light_A0" ImageSource="/ForzaUI;component/Textures/Data_Bound/Rare_Car_Dealership/VotingScreen/Car_Selection_Light.png" Width="800" Height="450" Opacity="0" VerticalAlignment="Center" HorizontalAlignment="Center" Margin="0,0,-100,0"/>
                        <local:FZMaterial x:Name="Car_Selection_Light_A1" ImageSource="/ForzaUI;component/Textures/Data_Bound/Rare_Car_Dealership/VotingScreen/Car_Selection_Light.png" Opacity="0" Width="800" Height="450" VerticalAlignment="Center" HorizontalAlignment="Center" Grid.Column="1" Margin="-100,0,0,0"/>
                        <local:FZMaterial x:Name="CarThumbnail_A0" ImageSource="{Binding CarA0Thumbnail}" Width="360" Height="360" Margin="0,0,-100,0"/>
                        <local:FZMaterial x:Name="CarThumbnail_A1" ImageSource="{Binding CarA1Thumbnail}" Width="360" Height="360" Grid.Column="1" Margin="-100,0,0,0"/>
                      
                        <local:FZTextBlock x:Name="BannerText_A" Opacity="0" CapHeight="30" Color="{StaticResource A_Color_White}" VerticalAlignment="Bottom" HorizontalAlignment="Center" Grid.ColumnSpan="2"
                                       Visibility="{Binding HideBannerText, Converter={StaticResource A_FZBooleanToVisibilityConverter_UseHidden_Inverse}}"
                                       local:TextBlockInlineMarkup.Markup="{Binding HasVoted, Converter={StaticResource A_Converter_HasVotedToBannerText}}"
                                       local:TextBlockInlineMarkup.ResourceBaseName="A_Style_FZRareCarDealershipVote_Markup_"/>
                    </Grid>

                    <Grid Grid.Column="1" VerticalAlignment="Center">
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition Width="1*"/>
                            <ColumnDefinition Width="1*"/>
                        </Grid.ColumnDefinitions>
                      
                        <local:FZMaterial x:Name="Car_Selection_Light_B0" ImageSource="/ForzaUI;component/Textures/Data_Bound/Rare_Car_Dealership/VotingScreen/Car_Selection_Light.png" Width="800" Height="450" Opacity="0" VerticalAlignment="Center" HorizontalAlignment="Center" Margin="0,0,-100,0"/>
                        <local:FZMaterial x:Name="Car_Selection_Light_B1" ImageSource="/ForzaUI;component/Textures/Data_Bound/Rare_Car_Dealership/VotingScreen/Car_Selection_Light.png" Opacity="0" Width="800" Height="450" VerticalAlignment="Center" HorizontalAlignment="Center" Grid.Column="1" Margin="-100,0,0,0"/>
                        <local:FZMaterial x:Name="CarThumbnail_B0" ImageSource="{Binding CarB0Thumbnail}" Width="360" Height="360" Margin="0,0,-100,0"/>
                        <local:FZMaterial x:Name="CarThumbnail_B1" ImageSource="{Binding CarB1Thumbnail}" Width="360" Height="360" Grid.Column="1" Margin="-100,0,0,0"/>
                      
                        <local:FZTextBlock x:Name="BannerText_B" Opacity="0" CapHeight="30" Color="{StaticResource A_Color_White}" VerticalAlignment="Bottom" HorizontalAlignment="Center" Grid.ColumnSpan="2"
                                       Visibility="{Binding HideBannerText, Converter={StaticResource A_FZBooleanToVisibilityConverter_UseHidden_Inverse}}"
                                       local:TextBlockInlineMarkup.Markup="{Binding HasVoted, Converter={StaticResource A_Converter_HasVotedToBannerText}}"
                                       local:TextBlockInlineMarkup.ResourceBaseName="A_Style_FZRareCarDealershipVote_Markup_"/>
                    </Grid>
                    <Grid Grid.ColumnSpan="2"
                          HorizontalAlignment="Center" 
                          VerticalAlignment="Bottom"
                          x:Name="BannerText_Center_Element">
                        <local:FZMaterial x:Name="SoftEdgeGlow"
                                          Width="{Binding ActualWidth, ElementName=BannerText_Center}"
                                          Height="{Binding ActualHeight, ElementName=BannerText_Center}"
                                          Opacity="0"
                                          Color="#FFFFFFFF"
                                          RenderTransformOrigin="0.5,0.5"
                                          VerticalAlignment="Center"
                                          Style="{StaticResource A_FZMaterial_Style_SoftEdgeGlow}">
                            <local:FZMaterial.RenderTransform>
                                <TransformGroup>
                                    <ScaleTransform ScaleX="1.3" ScaleY="3.25"/>
                                </TransformGroup>
                            </local:FZMaterial.RenderTransform>
                            <local:FZMaterial.Preset>
                                <local:FZMaterialPresetRoundtangle BasedOn="{StaticResource A_FZMaterialPresetRoundtangle_FlatPanel_OuterAll}"
                                                                   AlphaMode="Additive"
                                                                   Softness="35"/>
                            </local:FZMaterial.Preset>
                        </local:FZMaterial>
                        <local:FZTextBlock x:Name="BannerText_Center" CapHeight="30" Color="{StaticResource A_Color_White}" 
                                           local:TextBlockInlineMarkup.Markup="{Binding LowerInstructionMarkup, Converter={StaticResource A_StringToUpper}}"
                                           local:TextBlockInlineMarkup.ResourceBaseName="A_Style_FZRareCarDealershipVote_Markup_" />
                    </Grid>
                </Grid>
            </StackPanel>
        </Grid>
        <local:FZMaterial x:Name="DarkenedLayer_A" ImageSource="/ForzaUI;component/Textures/Data_Bound/Rare_Car_Dealership/VotingScreen/DarkenedLayer.png" Grid.Column="0" Opacity="0" RenderTransformOrigin="0.5,0.5">
            <local:FZMaterial.RenderTransform>
                <ScaleTransform ScaleX="-1" ScaleY="1"/>
            </local:FZMaterial.RenderTransform>
        </local:FZMaterial>
        <local:FZMaterial x:Name="DarkenedLayer_B" ImageSource="/ForzaUI;component/Textures/Data_Bound/Rare_Car_Dealership/VotingScreen/DarkenedLayer.png" Grid.Column="1" Opacity="0"/>

        <Grid Style="{StaticResource A_Style_FrameworkElement_LayoutRoot}" Grid.ColumnSpan="2">
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="1*"/>
                <ColumnDefinition Width="1*"/>
            </Grid.ColumnDefinitions>

            <StackPanel Margin="0,80,0,0" Grid.ColumnSpan="2">
                <local:FZTextBlock CapHeight="30" Color="{StaticResource A_Color_White}" HorizontalAlignment="Center" FontFamily="Horizon_B" Margin="0,120,0,0"
                                   Style="{StaticResource A_Style_FZTextBlock_HorizonA}"
                                   local:TextBlockInlineMarkup.Markup="{Binding UpperInstructionMarkup, Converter={StaticResource A_StringToUpper}}"
                                   local:TextBlockInlineMarkup.ResourceBaseName="A_Style_FZRareCarDealershipVote_Markup_"/>
            </StackPanel>
        </Grid>

        <ContentControl HorizontalAlignment="Center" Grid.ColumnSpan="2" VerticalAlignment="Bottom"  Style="{StaticResource A_Style_FrameworkElement_LayoutRoot}" HorizontalContentAlignment="Right" VerticalContentAlignment="Bottom" Margin="{StaticResource A_Thickness_Margin_ButtonBar}">
            <StackPanel Orientation="Horizontal"
                        Margin="0,0,50,50">
              <local:FZMaterial Width="40"
                                Height="40"
                                x:Name="TimerIcon"
                                ImageSource="/ForzaUI;component/Textures/Data_Bound/Anthem/Icons/Timer.png"
                                Color="{StaticResource H_Color_Primary_Yellow}"/>
              <local:FZTextBlock CapHeight="24"
                                 x:Name="TimerText"
                                 VerticalAlignment="Center"
                                 HorizontalAlignment="Center"
                                 FontFamily="Horizon_B">
                <local:FZTextBlock.Style>
                  <Style TargetType="local:FZTextBlock"
                         BasedOn="{StaticResource A_Style_FZTextBlock_HorizonB}">
                    <Setter Property="local:TextBlockInlineMarkup.Markup"
                            Value="{Binding VoteTimeRemainingString, Converter={StaticResource A_StringToUpper}}" />
                    <Setter Property="local:TextBlockInlineMarkup.ResourceBaseName"
                            Value="A_Style_FZRun_Markup_" />
                    <Setter Property="Color"
                            Value="{StaticResource H_Color_Primary_Yellow}" />
                  </Style>
                </local:FZTextBlock.Style>
              </local:FZTextBlock>
            </StackPanel>
        </ContentControl>

        <ContentControl x:Name="BottomBar" Style="{StaticResource A_Style_ButtonBar}" HorizontalAlignment="Center" Grid.ColumnSpan="2">
          <ControllerButtonPanel x:Name="PART_HelpPanel"
                             Style="{StaticResource A_Style_ControllerButtonPanel_Default}">
            <ControllerButtonControl Button="A" Description="{Loc HelpButtons.IDS_Accept}" />
            <ControllerButtonControl Button="DPadHorizontal" Description="{Loc HelpButtons.IDS_Choose}" Visibility="{Binding IsControllerActiveInput, Converter={StaticResource A_FZBooleanToVisibilityConverter}}"/>
            <ControllerButtonControl Button="B" Description="{Loc HelpButtons.IDS_Back}" />
          </ControllerButtonPanel>
        </ContentControl>
    </Grid>
</Page>
