<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="PART_LayoutRoot">
        <Grid Style="{StaticResource A_Style_FrameworkElement_FadeOnlyTransition_0}">
            <ContentControl Style="{StaticResource A_Style_ButtonBar}"
                            x:Name="BottomBar">
                <local:ControllerButtonPanel x:Name="PART_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_HideShowUI}"/>
                    <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}"
                  HorizontalAlignment="Stretch"
                  VerticalAlignment="Stretch"
                  Height="Auto"
                  Width="Auto">
                <Grid x:Name="AdjustableSafeFrame"
                      Margin="{Binding SafeFrameMargin}">

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

                    <local:HUDMiniLeaderboardControl HUDData.Type="HUDStatusMiniLeaderboard" />

                    <!-- Notifications and Transient Controls -->
                    <StackPanel VerticalAlignment="Bottom">
                        <local:HUDMinorNotificationControl HUDData.Type="HUDStatusMinorNotification" />
                        <Decorator Style="{StaticResource A_Style_FrameworkElement_SubtitlesSpaceMaker}" />
                    </StackPanel>

                    <local:HUDAnnouncementControl HUDData.Type="HUDStatusAnnouncement" />

                    <local:HUDMajorNotificationControl HUDData.Type="HUDStatusMajorNotification" />

                    <!-- Network Controls -->
                    <local:HUDNetworkStatusControl HUDData.Type="HUDStatusNetworkStatus" />
                </Grid>
            </Grid>
        </Grid>
    </Grid>
</Page>
