<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">
                <local:ControllerButtonControl Style="{StaticResource A_Style_ControllerButtonControl_Default_ShowAlways}"
                    Margin="0,0,0,7" Button="DPadLeft" />
                <local:ControllerButtonControl Style="{StaticResource A_Style_ControllerButtonControl_Default_ShowAlways}"
                    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_Default_ShowAlways}"
                                               Height="40"
                                               UseLargeIcon="False"
                                               Margin="0,0,0,4"
                                               Button="DPadHorizontal" />
        </ControlTemplate>

        <ControlTemplate x:Key="A_ControlTemplate_RareCarDealershipVote_ButtonVote" TargetType="{x:Type Control}">
            <local:ControllerButtonControl Style="{StaticResource A_Style_ControllerButtonControl_Default_ShowAlways}"
                                               Height="40"
                                               UseLargeIcon="False"
                                               Margin="0,0,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="SelectCarAStory">
            <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_Highlight_A">
                <LinearDoubleKeyFrame KeyTime="0:0:0.18" Value="1" />
            </DoubleAnimationUsingKeyFrames>
            <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="NamePanel_Highlight_B">
                <LinearDoubleKeyFrame KeyTime="0:0:0.18" Value="0" />
            </DoubleAnimationUsingKeyFrames>
            <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="Car_Selection_Light_A">
                <LinearDoubleKeyFrame KeyTime="0:0:0.18" Value="1" />
            </DoubleAnimationUsingKeyFrames>
            <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="Car_Selection_Light_B">
                <LinearDoubleKeyFrame KeyTime="0:0:0.18" Value="0" />
            </DoubleAnimationUsingKeyFrames>
            <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="CarThumbnail_A">
                <LinearDoubleKeyFrame KeyTime="0:0:0.18" Value="1" />
            </DoubleAnimationUsingKeyFrames>
            <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="CarThumbnail_B">
                <LinearDoubleKeyFrame KeyTime="0:0:0.18" Value="0.7" />
            </DoubleAnimationUsingKeyFrames>
            <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="CarName_A">
                <LinearDoubleKeyFrame KeyTime="0:0:0.18" Value="1" />
            </DoubleAnimationUsingKeyFrames>
            <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="CarName_B">
                <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>
        </local:UIStoryboard>

        <local:UIStoryboard x:Key="SelectCarBStory">
            <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_Highlight_B">
                <LinearDoubleKeyFrame KeyTime="0:0:0.18" Value="1" />
            </DoubleAnimationUsingKeyFrames>
            <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="NamePanel_Highlight_A">
                <LinearDoubleKeyFrame KeyTime="0:0:0.18" Value="0" />
            </DoubleAnimationUsingKeyFrames>
            <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="Car_Selection_Light_B">
                <LinearDoubleKeyFrame KeyTime="0:0:0.18" Value="1" />
            </DoubleAnimationUsingKeyFrames>
            <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="Car_Selection_Light_A">
                <LinearDoubleKeyFrame KeyTime="0:0:0.18" Value="0" />
            </DoubleAnimationUsingKeyFrames>
            <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="CarThumbnail_B">
                <LinearDoubleKeyFrame KeyTime="0:0:0.18" Value="1" />
            </DoubleAnimationUsingKeyFrames>
            <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="CarThumbnail_A">
                <LinearDoubleKeyFrame KeyTime="0:0:0.18" Value="0.7" />
            </DoubleAnimationUsingKeyFrames>
            <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="CarName_B">
                <LinearDoubleKeyFrame KeyTime="0:0:0.18" Value="1" />
            </DoubleAnimationUsingKeyFrames>
            <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="CarName_A">
                <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>
        </local:UIStoryboard>

        <local:UIStoryboard x:Key="VoteCarAStory">
            <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_Highlight_A">
                <LinearDoubleKeyFrame KeyTime="0:0:0.1" Value="1" />
            </DoubleAnimationUsingKeyFrames>
            <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="NamePanel_Highlight_B">
                <LinearDoubleKeyFrame KeyTime="0:0:0.1" Value="0" />
            </DoubleAnimationUsingKeyFrames>
            <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="Car_Selection_Light_A">
                <LinearDoubleKeyFrame KeyTime="0:0:0.1" Value="1" />
            </DoubleAnimationUsingKeyFrames>
            <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="Car_Selection_Light_B">
                <LinearDoubleKeyFrame KeyTime="0:0:0.1" Value="0" />
            </DoubleAnimationUsingKeyFrames>
            <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="CarThumbnail_A">
                <LinearDoubleKeyFrame KeyTime="0:0:0.1" Value="1" />
            </DoubleAnimationUsingKeyFrames>
            <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="CarThumbnail_B">
                <LinearDoubleKeyFrame KeyTime="0:0:0.1" Value="0.5" />
            </DoubleAnimationUsingKeyFrames>
            <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(ScaleTransform.ScaleX)" Storyboard.TargetName="CarThumbnail_B">
                <LinearDoubleKeyFrame KeyTime="0:0:0.1" Value="0.9" />
            </DoubleAnimationUsingKeyFrames>
            <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(ScaleTransform.ScaleY)" Storyboard.TargetName="CarThumbnail_B">
                <LinearDoubleKeyFrame KeyTime="0:0:0.1" Value="0.9" />
            </DoubleAnimationUsingKeyFrames>
            <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="CarName_A">
                <LinearDoubleKeyFrame KeyTime="0:0:0.1" Value="1" />
            </DoubleAnimationUsingKeyFrames>
            <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="CarName_B">
                <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="VoteConfirm_BGLight_A">
                <LinearDoubleKeyFrame KeyTime="0:0:0.1" Value="1" />
            </DoubleAnimationUsingKeyFrames>
            <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="VoteConfirm_CarGlow_A">
                <LinearDoubleKeyFrame KeyTime="0:0:0.1" Value="1" />
            </DoubleAnimationUsingKeyFrames>
        </local:UIStoryboard>

        <local:UIStoryboard x:Key="VoteCarBStory">
            <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_Highlight_B">
                <LinearDoubleKeyFrame KeyTime="0:0:0.1" Value="1" />
            </DoubleAnimationUsingKeyFrames>
            <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="NamePanel_Highlight_A">
                <LinearDoubleKeyFrame KeyTime="0:0:0.1" Value="0" />
            </DoubleAnimationUsingKeyFrames>
            <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="Car_Selection_Light_B">
                <LinearDoubleKeyFrame KeyTime="0:0:0.1" Value="1" />
            </DoubleAnimationUsingKeyFrames>
            <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="Car_Selection_Light_A">
                <LinearDoubleKeyFrame KeyTime="0:0:0.1" Value="0" />
            </DoubleAnimationUsingKeyFrames>
            <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="CarThumbnail_B">
                <LinearDoubleKeyFrame KeyTime="0:0:0.1" Value="1" />
            </DoubleAnimationUsingKeyFrames>
            <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="CarThumbnail_A">
                <LinearDoubleKeyFrame KeyTime="0:0:0.1" Value="0.5" />
            </DoubleAnimationUsingKeyFrames>
            <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(ScaleTransform.ScaleX)" Storyboard.TargetName="CarThumbnail_A">
                <LinearDoubleKeyFrame KeyTime="0:0:0.1" Value="0.9" />
            </DoubleAnimationUsingKeyFrames>
            <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(ScaleTransform.ScaleY)" Storyboard.TargetName="CarThumbnail_A">
                <LinearDoubleKeyFrame KeyTime="0:0:0.1" Value="0.9" />
            </DoubleAnimationUsingKeyFrames>
            <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="CarName_B">
                <LinearDoubleKeyFrame KeyTime="0:0:0.1" Value="1" />
            </DoubleAnimationUsingKeyFrames>
            <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="CarName_A">
                <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="VoteConfirm_BGLight_B">
                <LinearDoubleKeyFrame KeyTime="0:0:0.1" Value="1" />
            </DoubleAnimationUsingKeyFrames>
            <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="VoteConfirm_CarGlow_B">
                <LinearDoubleKeyFrame KeyTime="0:0:0.1" Value="1" />
            </DoubleAnimationUsingKeyFrames>
        </local:UIStoryboard>
    </Page.Resources>

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

    <Grid x:Name="LayoutRoot"
        Style="{StaticResource A_Style_FrameworkElement_FadeOnlyTransition_0}">

        <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"/>

        <ContentControl x:Name="BottomBar" Style="{StaticResource A_Style_ButtonBar}" HorizontalAlignment="Center" Grid.ColumnSpan="2">
            <local:ControllerButtonPanel x:Name="HelpPanel" HorizontalAlignment="Left" VerticalAlignment="Bottom" Background="{x:Null}">
                <local:ControllerButtonControl Button="A" Description="{local:Loc HelpButtons.IDS_Select}" Visibility="{Binding CanVote, Converter={StaticResource A_FZBooleanToVisibilityConverter}}"/>
                <local:ControllerButtonControl Button="B" Description="{local:Loc HelpButtons.IDS_Back}" />
            </local:ControllerButtonPanel>
        </ContentControl>

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

            <local:FZMaterial x:Name="VoteConfirm_BGLight_A" ImageSource="/ForzaUI;component/Textures/Data_Bound/Rare_Car_Dealership/VotingScreen/VoteConfirm_BGLight.png" Opacity="0" Grid.Column="0"/>
            <local:FZMaterial x:Name="VoteConfirm_BGLight_B" ImageSource="/ForzaUI;component/Textures/Data_Bound/Rare_Car_Dealership/VotingScreen/VoteConfirm_BGLight.png" Opacity="0" Grid.Column="1"/>


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

                <local:FZTextBlock CapHeight="30" Color="{StaticResource A_Color_White}" HorizontalAlignment="Center" Margin="0,30,0,0" Height="42"
                                   local:TextBlockInlineMarkup.Markup="{Binding LowerInstructionMarkup, Converter={StaticResource A_StringToUpper}}"
                                   local:TextBlockInlineMarkup.ResourceBaseName="A_Style_FZRareCarDealershipVote_Markup_"/>


                <Grid HorizontalAlignment="Stretch">
                    <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.png" Width="500" Height="90" HorizontalAlignment="Right" VerticalAlignment="Center">
                        <local:FZMaterial x:Name="NamePanel_Highlight_A" Opacity="0" ImageSource="/ForzaUI;component/Textures/Data_Bound/Rare_Car_Dealership/VotingScreen/NamePanel_Highlight.png" VerticalAlignment="Center" Stretch="None" HorizontalAlignment="Right"/>
                    </local:FZMaterial>

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

                    <local:FZTextBlock x:Name="CarName_A" Text="{Binding CarAModel}" CapHeight="30" Color="{StaticResource A_Color_White}" VerticalAlignment="Center" HorizontalAlignment="Right" Margin="0,0,137.5,0"/>

                    <local:FZTextBlock x:Name="CarName_B" Grid.Column="2" Text="{Binding CarBModel}" CapHeight="30" Color="{StaticResource A_Color_White}" VerticalAlignment="Center" HorizontalAlignment="Left" Margin="137.5,0,0,0"/>

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

                    <local:FZTextBlock x:Name="BannerText_A" Grid.Column="0" Grid.Row="1" Opacity="0" CapHeight="30" Color="{StaticResource A_Color_White}" VerticalAlignment="Center" HorizontalAlignment="Right" Margin="0,-140,87.5,0"
                                       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_"/>

                    <local:FZTextBlock x:Name="BannerText_B" Grid.Column="2" Grid.Row="1" Opacity="0" CapHeight="30" Color="{StaticResource A_Color_White}" VerticalAlignment="Center" HorizontalAlignment="Left" Margin="87.5,-140,0,0"
                                       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 Width="1800" Margin="0,-40,0,0">
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="1*"/>
                        <ColumnDefinition Width="1*"/>
                    </Grid.ColumnDefinitions>

                    <local:FZMaterial x:Name="VoteConfirm_CarGlow_A" ImageSource="/ForzaUI;component/Textures/Data_Bound/Rare_Car_Dealership/VotingScreen/VoteConfirm_CarGlow.png" Opacity="0" Width="1000" Height ="300" HorizontalAlignment="Center" VerticalAlignment="Bottom" DockPanel.Dock="Left" Grid.Column="0"/>

                    <local:FZMaterial x:Name="VoteConfirm_CarGlow_B" ImageSource="/ForzaUI;component/Textures/Data_Bound/Rare_Car_Dealership/VotingScreen/VoteConfirm_CarGlow.png" Opacity="0" Width="1000" Height ="300" HorizontalAlignment="Center" VerticalAlignment="Bottom" DockPanel.Dock="Left" Grid.Column="1"/>

                    <local:FZMaterial x:Name="Car_Selection_Light_A" ImageSource="/ForzaUI;component/Textures/Data_Bound/Rare_Car_Dealership/VotingScreen/Car_Selection_Light.png" Opacity="0" Width="800" Height="450" VerticalAlignment="Center" Grid.Column="0"/>

                    <local:FZMaterial x:Name="CarThumbnail_A" ImageSource="{Binding CarAThumbnail}" Width="800" Height="450" VerticalAlignment="Center" Grid.Column="0"/>

                    <local:FZMaterial x:Name="Car_Selection_Light_B" ImageSource="/ForzaUI;component/Textures/Data_Bound/Rare_Car_Dealership/VotingScreen/Car_Selection_Light.png" Opacity="0" Width="800" Height="450" VerticalAlignment="Center" Grid.Column="1"/>

                    <local:FZMaterial x:Name="CarThumbnail_B" ImageSource="{Binding CarBThumbnail}" Width="800" Height="450" VerticalAlignment="Center" Grid.Column="1"/>
                </Grid>

                <local:FZMaterial ImageSource="/ForzaUI;component/Textures/Data_Bound/Rare_Car_Dealership/VotingScreen/Backstage_Logo.png" Width="220" Height="165" Margin="0,-30,0,0"/>
            </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"/>

        <ContentControl HorizontalAlignment="Center" Grid.ColumnSpan="2" VerticalAlignment="Bottom"  Style="{StaticResource A_Style_FrameworkElement_LayoutRoot}" HorizontalContentAlignment="Right" VerticalContentAlignment="Bottom">
            <local:FZMaterial Style="{StaticResource A_Style_FZMaterial_RareCarShopGradientBackground}"
                                MinWidth="250"
                                Margin="{StaticResource A_Thickness_Margin_ButtonBar}"
                                Height="68">
                <local:FZTextBlock local:TextBlockInlineMarkup.Markup="{Binding VoteTimeRemainingString, Converter={StaticResource A_StringToUpper}}" local:TextBlockInlineMarkup.ResourceBaseName="A_Style_FZRun_Markup_"
                                                Style="{StaticResource A_Style_FZTextBlock_HorizonA}" FontFamily="Horizon_B"
                                                VerticalAlignment="Center"
                                                Margin="0,0,20,0"
                                                Color="#ffffff"
                                                CapHeight="20"
                                                TextAlignment="Right"/>
            </local:FZMaterial>
        </ContentControl>
    </Grid>
</Page>
