<Page xmlns:local="clr-namespace:ForzaUI"
      xmlns:System="clr-namespace:System;assembly=mscorlib"
      xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
      xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
      xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
      xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
      x:Class="ForzaUI.A_HudOptions"
      mc:Ignorable="d"
      Style="{StaticResource A_Style_Page_Generic}"
      DataContext="{Binding DataSource, RelativeSource={RelativeSource Self}}"
      FocusManager.FocusedElement="{Binding ElementName=OptionsList}">

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

    <Page.Resources>
        <ResourceDictionary>
            <local:TileMenuDataItem x:Key="A_DataItem_Camera"           Heading="{local:Loc InGame.IDS_HudOption_Camera}"      Description="{local:Loc InGame.IDS_HudOption_Camera_Desc}" />
            <local:TileMenuDataItem x:Key="A_DataItem_Map"              Heading="{local:Loc InGame.IDS_HudOption_Map}"         Description="{local:Loc InGame.IDS_HudOption_Map_Desc}" />
            <local:TileMenuDataItem x:Key="A_DataItem_Anna"             Heading="{local:Loc InGame.IDS_HudOption_Anna}"        Description="{local:Loc InGame.IDS_HudOption_Anna_Desc}" />
            <local:TileMenuDataItem x:Key="A_DataItem_QuickChat"        Heading="{local:Loc InGame.IDS_HudOption_QuickChat}"   Description="{local:Loc InGame.IDS_HudOption_QuickChat_Desc}" />
            <local:TileMenuDataItem x:Key="A_DataItem_Timers"           Heading="{local:Loc InGame.IDS_HudOption_Timers}"      Description="{local:Loc InGame.IDS_HudOption_Timers_Desc}" />
            <local:TileMenuDataItem x:Key="A_DataItem_WrongWay"         Heading="{local:Loc InGame.IDS_HudOption_WrongWay}"    Description="{local:Loc InGame.IDS_HudOption_WrongWay_Desc}" />
            <local:TileMenuDataItem x:Key="A_DataItem_Names"            Heading="{local:Loc InGame.IDS_HudOption_Names}"       Description="{local:Loc InGame.IDS_HudOption_Names_Desc}" />
            <local:TileMenuDataItem x:Key="A_DataItem_Speedometer"      Heading="{local:Loc InGame.IDS_HudOption_Speedometer}" Description="{local:Loc InGame.IDS_HudOption_Speedometer_Desc}" />
            <local:TileMenuDataItem x:Key="A_DataItem_Units"            Heading="{local:Loc InGame.IDS_HudOption_Units}"       Description="{local:Loc InGame.IDS_HudOption_Units_Desc}" />
            <local:TileMenuDataItem x:Key="A_DataItem_Ghosts"           Heading="{local:Loc InGame.IDS_HudOption_Ghosts}"      Description="{local:Loc InGame.IDS_HudOption_Ghosts_Desc}" />
            <local:TileMenuDataItem x:Key="A_DataItem_RaceFeats"        Heading="{local:Loc InGame.IDS_HudOption_RaceFeats}"   Description="{local:Loc InGame.IDS_HudOption_RaceFeats_Desc}" />
            <local:TileMenuDataItem x:Key="A_DataItem_MinorNotifications" Heading="{local:Loc InGame.IDS_HudOption_MinorNotifications}" Description="{local:Loc InGame.IDS_HudOption_MinorNotifications_Desc}" />
            <local:TileMenuDataItem x:Key="A_DataItem_ActivityInviteNotifications" Heading="{local:Loc InGame.IDS_HudOption_ActivityInviteNotifications}" Description="{local:Loc InGame.IDS_HudOption_ActivityInviteNotifications_Desc}" />
            <local:TileMenuDataItem x:Key="A_DataItem_DrivatarLiveries" Heading="{local:Loc InGame.IDS_HudOption_EnableDrivatarLiveries}" Description="{local:Loc InGame.IDS_HudOption_EnableDrivatarLiveries_Desc}" />
            <local:TileMenuDataItem x:Key="A_DataItem_PlayerLiveries" Heading="{local:Loc InGame.IDS_HudOption_EnablePlayerLiveries}" Description="{local:Loc InGame.IDS_HudOption_EnablePlayerLiveries_Desc}" />
            <local:TileMenuDataItem x:Key="A_DataItem_PartyPrivacy" Heading="{local:Loc Lobby.IDS_PartyList_Privacy_Popup_Title}" Description="{local:Loc Lobby.IDS_PartyList_Privacy_Popup_Body}" />
            <local:TileMenuDataItem x:Key="A_DataItem_HideInactiveMouseOnHUD" Heading="{local:Loc InGame.IDS_HudOption_HideInactiveMouseOnHUD}" Description="{local:Loc InGame.IDS_HudOption_HideInactiveMouseOnHUD_Desc}" />
            <local:TileMenuDataItem x:Key="A_DataItem_HUDSafeFrameHorizontal" Heading="{local:Loc InGame.IDS_HUDSafeFrameHorizontal}" Description="{local:Loc InGame.IDS_HUDSafeFrameHorizontalDescription}" />
            <local:TileMenuDataItem x:Key="A_DataItem_HUDSafeFrameVertical" Heading="{local:Loc InGame.IDS_HUDSafeFrameVertical}" Description="{local:Loc InGame.IDS_HUDSafeFrameVerticalDescription}" />
            <local:TileMenuDataItem x:Key="A_DataItem_OnlineFreeroamRewindMode" Heading="{local:Loc InGame.IDS_HudOption_OnlineFreeroamRewindMode}" Description="{local:Loc InGame.IDS_HudOption_OnlineFreeroamRewindMode_Desc}" />
            <local:TileMenuDataItem x:Key="A_DataItem_LensEffects" Heading="{local:Loc InGame.IDS_HudOption_LensEffects}" Description="{local:Loc InGame.IDS_HudOption_LensEffects_Desc}" />
            <local:TileMenuDataItem x:Key="A_DataItem_TelemetryDataOut" Heading="{local:Loc InGame.IDS_HudOption_TelemetryDataOut}" Description="{local:Loc InGame.IDS_HudOption_TelemetryDataOut_Desc}" />
            <local:TileMenuDataItem x:Key="A_DataItem_TelemetryDataOutAddress" Heading="{local:Loc InGame.IDS_HudOption_TelemetryDataOutAddress}" Description="{local:Loc InGame.IDS_HudOption_TelemetryDataOutAddress_Desc}" />
            <local:TileMenuDataItem x:Key="A_DataItem_TelemetryDataOutPort" Heading="{local:Loc InGame.IDS_HudOption_TelemetryDataOutPort}" Description="{local:Loc InGame.IDS_HudOption_TelemetryDataOutPort_Desc}" />

            <local:TileMenuDataItem x:Key="A_DataItem_DriftHeadEnabled"
                                    Heading="{local:Loc InGame.IDS_HudOption_DriftHeadMotion}"
                                    Description="{local:Loc InGame.IDS_HudOption_DriftHeadMotion_Desc}" />
            <local:TileMenuDataItem x:Key="A_DataItem_DriftHeadMotionStrength"
                                    Heading="{local:Loc InGame.IDS_HudOption_DriftHeadMotionStrength}"
                                    Description="{local:Loc InGame.IDS_HudOption_DriftHeadMotionStrength_Desc}" />
            <local:TileMenuDataItem x:Key="A_DataItem_DriftHeadMotionLookSpeed"
                                    Heading="{local:Loc InGame.IDS_HudOption_DriftHeadMotionLookSpeed}"
                                    Description="{local:Loc InGame.IDS_HudOption_DriftHeadMotionLookSpeed_Desc}" />
            <local:TileMenuDataItem x:Key="A_DataItem_DriftHeadMotionRange"
                                    Heading="{local:Loc InGame.IDS_HudOption_DriftHeadMotionRange}"
                                    Description="{local:Loc InGame.IDS_HudOption_DriftHeadMotionRange_Desc}" />

            <System:Double x:Key="A_Double_HUDSafeFrameHorizontalMax">0.69</System:Double>
            <System:Double x:Key="A_Double_HUDSafeFrameVerticalMax">0.25</System:Double>

            <Style x:Key="A_Style_Grid_HUDSafeFrameIndicators"
                   TargetType="Grid"
                   BasedOn="{StaticResource A_Style_FrameworkElement_LayoutRoot}">
                <Setter Property="Width"
                        Value="Auto" />
                <Setter Property="Height"
                        Value="Auto" />
                <Setter Property="HorizontalAlignment"
                        Value="Stretch" />
                <Setter Property="VerticalAlignment"
                        Value="Stretch" />
                <Setter Property="Visibility"
                        Value="Hidden" />
                <Style.Triggers>
                    <DataTrigger Binding="{Binding IsKeyboardFocusWithin, ElementName=HUDSafeFrameHorizontalSpinner}"
                                 Value="True">
                        <Setter Property="Visibility"
                                Value="Visible" />
                    </DataTrigger>
                    <DataTrigger Binding="{Binding IsKeyboardFocusWithin, ElementName=HUDSafeFrameVerticalSpinner}"
                                 Value="True">
                        <Setter Property="Visibility"
                                Value="Visible" />
                    </DataTrigger>
                </Style.Triggers>
            </Style>

            <Style x:Key="A_Style_FZMaterial_HUDSafeFrameIndicator"
                   TargetType="local:FZMaterial">
                <Setter Property="ImageSource"
                        Value="/ForzaUI;component/Textures/Anthem/Icons/Corner.png" />
                <Setter Property="Width"
                        Value="64" />
                <Setter Property="Height"
                        Value="64" />
                <Setter Property="RenderTransformOrigin"
                        Value="0.5,0.5" />
            </Style>

            <local:LinearTransformConverter x:Key="A_Converter_Identity" />

            <Style x:Key="A_Style_Slider_Options_DriftHead"
                   BasedOn="{StaticResource A_Style_Slider_Options_InItemsList}"
                   TargetType="Slider">
                <Setter Property="Maximum"
                        Value="100" />
                <Setter Property="Minimum"
                        Value="0" />
                <Setter Property="SmallChange"
                        Value="1" />
                <Setter Property="LargeChange"
                        Value="0" />
                <Setter Property="local:BindingProxy.B"
                        Value="{Binding Value, RelativeSource={RelativeSource Self}, Converter={StaticResource A_NumUnitConverter_Percent}}" />
            </Style>

            <Style x:Key="A_Style_Slider_Options_HUD_SafeFrameHorizontal"
                   BasedOn="{StaticResource A_Style_Slider_Options_InItemsList}"
                   TargetType="Slider">
                <Setter Property="SmallChange"
                        Value="0.015" />
                <Setter Property="LargeChange"
                        Value="0" />
                <Setter Property="Minimum"
                        Value="0" />
                <Setter Property="Maximum"
                        Value="{StaticResource A_Double_HUDSafeFrameHorizontalMax}" />
                <Setter Property="TickFrequency"
                        Value="0.025" />
                <Setter Property="IsSnapToTickEnabled"
                        Value="True" />
                <Setter Property="local:BindingProxy.B"
                        Value="{Binding NormalizedHUDSafeFrameHorizontal, ConverterParameter=fracpercentage, Converter={StaticResource A_NumUnitConverter_Percent}}" />
            </Style>

            <Style x:Key="A_Style_Slider_Options_HUD_SafeFrameVertical"
                   BasedOn="{StaticResource A_Style_Slider_Options_HUD_SafeFrameHorizontal}"
                   TargetType="Slider">
                <Setter Property="Maximum"
                        Value="{StaticResource A_Double_HUDSafeFrameVerticalMax}" />
                <Setter Property="local:BindingProxy.B"
                        Value="{Binding NormalizedHUDSafeFrameVertical, ConverterParameter=fracpercentage, Converter={StaticResource A_NumUnitConverter_Percent}}" />
            </Style>
        </ResourceDictionary>
    </Page.Resources>

    <Grid>
        <!-- Background Blur -->
       <Control Style="{StaticResource A_Style_Control_ScreenBackground}" />

        <local:PlayerBarControl x:Name="TopBar" Style="{StaticResource A_Style_PlayerBarControl}" />
        <ContentControl x:Name="BottomBar" Style="{StaticResource A_Style_ButtonBar}">
            <ContentControl x:Name="DefaultHelpPanel"
                    local:ControllerButtonPanel.ADescription="{local:Loc HelpButtons.IDS_Accept}"
                    local:ControllerButtonPanel.BDescription="{local:Loc HelpButtons.IDS_Cancel}"
                    local:ControllerButtonPanel.YDescription="{local:Loc HelpButtons.IDS_ResetDefault}"
                    Style="{StaticResource A_Style_ContentControl_DefaultButtonBar}" />
        </ContentControl>

        <Grid>
            <Border Style="{StaticResource A_Style_Border_ScenePadding}" SnapsToDevicePixels="True" UseLayoutRounding="True" >
                <Grid x:Name="LayoutRoot">
                    <Grid Style="{StaticResource A_Style_FrameworkElement_ScreenTilt}" Focusable="False" >
                        <StackPanel Orientation="Vertical"
                                    VerticalAlignment="Center"
                                    HorizontalAlignment="Center" >
                            <StackPanel Orientation="Horizontal" Style="{StaticResource A_Style_FrameworkElement_DefaultTransition_0}">
                                <ContentControl Tag="{local:Loc ScreenTitles.IDS_MyProfile}"
                                                Content="{local:Loc ScreenTitles.IDS_HUDOptions}"
                                                local:BindingProxy.A="/ForzaUI;component/Textures/Anthem/Icons/Titles/Options.png"
                                                Style="{StaticResource A_Style_ContentControl_ScreenTitleBlock}" />
                            </StackPanel>


                            <DockPanel Style="{StaticResource A_Style_FrameworkElement_DefaultTransition_0}" VerticalAlignment="Top" >

                                <ContentControl Content="{Binding Tag.Description}" DataContext="{Binding SelectedItem, ElementName=OptionsList}" Style="{StaticResource A_Style_DescriptionPanel_Options}" local:UIPageTransitionManager.TransitionIndex="1" DockPanel.Dock="Right" VerticalAlignment="Top" />

                                <Grid local:UIPageTransitionManager.TransitionIndex="0" DockPanel.Dock="Left">
                                    <local:CommonListBox x:Name="OptionsList"
                                                         KeyboardNavigation.DirectionalNavigation="Contained" 
                                                         Style="{StaticResource A_Style_ListBox_List_Default_ScrollBar}" 
                                                         ItemContainerStyle="{StaticResource A_Style_ListBoxItem_TextMenu_NotFocusable}"
                                                         Width="824"
                                                         HorizontalAlignment="Stretch"
                                                         VerticalAlignment="Top"
                                                         Height="663"
                                                         local:FocusOnPageFocusGained.VirtualizingSelectorSelectedItem="True">
                                        <local:SpinnerControl Label="{local:Loc InGame.IDS_HudOption_Camera}" Tag="{StaticResource A_DataItem_Camera}" SelectedIndex="{Binding CameraAngle}" ItemsSource="{Binding CameraAngleOptions}" Style="{StaticResource A_Style_SpinnerControl_Default_InItemsList}" x:Name="FirstItem"/>
                                        <local:SpinnerControl Label="{local:Loc InGame.IDS_HudOption_Map}" Tag="{StaticResource A_DataItem_Map}" SelectedIndex="{Binding Map}" ItemsSource="{Binding OnOffOptions}" Style="{StaticResource A_Style_SpinnerControl_Default_InItemsList}"/>
                                        <local:SpinnerControl Label="{local:Loc InGame.IDS_HudOption_Anna}" Tag="{StaticResource A_DataItem_Anna}" SelectedIndex="{Binding Anna}" ItemsSource="{Binding OnOffOptions}" Style="{StaticResource A_Style_SpinnerControl_Default_InItemsList}"/>
                                        <local:SpinnerControl Label="{local:Loc InGame.IDS_HudOption_QuickChat}" Tag="{StaticResource A_DataItem_QuickChat}" SelectedIndex="{Binding QuickChat}" ItemsSource="{Binding OnOffOptions}" Style="{StaticResource A_Style_SpinnerControl_Default_InItemsList}"/>
                                        <local:SpinnerControl Label="{local:Loc InGame.IDS_HudOption_Timers}" Tag="{StaticResource A_DataItem_Timers}" SelectedIndex="{Binding Timers}" ItemsSource="{Binding OnOffOptions}" Style="{StaticResource A_Style_SpinnerControl_Default_InItemsList}"/>
                                        <local:SpinnerControl Label="{local:Loc InGame.IDS_HudOption_WrongWay}" Tag="{StaticResource A_DataItem_WrongWay}" SelectedIndex="{Binding WrongWay}" ItemsSource="{Binding OnOffOptions}" Style="{StaticResource A_Style_SpinnerControl_Default_InItemsList}"/>
                                        <local:SpinnerControl Label="{local:Loc InGame.IDS_HudOption_Names}" Tag="{StaticResource A_DataItem_Names}" SelectedIndex="{Binding NamesOverCars}" ItemsSource="{Binding OnOffOptions}" Style="{StaticResource A_Style_SpinnerControl_Default_InItemsList}"/>
                                        <local:SpinnerControl Label="{local:Loc InGame.IDS_HudOption_Speedometer}" Tag="{StaticResource A_DataItem_Speedometer}" SelectedIndex="{Binding Speedometer}" ItemsSource="{Binding SpeedometerOptions}" Style="{StaticResource A_Style_SpinnerControl_Default_InItemsList}"/>
                                        <local:SpinnerControl Label="{local:Loc InGame.IDS_HudOption_Units}" Tag="{StaticResource A_DataItem_Units}" SelectedIndex="{Binding Units}" ItemsSource="{Binding UnitsOptions}" Style="{StaticResource A_Style_SpinnerControl_Default_InItemsList}"/>
                                        <local:SpinnerControl Label="{local:Loc InGame.IDS_HudOption_Ghosts}" Tag="{StaticResource A_DataItem_Ghosts}" SelectedIndex="{Binding Ghosts}" ItemsSource="{Binding OnOffOptions}" Style="{StaticResource A_Style_SpinnerControl_Default_InItemsList}"/>
                                        <local:SpinnerControl Label="{local:Loc InGame.IDS_HudOption_RaceFeats}" Tag="{StaticResource A_DataItem_RaceFeats}" SelectedIndex="{Binding RaceFeats}" ItemsSource="{Binding OnOffOptions}" Style="{StaticResource A_Style_SpinnerControl_Default_InItemsList}"/>
                                        <local:SpinnerControl Label="{local:Loc InGame.IDS_HudOption_MinorNotifications}" Tag="{StaticResource A_DataItem_MinorNotifications}" SelectedIndex="{Binding MinorNotifications}" ItemsSource="{Binding OnOffOptions}" Style="{StaticResource A_Style_SpinnerControl_Default_InItemsList}" />
                                        <local:SpinnerControl Label="{local:Loc InGame.IDS_HudOption_ActivityInviteNotifications}" Tag="{StaticResource A_DataItem_ActivityInviteNotifications}" SelectedIndex="{Binding ActivityInviteNotifications}" ItemsSource="{Binding OnOffOptions}" Style="{StaticResource A_Style_SpinnerControl_Default_InItemsList}" />
                                        <local:SpinnerControl Label="{local:Loc InGame.IDS_HudOption_EnableDrivatarLiveries}" Tag="{StaticResource A_DataItem_DrivatarLiveries}" SelectedIndex="{Binding EnableDrivatarLiveries}" ItemsSource="{Binding OnOffOptions}" Style="{StaticResource A_Style_SpinnerControl_Default_InItemsList}" />
                                        <local:SpinnerControl Label="{local:Loc InGame.IDS_HudOption_EnablePlayerLiveries}" Tag="{StaticResource A_DataItem_PlayerLiveries}" SelectedIndex="{Binding EnablePlayerLiveries}" ItemsSource="{Binding OnOffOptions}" Style="{StaticResource A_Style_SpinnerControl_Default_InItemsList}" />
                                        <local:SpinnerControl Label="{local:Loc Lobby.IDS_PartyList_Privacy_Popup_Title}" Tag="{StaticResource A_DataItem_PartyPrivacy}" SelectedIndex="{Binding PartyPrivacy}" ItemsSource="{Binding PartyPrivacyOptions}" Style="{StaticResource A_Style_SpinnerControl_Default_InItemsList}" />
                                        <local:SpinnerControl Label="{Binding Heading, Source={StaticResource A_DataItem_DriftHeadEnabled}}" Tag="{StaticResource A_DataItem_DriftHeadEnabled}" SelectedIndex="{Binding DriftHeadMotion}" ItemsSource="{Binding DriftHeadMotionOptions}" Style="{StaticResource A_Style_SpinnerControl_Default_InItemsList}" />
                                        <Slider Value="{Binding DriftHeadMotionStrength, Converter={StaticResource A_Converter_Identity}}"
                                                Tag="{StaticResource A_DataItem_DriftHeadMotionStrength}"
                                                Style="{StaticResource A_Style_Slider_Options_DriftHead}" />
                                        <Slider Value="{Binding DriftHeadMotionLookSpeed, Converter={StaticResource A_Converter_Identity}}"
                                                Tag="{StaticResource A_DataItem_DriftHeadMotionLookSpeed}"
                                                Style="{StaticResource A_Style_Slider_Options_DriftHead}" />
                                        <Slider Value="{Binding DriftHeadMotionRange, Converter={StaticResource A_Converter_Identity}}"
                                                Tag="{StaticResource A_DataItem_DriftHeadMotionRange}"
                                                Style="{StaticResource A_Style_Slider_Options_DriftHead}" />
                                        <Slider x:Name="HUDSafeFrameHorizontalSpinner"
                                                Value="{Binding HUDSafeFrameHorizontal}"
                                                Tag="{StaticResource A_DataItem_HUDSafeFrameHorizontal}"
                                                Style="{StaticResource A_Style_Slider_Options_HUD_SafeFrameHorizontal}"
                                                Visibility="{Binding IsPC, RelativeSource={RelativeSource AncestorType=Page}, Converter={StaticResource A_FZBooleanToVisibilityConverter}}" />
                                        <Slider x:Name="HUDSafeFrameVerticalSpinner"
                                                Value="{Binding HUDSafeFrameVertical}"
                                                Tag="{StaticResource A_DataItem_HUDSafeFrameVertical}"
                                                Style="{StaticResource A_Style_Slider_Options_HUD_SafeFrameVertical}"
                                                Visibility="{Binding IsPC, RelativeSource={RelativeSource AncestorType=Page}, Converter={StaticResource A_FZBooleanToVisibilityConverter}}" />
                                        <local:SpinnerControl Label="{local:Loc InGame.IDS_HudOption_HideInactiveMouseOnHUD}"
                                                                Tag="{StaticResource A_DataItem_HideInactiveMouseOnHUD}"
                                                                SelectedIndex="{Binding HideInactiveMouseOnHUD}"
                                                                ItemsSource="{Binding OnOffOptions}"
                                                                Style="{StaticResource A_Style_SpinnerControl_Default_InItemsList}"
                                                                Visibility="{Binding IsPC, RelativeSource={RelativeSource AncestorType=Page}, Converter={StaticResource A_FZBooleanToVisibilityConverter}}" />
                                        <local:SpinnerControl Label="{local:Loc InGame.IDS_HudOption_LensEffects}"
                                                                Tag="{StaticResource A_DataItem_LensEffects}"
                                                                SelectedIndex="{Binding LensEffects}"
                                                                ItemsSource="{Binding OnOffOptions}"
                                                                Style="{StaticResource A_Style_SpinnerControl_Default_InItemsList}"
                                                                Visibility="{Binding IsPC, RelativeSource={RelativeSource AncestorType=Page}, Converter={StaticResource A_FZBooleanToVisibilityConverter}}" />
                                        <local:SpinnerControl Label="{local:Loc InGame.IDS_HudOption_OnlineFreeroamRewindMode}"
                                                                Tag="{StaticResource A_DataItem_OnlineFreeroamRewindMode}"
                                                                SelectedIndex="{Binding OnlineFreeroamRewindMode}"
                                                                ItemsSource="{Binding OnlineFreeroamRewindModeOptions}"
                                                                Style="{StaticResource A_Style_SpinnerControl_Default_InItemsList}" />
                                        <local:SpinnerControl Label="{local:Loc InGame.IDS_HudOption_TelemetryDataOut}"
                                                                Tag="{StaticResource A_DataItem_TelemetryDataOut}"
                                                                SelectedIndex="{Binding TelemetryDataOut}"
                                                                ItemsSource="{Binding OnOffOptions}"
                                                                Style="{StaticResource A_Style_SpinnerControl_Default_InItemsList}" />
                                        <local:SpinnerControl x:Name="TelemetryDataOutAddressControl"
                                                                Label="{local:Loc InGame.IDS_HudOption_TelemetryDataOutAddress}"
                                                                Tag="{StaticResource A_DataItem_TelemetryDataOutAddress}"
                                                                SelectedIndex="0"
                                                                ItemsSource="{Binding TelemetryDataOutAddressOptions}"
                                                                Style="{StaticResource A_Style_SpinnerControl_Default_InItemsList}" />
                                        <local:SpinnerControl x:Name="TelemetryDataOutPortControl"
                                                              Label="{local:Loc InGame.IDS_HudOption_TelemetryDataOutPort}"
                                                              Tag="{StaticResource A_DataItem_TelemetryDataOutPort}"
                                                              SelectedIndex="0"
                                                              ItemsSource="{Binding TelemetryDataOutPortOptions}"
                                                              Style="{StaticResource A_Style_SpinnerControl_Default_InItemsList}" />
                                    </local:CommonListBox>
                                </Grid>

                            </DockPanel>
                        </StackPanel>
                    </Grid>
                </Grid>
            </Border>

            <Grid Style="{StaticResource A_Style_Grid_HUDSafeFrameIndicators}"
                  Margin="{Binding HUDSafeFrameMargin}">
                <local:FZMaterial Style="{StaticResource A_Style_FZMaterial_HUDSafeFrameIndicator}"
                                  HorizontalAlignment="Left"
                                  VerticalAlignment="Top">
                    <local:FZMaterial.RenderTransform>
                        <RotateTransform Angle="90"/>
                    </local:FZMaterial.RenderTransform>
                </local:FZMaterial>
                <local:FZMaterial Style="{StaticResource A_Style_FZMaterial_HUDSafeFrameIndicator}"
                                  HorizontalAlignment="Left"
                                  VerticalAlignment="Bottom" />
                <local:FZMaterial Style="{StaticResource A_Style_FZMaterial_HUDSafeFrameIndicator}"
                                  HorizontalAlignment="Right"
                                  VerticalAlignment="Top">
                    <local:FZMaterial.RenderTransform>
                        <RotateTransform Angle="180"/>
                    </local:FZMaterial.RenderTransform>
                </local:FZMaterial>
                <local:FZMaterial Style="{StaticResource A_Style_FZMaterial_HUDSafeFrameIndicator}"
                                  HorizontalAlignment="Right"
                                  VerticalAlignment="Bottom">
                    <local:FZMaterial.RenderTransform>
                        <RotateTransform Angle="270"/>
                    </local:FZMaterial.RenderTransform>
                </local:FZMaterial>
            </Grid>
        </Grid>
    </Grid>
</Page>
