<Page xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
      xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
      xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
      xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
      xmlns:System="clr-namespace:System;assembly=mscorlib"
      x:Class="ForzaUI.Scenes.Anthem.A_CarAquiredActions"
      Style="{StaticResource A_Style_Page_Generic}"
      DataContext="{Binding RelativeSource={RelativeSource Self}}"
      Tag="{StaticResource A_Boolean_False}">
    <Page.Resources>
        <ResourceDictionary>
            <Double x:Key="H_CarAquired_Panel_Width">512</Double>

            <DataTemplate x:Key="H_DataTemplate_TextMenu_Default_CarAquired">
                <Grid Height="{StaticResource A_Double_TextMenu_Height_Default}">
                    <FZTextBlock Style="{StaticResource A_Style_FZTextBlock_OptionText}"
                                 Text="{Binding Text}"
                                 HorizontalAlignment="Left"
                                 TextAlignment="Left"/>
                </Grid>
            </DataTemplate>
        </ResourceDictionary>
    </Page.Resources>
    <UIPageTransitionManager.TransitionManager>
        <UIPageTransitionManager Preset="{StaticResource A_UIPageTransitionManagerPreset_Menu}" />
    </UIPageTransitionManager.TransitionManager>
    <Grid x:Name="PART_LayoutRoot">
        <ContentControl x:Name="BottomBar"
                        Style="{StaticResource A_Style_ButtonBar}">
            <ContentControl x:Name="PART_DefaultHelpPanel"
                            Style="{StaticResource A_Style_ContentControl_DefaultButtonBar}" />
        </ContentControl>
        <Border Style="{StaticResource A_Style_Border_ScenePadding_Opus}"
                UseLayoutRounding="True">
            <StackPanel Width="{StaticResource H_CarAquired_Panel_Width}"
                        Style="{StaticResource A_Style_FrameworkElement_DefaultTransition_0}"
                        HorizontalAlignment="Left"
                        VerticalAlignment="Bottom">
                <ContentControl Content="{Binding Title}"
                                HorizontalContentAlignment="Left"
                                Style="{StaticResource A_Style_ContentControl_Header}"
                                ScreenReader.Line="{Binding Title}"
                                ScreenReader.LineType="ScreenTitle"
                                ScreenReader.Event="OnChange"/>
                <CommonListBox x:Name="PART_List"
                            MaxHeight="676"
                            Style="{StaticResource A_Style_ListBox_TextMenu_Default}"
                            ItemContainerStyle="{StaticResource A_Style_ListBoxItem_TextMenu_Gaps}"
                            ItemTemplate="{StaticResource H_DataTemplate_TextMenu_Default_CarAquired}"
                            ItemsSource="{Binding Options}" 
                            SelectedIndex="0"
                            SelectedItem="{Binding SelectedItem, Mode=TwoWay}"
                            ScreenReader.Line="{Binding SelectedItem.ScreenReaderText}"
                            ScreenReader.LineType="SelectedItem"
                            ScreenReader.Event="OnChange"
                            ScreenReader.ControlType="Button"
                            ScreenReader.SelectedCount="{Binding Options.Count, FallbackValue=0}"
                            ScreenReader.SelectedNumber="{Binding SelectedIndex, FallbackValue=0, RelativeSource={RelativeSource Self}, Converter={StaticResource A_IndexToNumberConverter}}"/>
            </StackPanel>
        </Border>
    </Grid>
</Page>