<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_VirtualKeyboardPopup"
    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}" />
        <Grid Visibility="{Binding UseInGameTextBox, Converter={StaticResource A_Converter_BoolToVis}}">
            <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 TitleText}" />
                    <ContentControl
                        Style="{StaticResource A_Style_ContentControl_PopupContentBlock}">
                        <Grid>
                            <FZTextBlock x:Name="DummyTextBlockForResizeSettings"
                                         Text="{Loc UnitStrings.IDS_Units_Unitless_Label}"
                                         FontSize="22"
                                         Visibility="Hidden"
                                         Opacity="0"
                                         Color="#00FFFFFF"/>
                            <StackPanel>
                                <FZTextBlock
                                    Text="{Binding DescriptionText}"
                                    Width="Auto"
                                    ScreenReader.Line="{Binding DescriptionText, Converter={StaticResource A_Converter_TrimInlineMarkup}}"
                                    ScreenReader.Event="OnLoad"
                                    ScreenReader.LineType="ScreenDescription"
                                    Style="{StaticResource H_Style_Text_Description_Body_16px}" />
                                <FZTextBox
                                    x:Name="PART_TextBox"
                                    Margin="24,0,24,24"
                                    Focusable="True"
                                    FontSize="{Binding ResizedFontSize, ElementName=DummyTextBlockForResizeSettings}" />
                            </StackPanel>
                        </Grid>
                    </ContentControl>
                </StackPanel>
            </Grid>
        </Grid>
    </Grid>
</Page>