<Page x:Class="ForzaUI.Scenes.Anthem.A_PopupJumpToGroup"
      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"
      mc:Ignorable="d"
      xmlns:local="clr-namespace:ForzaUI"
      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>
       <FZButton x:Name="ClickOffButton" Opacity="0"
                 Command="{Binding ClickOffCommand}">
      </FZButton>
      <local:FZMaterialGlassCapture />

        <!-- Bars -->
        <ContentControl x:Name="BottomBar"
                        Style="{StaticResource A_Style_ButtonBar}">
            <local:ControllerButtonPanel x:Name="PART_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="Left"
                        VerticalAlignment="Top"
                        Margin="208,105,0,0"
                        Style="{StaticResource A_Style_FrameworkElement_DefaultTransition_0}"
                        Width="408"> 
                <Grid Height="48"
                      Margin="0,0,0,4"> 
                  <FZMaterial Preset="{StaticResource H_Roundtangle_Outer_1px}"
                              Color="{StaticResource H_Color_Primary_Green}">
                        <FZTextBlock Text="{Binding SelectedItem.Text, ElementName=PART_Menu}"
                                     Style="{StaticResource H_Style_Text_DescriptionTitle}"
                                     HorizontalAlignment="Center"
                                     VerticalAlignment="Center"
                                     CapHeight="18">
                    </FZTextBlock>
                 </FZMaterial>
                </Grid>

                <ContentControl Style="{StaticResource A_Style_ContentControl_PopupContentBlock}">
                    <local:GridListBox x:Name="PART_Menu"
                                         AllowFixedGridNavigation="False"
                                         Style="{StaticResource A_Style_ListBox_Grid_Icon_Menu}"
                                         ItemsSource="{Binding Options}"
                                         local:FocusOnPageFocusGained.SelectorSelectedItem="True"
                                         ItemTemplateSelector="{StaticResource A_DataTemplateSelector_GridIconTemplateSelector}"/>
                </ContentControl>
            </StackPanel>
        </Grid>
    </Grid>
</Page>
 