<Page xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
      xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
      xmlns:System="clr-namespace:System;assembly=mscorlib"
      xmlns:local="clr-namespace:ForzaUI;assembly="
      x:Class="ForzaUI.A_CopterHud"
      x:Name="Page"
      WindowTitle="Page"
      FlowDirection="LeftToRight"
      Style="{StaticResource A_Style_Page_Generic}"
      DataContext="{Binding RelativeSource={x:Static RelativeSource.Self}}">

    <local:UIPageTransitionManager.TransitionManager>
        <local:UIPageTransitionManager Preset="{StaticResource A_UIPageTransitionManagerPreset_Hud}" />
    </local:UIPageTransitionManager.TransitionManager>

    <Grid x:Name="LayoutRoot">
        <Grid Style="{StaticResource A_Style_FrameworkElement_FadeOnlyTransition_0}">
            <!-- screen space shadow -->
            <local:FZMaterial Preset="{StaticResource A_FZMaterialPresetScreenShadow_ARUI}" />

            <ContentControl Style="{StaticResource A_Style_ButtonBar}"
                            x:Name="BottomBar">
                <local:ControllerButtonPanel x:Name="HelpPanel"
                                             Style="{StaticResource A_Style_ControllerButtonPanel_Default}">
                    <local:ControllerButtonControl Button="B"
                                                   Description="{local:Loc HelpButtons.IDS_Back}"/>
                    <local:ControllerButtonControl Button="Back"
                                                   Description="{local:Loc HelpButtons.IDS_HideUI}"/>
                    <local:ControllerButtonControl Button="DPadHorizontal"
                                                   InputOverride="{local:Input Command=INPUTCMD_RADIO_RIGHT, Context=INPUTCONTEXT_COPTER}"
                                                   Description="{local:Loc HelpButtons.IDS_CycleRadio}" />
                    <local:ControllerButtonControl Button="RBumper"
                                                   InputOverride="{local:Input Command=INPUTCMD_COPTER_TURBO, Context=INPUTCONTEXT_COPTER}"
                                                   Description="{local:Loc HelpButtons.IDS_Turbo}" />
                </local:ControllerButtonPanel>
            </ContentControl>

            <Grid Style="{StaticResource A_Style_FrameworkElement_LayoutRoot}">
                <Grid x:Name="AdjustableSafeFrame"
                      Margin="{Binding SafeFrameMargin}">

                    <!--Always On-->
                    <Decorator HorizontalAlignment="Left"
                               VerticalAlignment="Bottom"
                               Margin="0,0,0,83">
                        <local:HUDAnnaControl x:Name="HUDStatusAnna"
                                              ElementToTrack="copter_local_player"
                                              CanShowDestination="False"/>
                    </Decorator>
                    <Decorator HorizontalAlignment="Left"
                               VerticalAlignment="Bottom" 
                               Margin="0,0,0,49">
                        <local:HUDRadioControl x:Name="HUDStatusRadio"/>
                    </Decorator>
                    <local:HUDWaitSpinnerControl x:Name="HUDStatusWaitSpinner"
                                                 HorizontalAlignment="Right"
                                                 VerticalAlignment="Bottom"/>

                    <local:HUDMiniLeaderboardControl x:Name="HUDStatusMiniLeaderboard" />

                    <!-- Notifications and Transient Controls -->
                    <local:HUDMinorNotificationControl x:Name="HUDStatusMinorNotification" />

                    <!-- Network Controls -->
                    <local:HUDNetworkStatusControl x:Name="HUDStatusNetworkStatus" />
                </Grid>
            </Grid>
        </Grid>
    </Grid>
</Page>
