<Page x:Class="ForzaUI.Scenes.Anthem.A_OSVersion"
      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"
      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_ContentControl_ControllerPairingPopupTitleBlock"
                   BasedOn="{StaticResource A_Style_ContentControl_PopupTitleBlock}"
                   TargetType="ContentControl">
                <Setter Property="local:BindingProxy.A"
                        Value="/ForzaUI;component/Textures/Anthem/Icons/Titles/PopupMessageBox.png" />
                <Setter Property="Content"
                        Value="{local:Loc Main.IDS_MandatoryUpdateRequired_Title}" />
            </Style>

            <Style x:Key="A_Style_FZTextBlock_ControllerPairingPopupText"
                   BasedOn="{StaticResource A_Style_FZTextBlock_PopupText}"
                   TargetType="local:FZTextBlock">
                <Setter Property="Text"
                        Value="{Binding UpdateMessage, RelativeSource={RelativeSource AncestorType=Page}}" />
            </Style>

        </ResourceDictionary>
    </Page.Resources>

    <Grid>
        <local:FZMaterialGlassCapture />
       <Control Style="{StaticResource A_Style_Control_ScreenBackground}" />

        <StackPanel x:Name="MainContent"
                    HorizontalAlignment="Stretch"
                    VerticalAlignment="Center"
                    Style="{StaticResource A_Style_FrameworkElement_DefaultTransition_0}"
                    Focusable="False">
            <Decorator Style="{StaticResource A_Style_FrameworkElement_LayoutRoot}"
                       Height="Auto">
                <ContentControl Style="{StaticResource A_Style_ContentControl_ControllerPairingPopupTitleBlock}" />
            </Decorator>
            <local:FZMaterial Style="{StaticResource A_Style_FZMaterial_PopupBacking}"
                              Visibility="{Binding Message, Converter={StaticResource A_StringVisConverter}}">
                <Decorator Style="{StaticResource A_Style_FrameworkElement_LayoutRoot}"
                           Height="Auto">
                    <local:FZTextBlock Style="{StaticResource A_Style_FZTextBlock_ControllerPairingPopupText}" />
                </Decorator>
            </local:FZMaterial>
        </StackPanel>

        <!-- Help button bar -->
        <ContentControl x:Name="BottomBar" Style="{StaticResource A_Style_ButtonBar}">
            <local:ControllerButtonPanel x:Name="HelpPanel"
                                        Layout="RightToLeft"
                                        HorizontalAlignment="Left"
                                        VerticalAlignment="Bottom"
                                        Background="{x:Null}">
                <local:ControllerButtonControl Button="A" Description="{local:Loc HelpButtons.IDS_OK}" />
            </local:ControllerButtonPanel>
        </ContentControl>
    </Grid>
</Page>
