<Page DataContext="{Binding RelativeSource={RelativeSource Self}}"
           mc:Ignorable="d"
           x:Class="ForzaUI.A_GarageDisplayCars"
           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:ed="http://schemas.microsoft.com/expression/2010/drawing"
           xmlns:local="clr-namespace:ForzaUI;assembly="
           xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
           xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
    
    <UIPageTransitionManager.TransitionManager>
        <UIPageTransitionManager Preset="{StaticResource A_UIPageTransitionManagerPreset_Menu}" />
    </UIPageTransitionManager.TransitionManager>

    <Grid>
        <Control Style="{StaticResource A_Style_Control_ScreenBackground}"
                 local:BindingProxy.A="{x:Static UIScreenBackgroundStyle.Blue}"
                 Visibility="{Binding BackgroundEnabled, Converter={StaticResource A_FZBooleanToVisibilityConverter}}" />
        <ContentControl Style="{StaticResource A_Style_ButtonBar}"
                x:Name="BottomBar">
            <local:ControllerButtonPanel x:Name="PART_HelpPanel"
                                 Style="{StaticResource A_Style_ControllerButtonPanel_Default}">
                <local:ControllerButtonControl Button="A"
                                               Description="{local:Loc HelpButtons.IDS_OK}" />
                <local:ControllerButtonControl Button="B"
                                               Description="{local:Loc HelpButtons.IDS_Back}" />
            </local:ControllerButtonPanel>
        </ContentControl>
        <Border Style="{StaticResource A_Style_Border_ScenePadding_Opus}"
                Padding="0">
            
            <Grid x:Name="PART_LayoutRoot" Style="{StaticResource A_Style_FrameworkElement_DefaultTransition_0}">
                <StackPanel VerticalAlignment="Bottom" Margin="0,0,0,118">
                    <ContentControl Style="{StaticResource A_Style_ContentControl_ScreenTitleBlock}"
                                    Width="465"
                                    Margin="132,0,0,12"
                                    HorizontalAlignment="Left"
                                    Content="{local:Loc ScreenTitles.IDS_DisplayCars}"/>
                    <local:WrapListBox Style="{StaticResource H_Style_FullScreenCarousel}"
                                       ItemTemplate="{StaticResource A_DataTemplate_CarSelectCarouselItem}"
                                       SelectedItem="{Binding SelectedItem}"
                                       ItemHeight="244" 
                                       ItemWidth="325"
                                       ItemsSource="{Binding Collection}"
                                       Margin="-159,0,0,0"
                                       SelectionLimitTop="292"
                                       Height="252"
                                       local:CollectionIndexer.Collection="{Binding Collection}"
                                       SelectedIndex="0"
                                       x:Name="PART_List"/>
                </StackPanel>
            </Grid>
        </Border>
    </Grid>
</Page>
