<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 />
        <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="Right"
                VerticalAlignment="Top"
                Style="{StaticResource A_Style_FrameworkElement_DefaultTransition_0}"
                Width="300">
                <FZMaterial
                        Style="{StaticResource H_Style_Container_PopUp_Heading}"
                        Height="50"
                        Margin="0">
                    <FZTextBlock
                            Text="{Binding Title, Converter={StaticResource A_StringToUpper}}"
                            Style="{StaticResource H_Style_Text_Heading_28px}"
                            VerticalAlignment="Center" />
                </FZMaterial>
                <ContentControl
                    Style="{StaticResource A_Style_ContentControl_PopupContentBlock}">
                    <StackPanel>
                        <FZTextBlock
                            Text="{Binding Message}"
                            Margin="10,10,10,10"
                            Visibility="{Binding Message, Converter={StaticResource A_StringVisConverter}}"
                            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,10" />
                    </StackPanel>
                </ContentControl>
            </StackPanel>
        </Grid>
    </Grid>
</Page>