<Page x:Class="ForzaUI.Scenes.Anthem.A_PopupRateGame"
      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>

    <Page.Resources>
        <ResourceDictionary>
            <Style x:Key="A_Style_FZTextBlock_MessageBox_Text"
                   BasedOn="{StaticResource A_Style_FZTextBlock_PopupText}"
                   TargetType="local:FZTextBlock">
                <Setter Property="Width"
                        Value="Auto" />
                <Setter Property="Margin"
                        Value="0,24,0,24" />
                <Style.Triggers>
                    <Trigger Property="Text"
                             Value="{x:Null}">
                        <Setter Property="Visibility"
                                Value="Collapsed" />
                    </Trigger>
                    <Trigger Property="Text"
                             Value="">
                        <Setter Property="Visibility"
                                Value="Collapsed" />
                    </Trigger>
                </Style.Triggers>
            </Style>

        </ResourceDictionary>
    </Page.Resources>

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

        <!-- Bars -->
        <ContentControl x:Name="BottomBar" Style="{StaticResource A_Style_ButtonBar}">
            <ContentControl x:Name="PART_DefaultHelpPanel"
                    local:ControllerButtonPanel.ADescription="{local:Loc HelpButtons.IDS_Select}"
                    local:ControllerButtonPanel.BDescription="{local:Loc HelpButtons.IDS_Cancel}"
                    Style="{StaticResource A_Style_ContentControl_DefaultButtonBar}" />
        </ContentControl>

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

                <ContentControl Style="{StaticResource A_Style_ContentControl_PopupTitleBlock}"
                                Content="{local:Loc Main.IDS_RateApplicationPopup_Title}" />

                <ContentControl Style="{StaticResource A_Style_ContentControl_PopupContentBlock}">
                    <StackPanel>
                        <local:FZTextBlock Text="{local:Loc Main.IDS_RateApplicationPopup_Message}"
                                           Style="{StaticResource A_Style_FZTextBlock_MessageBox_Text}"
                                           local:ScreenReader.Line="{local:Loc Main.IDS_RateApplicationPopup_Message}"
                                           local:ScreenReader.Event="OnLoad"
                                           local:ScreenReader.LineType="ScreenDescription" />

                        <local:CommonListBox x:Name="Menu"
                                             Style="{StaticResource A_Style_ListBox_TextMenu_Default}"
                                             local:FocusOnPageFocusGained.SelectorSelectedItem="True"
                                             SelectedItem="{Binding SelectedItem}"
                                             ItemsSource="{Binding Options}" Margin="0,0,0,-2"/>
                    </StackPanel>
                </ContentControl>
            </StackPanel>
        </Grid>
    </Grid>
</Page>
