<Page x:Class="ForzaUI.A_AuctionOptions"
      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"
      mc:Ignorable="d"
      xmlns:local="clr-namespace:ForzaUI;assembly="
      Style="{StaticResource A_Style_Page_Generic}"
      DataContext="{Binding RelativeSource={RelativeSource Self}}">

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

    <Grid>
        <local:FZMaterialGlassCapture />
        <local:FZMaterial Style="{StaticResource A_Style_FZMaterial_Popup_Background}"/>
        <local:FZMaterialGlassCapture />

        <!-- Bars -->
        <ContentControl x:Name="BottomBar"
                        Style="{StaticResource A_Style_ButtonBar}">
            <local:ControllerButtonPanel x:Name="HelpPanel"
                                         Layout="RightToLeft"
                                         HorizontalAlignment="Left"
                                         VerticalAlignment="Bottom"
                                         Background="{x:Null}">
            </local:ControllerButtonPanel>
        </ContentControl>

        <Grid Style="{StaticResource A_Style_FrameworkElement_LayoutRoot}">
            <StackPanel x:Name="MainContent"
                        HorizontalAlignment="Center"
                        VerticalAlignment="Center"
                        Style="{StaticResource A_Style_FrameworkElement_DefaultTransition_0}"
                        Focusable="False">

                <ContentControl Content="{Binding Source={local:Loc ScreenTitles.IDS_Auction_Details}, Mode=OneWay, Converter={StaticResource A_StringToUpper}}"
                                Style="{StaticResource A_Style_ContentControl_PopupTitleBlock}"
                                local:BindingProxy.A="/ForzaUI;component/Textures/Anthem/Icons/Titles/AuctionHouse.png" />

                <ContentControl Style="{StaticResource A_Style_ContentControl_PopupContentBlock}">
                    <StackPanel>
                        <local:FZTextBlock Text="{Binding Message}"
                                           Style="{StaticResource A_Style_FZTextBlock_PopupText}"
                                           Visibility="{Binding HasMessage, Converter={StaticResource A_FZBooleanToVisibilityConverter}}" />

                        <Decorator Style="{StaticResource A_Style_Decorator_MessageBox_Separator}"
                                   Height="24"/>

                        <local:CommonListBox x:Name="Menu"
                                             Style="{StaticResource A_Style_ListBox_TextMenu}"
                                             SelectedItem="{Binding SelectedItem, Mode=OneWayToSource}"
                                             ItemsSource="{Binding Options}"
                                             ItemContainerStyle="{StaticResource A_Style_ListBoxItem_TextMenu_Default}"
                                             ItemTemplate="{StaticResource A_DataTemplate_TextMenu_AuctionDetails}"
                                             Width="670"
                                             local:FocusOnPageFocusGained.SelectorSelectedItem="True" />
                    </StackPanel>
                </ContentControl>
            </StackPanel>
        </Grid>
    </Grid>
</Page>
