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

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

    <Page.Resources>
        <ResourceDictionary>

            <Style x:Key="A_Style_ListBoxItem_TextMenu_EventOptions"
                   BasedOn="{StaticResource A_Style_ListBoxItem_TextMenu_Default}"
                   TargetType="{x:Type ListBoxItem}">
                <Setter Property="IsHitTestVisible"
                        Value="True" />
                <Setter Property="Focusable"
                        Value="False" />
            </Style>
            
            <DataTemplate x:Key="A_DataTemplate_ListBoxItem">
                <local:SpinnerControl Label="{Binding Title}"
                                        SelectedIndex="{Binding SelectedIndex}"
                                        ItemsSource="{Binding Data}"
                                        Style="{StaticResource A_Style_SpinnerControl_Default}"
                                        local:FocusOnMouseOverBehaviour.Parent="ListBoxItem"/>
            </DataTemplate>
        </ResourceDictionary>
    </Page.Resources>

    <Grid>
        <ContentControl x:Name="BottomBar" Style="{StaticResource A_Style_ButtonBar}">
            <ContentControl x:Name="DefaultHelpPanel"
                    local:ControllerButtonPanel.ADescription="{local:Loc HelpButtons.IDS_Start}"
                    local:ControllerButtonPanel.BDescription="{local:Loc HelpButtons.IDS_Cancel}"
                    Style="{StaticResource A_Style_ContentControl_DefaultButtonBar}" />
        </ContentControl>
        <local:NetworkCountdownControl Style="{StaticResource A_Style_NetworkCountdownControl_EventSetup}" CountdownType="LocalForUi" />
    
        <Border x:Name="LayoutRoot" Style="{StaticResource A_Style_Border_ScenePadding}">
            <Grid Style="{StaticResource A_Style_FrameworkElement_ScreenTilt}">
                <StackPanel Orientation="Vertical" VerticalAlignment="Center" HorizontalAlignment="Center" Style="{StaticResource A_Style_FrameworkElement_DefaultTransition_0}">
                    <ContentControl VerticalAlignment="Center"
                                    Content="{local:Loc ScreenTitles.IDS_EventOptions}"
                                    Style="{StaticResource A_Style_ContentControl_PopupTitleBlock}"
                                    local:BindingProxy.A="/ForzaUI;component/Textures/Anthem/Icons/Titles/StreetRace.png" />
                    <local:CommonListBox x:Name="PART_OptionsListBox"
                                         ItemsSource="{Binding Options}"
                                         Style="{StaticResource A_Style_ListBox_List_Default}"
                                         ItemTemplate="{StaticResource A_DataTemplate_ListBoxItem}"
                                         ItemContainerStyle="{StaticResource A_Style_ListBoxItem_TextMenu_EventOptions}"
                                         MinWidth="736"/>
                </StackPanel>
            </Grid>
        </Border>

    </Grid>
</Page>