<Page xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    x:Class="ForzaUI.Scenes.Anthem.A_WaitMessageBox"
    Style="{StaticResource A_Style_Page_Generic}"
    DataContext="{Binding RelativeSource={RelativeSource Self}}">
    <UIPageTransitionManager.TransitionManager>
        <UIPageTransitionManager
            Preset="{StaticResource A_UIPageTransitionManagerPreset_Popup}" />
    </UIPageTransitionManager.TransitionManager>
    <Grid>
        <FZMaterialGlassCapture />
        <FZMaterial
            Style="{StaticResource A_Style_FZMaterial_Popup_Background}" />
        <ContentControl
            x:Name="BottomBar"
            Style="{StaticResource A_Style_ButtonBar}">
            <ControllerButtonPanel
                x:Name="PART_HelpPanel"
                Layout="RightToLeft"
                HorizontalAlignment="Left"
                VerticalAlignment="Bottom"
                Background="{Null}" />
        </ContentControl>
        <Grid
            Style="{StaticResource A_Style_FrameworkElement_LayoutRoot}">
            <StackPanel
                x:Name="MainContent"
                HorizontalAlignment="Center"
                VerticalAlignment="Center"
                Style="{StaticResource A_Style_FrameworkElement_DefaultTransition_0}"
                Width="{StaticResource H_Width_PopUp}">
                <ContentControl
                    Style="{StaticResource A_Style_ContentControl_PopupTitleBlock}"
                    Content="{Binding Title}" />
                <ContentControl
                    Style="{StaticResource A_Style_ContentControl_PopupContentBlock}">
                    <StackPanel>
                        <FZTextBlock
                            Text="{Binding Message}"
                            Margin="24,24,24,24"
                            Visibility="{Binding Message, Converter={StaticResource A_StringVisConverter}}"
                            ScreenReader.Line="{Binding ScreenReaderMessage}"
                            ScreenReader.Event="OnLoad"
                            ScreenReader.LineType="ScreenDescription"
                            MaxWidth="550"
                            Style="{StaticResource H_Style_Text_Description_Body_16px}" />
                        <ProgressBar
                            x:Name="IdleIndicator"
                            IsIndeterminate="True"
                            Style="{StaticResource A_Style_ProgressBar_WaitSpinner}"
                            Height="48"
                            Margin="0,8,0,24" />
                    </StackPanel>
                </ContentControl>
            </StackPanel>
        </Grid>
    </Grid>
</Page>