<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_RouteBlueprintHud"
      x:Name="Page"
      WindowTitle="Page"
      FlowDirection="LeftToRight"
      Style="{StaticResource A_Style_Page_Generic}"
      DataContext="{Binding RelativeSource={x:Static RelativeSource.Self}}">

    <Page.Resources>
        <ResourceDictionary>

            <local:LinearTransformConverter x:Key="A_TransformConverter_LengthRatio" Scale="310"/>

            <Color x:Key="A_Color_Orange_Bar">#D9A43B</Color>
            <Color x:Key="A_Color_LayerNumberText">#FF444444</Color>
            <Color x:Key="A_Color_Prop_IconBackground">#FF00B592</Color>


            <Style x:Key="A_Style_FZRun_HIGHLIGHT" TargetType="{x:Type local:FZRun}">
                <Setter Property="Color" Value="{StaticResource A_Color_HUD_HighlightText}"/>
            </Style>

            <Style x:Key="A_Style_FZRun_YELLOW" TargetType="{x:Type local:FZRun}">
                <Setter Property="Color" Value="{StaticResource H_Color_Primary_Yellow}"/>
            </Style>

            <Style x:Key="A_Style_FZMaterial_PropBar" TargetType="local:FZMaterial">
                <Style.Triggers>
                    <DataTrigger Binding="{Binding PropsPlacedRatio, Converter={CompareConverter}, ConverterParameter=0.5}" Value="{Static CompareResult.LessThan}">
                        <Setter Property="Color" Value="{StaticResource H_Color_Primary_Yellow}"/>
                    </DataTrigger>
                    <DataTrigger Binding="{Binding PropsPlacedRatio, Converter={CompareConverter}, ConverterParameter=0.5}" Value="{Static CompareResult.Equal}">
                        <Setter Property="Color" Value="{StaticResource A_Color_Orange_Bar}"/>
                    </DataTrigger>
                    <DataTrigger Binding="{Binding PropsPlacedRatio, Converter={CompareConverter}, ConverterParameter=0.5}" Value="{Static CompareResult.GreaterThan}">
                        <Setter Property="Color" Value="{StaticResource A_Color_Orange_Bar}"/>
                    </DataTrigger>
                    <DataTrigger Binding="{Binding PropsPlacedRatio, Converter={CompareConverter}, ConverterParameter=0.94}" Value="{Static CompareResult.GreaterThan}">
                        <Setter Property="Color" Value="{StaticResource H_Color_Primary_Pink}"/>
                    </DataTrigger>
                </Style.Triggers>
            </Style>

            <Style x:Key="A_Style_FZMaterial_FlatPanel_IconBackground" TargetType="{x:Type local:FZMaterial}" BasedOn="{StaticResource A_Style_FZMaterial_FlatPanel_Tile}">
                <Setter Property="Preset" Value="{StaticResource A_FZMaterialPresetRoundtangle_FlatPanel_InnerAll}"/>
                <Setter Property="Color" Value="{StaticResource A_Color_Prop_IconBackground}"/>
            </Style>

            <Style x:Key="A_Style_FZMaterial_IconContainer" TargetType="{x:Type local:FZMaterial}">
                <Setter Property="Width" Value="28"/>
                <Setter Property="Height" Value="28"/>
                <Setter Property="Margin" Value="2"/>
            </Style>

            <Style x:Key="A_Style_FrameworkElement_Prop_VisibleIfUnlockedAndParent"
                   TargetType="{x:Type FrameworkElement}">
                <Setter Property="Visibility" Value="Collapsed" />
                <Style.Triggers>
                    <MultiDataTrigger>
                        <MultiDataTrigger.Conditions>
                            <Condition Binding="{Binding HasChild}" Value="True" />
                            <Condition Binding="{Binding IsLocked}" Value="False" />
                        </MultiDataTrigger.Conditions>
                        <Setter Property="Visibility" Value="Visible" />
                    </MultiDataTrigger>
                </Style.Triggers>
            </Style>

            <Style x:Key="A_Style_FrameworkElement_Prop_VisibleIfUnlockedAndParent_Inverse"
                   TargetType="{x:Type FrameworkElement}">
                <Setter Property="Visibility" Value="Visible" />
                <Style.Triggers>
                    <MultiDataTrigger>
                        <MultiDataTrigger.Conditions>
                            <Condition Binding="{Binding HasChild}" Value="True" />
                            <Condition Binding="{Binding IsLocked}" Value="False" />
                        </MultiDataTrigger.Conditions>
                        <Setter Property="Visibility" Value="Collapsed" />
                    </MultiDataTrigger>
                </Style.Triggers>
            </Style>

            <Style x:Key="A_Style_FZMaterial_ChildCountContainer"
                   TargetType="{x:Type local:FZMaterial}"
                   BasedOn="{StaticResource A_Style_FrameworkElement_Prop_VisibleIfUnlockedAndParent}">
                <Setter Property="Width" Value="64"/>
                <Setter Property="Height" Value="32"/>
                <Setter Property="Margin" Value="4"/>
                <Setter Property="HorizontalAlignment" Value="Left"/>
                <Setter Property="VerticalAlignment" Value="Bottom"/>
            </Style>

            <Style x:Key="A_Style_FZTextBlock_ChildCount"
                   TargetType="{x:Type local:FZTextBlock}"
                   BasedOn="{StaticResource A_Style_FZTextBlock_HorizonA}">
                <Setter Property="Text" Value="{Binding ChildCount, FallbackValue=0}" />
                <Setter Property="CapHeight" Value="15" />
                <Setter Property="HorizontalAlignment" Value="Center" />
                <Setter Property="VerticalAlignment" Value="Center" />
                <Setter Property="Margin" Value="0,0,2,0" />
                <Setter Property="Color" Value="{StaticResource H_Color_Primary_Black}" />
            </Style>

            <local:MappingConverter x:Key="A_MappingConverter_PropState_To_CostVisibility" Default="Collapsed">
                <local:MappingConverterEntry Key="{x:Static local:PropState.Locked}" Value="{x:Static Visibility.Collapsed}" />
                <local:MappingConverterEntry Key="{x:Static local:PropState.Available}" Value="{x:Static Visibility.Visible}" />
                <local:MappingConverterEntry Key="{x:Static local:PropState.AssetUnavailable}" Value="{x:Static Visibility.Collapsed}" />
                <local:MappingConverterEntry Key="{x:Static local:PropState.GridSlotAlreadyPlaced}" Value="{x:Static Visibility.Visible}" />
                <local:MappingConverterEntry Key="{x:Static local:PropState.GridSlotInvalid}" Value="{x:Static Visibility.Visible}" />
                <local:MappingConverterEntry Key="{x:Static local:PropState.GridSlotMissing}" Value="{x:Static Visibility.Visible}" />
                <local:MappingConverterEntry Key="{x:Static local:PropState.MaxInstancesPlaced}" Value="{x:Static Visibility.Visible}" />
                <local:MappingConverterEntry Key="{x:Static local:PropState.MaxDisplayCarsPlaced}" Value="{x:Static Visibility.Visible}" />
                <local:MappingConverterEntry Key="{x:Static local:PropState.NotEnoughCredits}" Value="{x:Static Visibility.Visible}" />
                <local:MappingConverterEntry Key="{x:Static local:PropState.MultiplayerRejected}" Value="{x:Static Visibility.Visible}" />
                <local:MappingConverterEntry Key="{x:Static local:PropState.NoMoreMemory}" Value="{x:Static Visibility.Visible}" />
            </local:MappingConverter>

            <!-- prop item style -->
            <local:MappingConverter x:Key="A_MappingConverter_NoPropMemory_Visibility" Default="Collapsed">
                <local:MappingConverterEntry Key="{x:Static local:PropState.NoMoreMemory}" Value="{x:Static Visibility.Visible}" />
            </local:MappingConverter>

            <local:MappingConverter x:Key="A_MappingConverter_Expansion_Visibility" Default="Collapsed">
                <local:MappingConverterEntry Key="{x:Static local:XAMLForzaExpansions.ExpansionOne}" Value="{x:Static Visibility.Visible}" />
            </local:MappingConverter>

            <local:MappingConverter x:Key="A_MappingConverter_Expansion_Icon">
                <local:MappingConverterEntry Key="{x:Static local:XAMLForzaExpansions.ExpansionOne}" Value="/ForzaUI;component/Textures/Data_Bound/PropPlacement/PropPlacement_DLCIcon.png" />
            </local:MappingConverter>

            <local:MappingConverter x:Key="A_MappingConverter_CollapsedIf_EventPropPlacementScene" Default="{x:Static Visibility.Visible}">
                <local:MappingConverterEntry Key="{x:Static local:XAMLPropPlacementSceneType.Event}" Value="{x:Static Visibility.Collapsed}" />
            </local:MappingConverter>

            <local:MappingConverter x:Key="A_MappingConverter_BudgetInfoControlMargin_To_XAMLPropPlacementSceneType" Default="270,0,0,0">
                <local:MappingConverterEntry Key="{x:Static local:XAMLPropPlacementSceneType.Garage}" Value="0,0,0,0" />
            </local:MappingConverter>

            <local:MappingConverter x:Key="A_MappingConverter_PropState_Text" Default="">
                <local:MappingConverterEntry Key="{x:Static local:PropState.GridSlotMissing}" Value="{local:Loc EventBlueprint.IDS_PropCarousel_SlotMissing}" />
                <local:MappingConverterEntry Key="{x:Static local:PropState.GridSlotInvalid}" Value="{local:Loc EventBlueprint.IDS_PropCarousel_SlotInvalid}" />
            </local:MappingConverter>

            <local:MappingConverter x:Key="A_MappingConverter_PropPlacementSceneType_To_ExitLabel" Default="{local:Loc HelpButtons.IDS_PropPlacement_SaveExit}">
                <local:MappingConverterEntry Key="{x:Static local:XAMLPropPlacementSceneType.Estate}" Value="{local:Loc EventBlueprint.IDS_PropPlacement_SaveExit_Estate}" />
                <local:MappingConverterEntry Key="{x:Static local:XAMLPropPlacementSceneType.Garage}" Value="{local:Loc EventBlueprint.IDS_PropPlacement_SaveExit_Garage}" />
            </local:MappingConverter>

            <local:MappingConverter x:Key="A_MappingConverter_PropPlacementSceneType_To_WorldBuilderLabel" Default="{local:Loc EventBlueprint.IDS_PropPlacementHUD_Label_WorldBuilder}">
                <local:MappingConverterEntry Key="{x:Static local:XAMLPropPlacementSceneType.Estate}" Value="{local:Loc EventBlueprint.IDS_PropPlacementHUD_Label_WorldBuilder_Estate}" />
                <local:MappingConverterEntry Key="{x:Static local:XAMLPropPlacementSceneType.Garage}" Value="{local:Loc EventBlueprint.IDS_PropPlacementHUD_Label_WorldBuilder_Garage}" />
            </local:MappingConverter>

            <local:MappingConverter x:Key="A_MappingConverter_PropState_LabelVisibility" Default="Collapsed">
                <local:MappingConverterEntry Key="{x:Static local:PropState.GridSlotMissing}" Value="{x:Static Visibility.Visible}" />
                <local:MappingConverterEntry Key="{x:Static local:PropState.GridSlotInvalid}" Value="{x:Static Visibility.Visible}" />
            </local:MappingConverter>

            <local:MappingConverter x:Key="A_MappingConverter_PropState_To_Visibility_WarningIcon" Default="Collapsed">
                <local:MappingConverterEntry Key="{x:Static local:PropState.GridSlotMissing}" Value="{x:Static Visibility.Visible}" />
                <local:MappingConverterEntry Key="{x:Static local:PropState.GridSlotInvalid}" Value="{x:Static Visibility.Visible}" />
            </local:MappingConverter>

            <local:MappingConverter x:Key="A_MappingConverter_PropState_To_Visibility_PlacedIcon" Default="Collapsed">
                <local:MappingConverterEntry Key="{x:Static local:PropState.GridSlotAlreadyPlaced}" Value="{x:Static Visibility.Visible}" />
            </local:MappingConverter>

            <Style x:Key="A_Style_PropThumbnail" TargetType="FZMaterial">
                <Setter Property="ImageSource" Value="{Binding Image}" />
                <Setter Property="Margin" Value="0" />
                <Setter Property="Preset" Value="{FZMaterialPresetRoundtangle CornerRadius=8}"/>
            </Style>

            <Style x:Key="A_Style_FZMaterial_CarouselCost_Background" TargetType="local:FZMaterial">
                <Setter Property="Color" Value="{StaticResource H_Color_Primary_Yellow}"/>
                <Style.Triggers>
                    <DataTrigger Binding="{Binding (MultiDataConversion.Output), ElementName=CreditsAfterPlacingProp, Converter={CompareConverter Value=0}}" Value="{Static CompareResult.LessThan}">
                        <Setter Property="Color" Value="{StaticResource H_Color_Secondary_Negative}"/>
                    </DataTrigger>
                </Style.Triggers>
            </Style>

            <Style x:Key="A_Style_FZTextBlock_CarouselCost_Text" TargetType="local:FZTextBlock">
                <Setter Property="Color" Value="{StaticResource H_Color_Primary_Black}"/>
                <Style.Triggers>
                    <DataTrigger Binding="{Binding (MultiDataConversion.Output), ElementName=CreditsAfterPlacingProp, Converter={CompareConverter Value=0}}" Value="{Static CompareResult.LessThan}">
                        <Setter Property="Color" Value="{StaticResource H_Color_Primary_White}"/>
                    </DataTrigger>
                </Style.Triggers>
            </Style>

            <Style x:Key="A_Style_FZRun_BudgetElement_CREDIT_ICON"
                   TargetType="Control">
                <Setter
                    Property="Template">
                    <Setter.Value>
                        <ControlTemplate>
                            <Control Style="{StaticResource H_Style_Control_CreditsIcon}"
                                              Height="20" MinWidth="20"
                                              Margin="0,-2,5,0" />
                        </ControlTemplate>
                    </Setter.Value>
                </Setter>
            </Style>

            <MappingConverter x:Key="A_MappingConverter_Carousel_Markup">
                <MappingConverterEntry Key="{NoCase CREDIT_ICON}" Value="{StaticResource A_Style_FZRun_BudgetElement_CREDIT_ICON}" />
            </MappingConverter>

            <DataTemplate x:Key="A_DataTemplate_Prop">
                <Grid x:Name="Grid_Container">
                    <FrameworkElement x:Name="CreditsAfterPlacingProp"
                                      MultiDataConversion.Value="{Binding CurrentAvailableCredits, RelativeSource={RelativeSource AncestorType=Page}}"
                                      MultiDataConversion.Parameter="{Binding Cost}"
                                      MultiDataConversion.TargetType="{Type Int32}"
                                      MultiDataConversion.Converter="{MathOperationConverter Operation={Static XAMLMathOperation.Subtract}}"/>
                    <Grid RenderTransformOrigin="0.5,0.5" local:ZPanel.ZOffset="0">
                        <Grid>
                            <local:FZMaterial Style="{StaticResource A_Style_PropThumbnail}"/>
                            <Grid Style="{StaticResource A_Style_FrameworkElement_Prop_VisibleIfUnlockedAndParent_Inverse}">
                                <StackPanel Orientation="Horizontal" HorizontalAlignment="Stretch" VerticalAlignment="Bottom" Margin="2">
                                    <local:FZMaterial Visibility="{Binding State, Converter={StaticResource A_MappingConverter_PropState_LabelVisibility}}"
                                                      Color="{StaticResource H_Color_Primary_Black}"
                                                      Preset="{StaticResource A_FZMaterialPresetRoundtangle_FlatPanel_OuterAll2px}"
                                                      Margin="2">
                                        <local:FZTextBlock Text="{Binding State, Converter={StaticResource A_MappingConverter_PropState_Text}}"
                                                           Color="{StaticResource H_Color_Primary_White}"
                                                           CapHeight="15"
                                                           Margin="7" />
                                    </local:FZMaterial>
                                    <local:FZMaterial Visibility="{Binding HasVariants, Converter={StaticResource A_FZBooleanToVisibilityConverter}, FallbackValue=Collapsed}"
                                                  ImageSource="/ForzaUI;component/Textures/Data_Bound/PropPlacement/colour_option.png"
                                                  Style="{StaticResource A_Style_FZMaterial_IconContainer}" />
                                    <local:FZMaterial Visibility="{Binding IsSmashable, Converter={StaticResource A_FZBooleanToVisibilityConverter}}"
                                                  ImageSource="/ForzaUI;component/Textures/Data_Bound/PropPlacement/smashable_option.png"
                                                  Style="{StaticResource A_Style_FZMaterial_IconContainer}" />
                                    <local:FZMaterial Visibility="{Binding IsInteractable, Converter={StaticResource A_FZBooleanToVisibilityConverter}}"
                                                  ImageSource="/ForzaUI;component/Textures/Data_Bound/PropPlacement/interact_option.png"
                                                  Style="{StaticResource A_Style_FZMaterial_IconContainer}" />
                                    <local:FZMaterial Visibility="{Binding ForzaExpansion, Converter={StaticResource A_MappingConverter_Expansion_Visibility}}"
                                                  ImageSource="{Binding ForzaExpansion, Converter={StaticResource A_MappingConverter_Expansion_Icon}}"
                                                  Style="{StaticResource A_Style_FZMaterial_IconContainer}" />
                                    <local:FZMaterial Visibility="{Binding IsLocked, Converter={StaticResource A_FZBooleanToVisibilityConverter}}"
                                                  ImageSource="/ForzaUI;component/Textures/Data_Bound/PropPlacement/PropPlacement_LockedIcon.png"
                                                  Style="{StaticResource A_Style_FZMaterial_IconContainer}" />
                                    <local:FZMaterial Visibility="{Binding IsFavorited, Converter={StaticResource A_FZBooleanToVisibilityConverter}}"
                                                  ImageSource="/ForzaUI;component/Textures/Data_Bound/PropPlacement/PropPlacement_FavoritedIcon.png"
                                                  Style="{StaticResource A_Style_FZMaterial_IconContainer}" />
                                </StackPanel>
                                <StackPanel Orientation="Horizontal" HorizontalAlignment="Right" VerticalAlignment="Bottom" Margin="2">
                                    <local:FZMaterial Visibility="{Binding State, Converter={StaticResource A_MappingConverter_PropState_To_Visibility_WarningIcon}}"
                                                      ImageSource="/ForzaUI;component/Textures/Data_Bound/PropPlacement/warning.png"
                                                      Style="{StaticResource A_Style_FZMaterial_IconContainer}" />
                                    <local:FZMaterial Visibility="{Binding State, Converter={StaticResource A_MappingConverter_PropState_To_Visibility_PlacedIcon}}"
                                                      ImageSource="/ForzaUI;component/Textures/Data_Bound/PropPlacement/placed.png"
                                                      Style="{StaticResource A_Style_FZMaterial_IconContainer}" />
                                </StackPanel>
                                <StackPanel Orientation="Horizontal" HorizontalAlignment="Right" VerticalAlignment="Top" Margin="2">
                                    <local:FZMaterial Visibility="{Binding State, Converter={StaticResource A_MappingConverter_NoPropMemory_Visibility}}"
                                                  ImageSource="/ForzaUI;component/Textures/Data_Bound/PropPlacement/PropPlacement_MemoryWarning.png"
                                                  Style="{StaticResource A_Style_FZMaterial_IconContainer}" />
                                </StackPanel>
                                <Decorator Visibility="{Binding PropPlacementSceneType, RelativeSource={RelativeSource AncestorType=Page}, Converter={StaticResource A_MappingConverter_CollapsedIf_EventPropPlacementScene}}">
                                    <local:FZMaterial HorizontalAlignment="Right" 
                                                      VerticalAlignment="Top" 
                                                      Margin="4" 
                                                      Height="28"
                                                      Style="{StaticResource A_Style_FZMaterial_CarouselCost_Background}"
                                                      Visibility="{Binding State, Converter={StaticResource A_MappingConverter_PropState_To_CostVisibility}}">
                                        <local:FZTextBlock Text="{Binding (local:MultiStringFormatter.Output), RelativeSource={RelativeSource Self}}"
                                                           local:MultiStringFormatter.Format="{local:Loc EventBlueprint.IDS_PropPlacementHUD_BudgetPanel_CreditsFormat}"
                                                           local:MultiStringFormatter.Param0="{Binding Cost, Converter={StaticResource A_NumUnitConverter_NoUnit_0dp}}"
                                                           Style="{StaticResource A_Style_FZTextBlock_CarouselCost_Text}"
                                                           CapHeight="15"
                                                           MarkupConverter="{StaticResource A_MappingConverter_Carousel_Markup}"
                                                           VerticalAlignment="Center"
                                                           Margin="8,0"/>
                                    </local:FZMaterial>
                                </Decorator>
                            </Grid>
                            <local:FZMaterial ImageSource="/ForzaUI;component/Textures/Data_Bound/PropPlacement/PropPlacement_PartCounter.png"
                                              Style="{StaticResource A_Style_FZMaterial_ChildCountContainer}">
                                <Grid Width="32" Height="32" VerticalAlignment="Center" HorizontalAlignment="Right">
                                    <FZTextBlock Style="{StaticResource A_Style_FZTextBlock_ChildCount}" />
                                </Grid>
                            </local:FZMaterial>
                        </Grid>
                    </Grid>
                </Grid>
            </DataTemplate>

            <DataTemplate x:Key="A_DataTemplate_PropVariantLayer">
                <Grid x:Name="Grid_Container">
                    <Grid RenderTransformOrigin="0.5,0.5" local:ZPanel.ZOffset="0">
                        <Grid>
                            <local:FZMaterial Style="{StaticResource A_Style_PropThumbnail}"/>
                        </Grid>
                    </Grid>
                </Grid>
            </DataTemplate>

            <local:MappingConverter x:Key="A_MappingConverter_CommunityProps_ButtonBar_Visibility" Default="Collapsed">
                <local:MappingConverterEntry Key="{x:Static local:XAMLPropCategoryType.CommunityProps}" Value="{x:Static Visibility.Visible}" />
            </local:MappingConverter>

            <local:MappingConverter x:Key="A_MappingConverter_CommunityProps_Favorite_Text" Default="{local:Loc HelpButtons.IDS_PropPlacement_Favorite_Prop}">
                <local:MappingConverterEntry Key="{StaticResource A_Boolean_True}" Value="{local:Loc HelpButtons.IDS_PropPlacement_Unfavorite_Prop}" />
            </local:MappingConverter>

            <local:MappingConverter x:Key="A_MappingConverter_PrecisionModeToggle_Visibility" Default="Collapsed">
                <local:MappingConverterEntry Key="{x:Static local:PropHudState.SelectingProp}" Value="{x:Static Visibility.Visible}" />
                <local:MappingConverterEntry Key="{x:Static local:PropHudState.SelectionMode}" Value="{x:Static Visibility.Visible}" />
                <local:MappingConverterEntry Key="{x:Static local:PropHudState.TransformingProp}" Value="{x:Static Visibility.Visible}" />
            </local:MappingConverter>

            <local:MappingConverter x:Key="A_MappingConverter_SelectionControls_Visibility" Default="Collapsed">
                <local:MappingConverterEntry Key="{x:Static local:PropHudState.SelectingProp}" Value="{x:Static Visibility.Visible}" />
            </local:MappingConverter>

            <local:MappingConverter x:Key="A_MappingConverter_TransformControls_Visibility" Default="Collapsed">
                <local:MappingConverterEntry Key="{x:Static local:PropHudState.TransformingProp}" Value="{x:Static Visibility.Visible}" />
            </local:MappingConverter>

            <local:MappingConverter x:Key="A_MappingConverter_SelectionMode_Visibility" Default="Collapsed">
                <local:MappingConverterEntry Key="{x:Static local:PropHudState.SelectionMode}" Value="{x:Static Visibility.Visible}" />
            </local:MappingConverter>

            <local:MappingConverter x:Key="A_MappingConverter_BrowsingPropCarousel_Visibility" Default="Collapsed">
                <local:MappingConverterEntry Key="{x:Static local:PropHudState.BrowsingPropItems}" Value="{x:Static Visibility.Visible}" />
                <local:MappingConverterEntry Key="{x:Static local:PropHudState.BrowsingColorVariants}" Value="{x:Static Visibility.Visible}" />
                <local:MappingConverterEntry Key="{x:Static local:PropHudState.BrowsingChildProps}" Value="{x:Static Visibility.Visible}" />
            </local:MappingConverter>
            <local:MappingConverter x:Key="A_MappingConverter_BrowsingProps_Visibility" Default="Collapsed">
                <local:MappingConverterEntry Key="{x:Static local:PropHudState.BrowsingPropItems}" Value="{x:Static Visibility.Visible}" />
                <local:MappingConverterEntry Key="{x:Static local:PropHudState.BrowsingColorVariants}" Value="{x:Static Visibility.Hidden}" />
                <local:MappingConverterEntry Key="{x:Static local:PropHudState.BrowsingChildProps}" Value="{x:Static Visibility.Hidden}" />
            </local:MappingConverter>
            <local:MappingConverter x:Key="A_MappingConverter_AnnaHUD_Visibility" Default="Visible">
                <local:MappingConverterEntry Key="{x:Static local:PropHudState.BrowsingPropItems}" Value="{x:Static Visibility.Hidden}" />
                <local:MappingConverterEntry Key="{x:Static local:PropHudState.BrowsingColorVariants}" Value="{x:Static Visibility.Hidden}" />
                <local:MappingConverterEntry Key="{x:Static local:PropHudState.BrowsingChildProps}" Value="{x:Static Visibility.Hidden}" />
            </local:MappingConverter>

            <local:MappingConverter x:Key="A_MappingConverter_IsWorldBuilderMode" Default="False">
                <local:MappingConverterEntry Key="{x:Static local:PropHudState.SelectingProp}" Value="True" />
                <local:MappingConverterEntry Key="{x:Static local:PropHudState.SelectionMode}" Value="True" />
            </local:MappingConverter>

            <local:MappingConverter x:Key="A_MappingConverter_IsSelectionMode" Default="False">
                <local:MappingConverterEntry Key="{x:Static local:PropHudState.SelectionMode}" Value="True" />
            </local:MappingConverter>

            <local:MappingConverter x:Key="A_MappingConverter_Reticule_Image_NormalMode" Default="/ForzaUI;component/Textures/Data_Bound/PropPlacement/HUD_Reticle.png">
                <local:MappingConverterEntry Key="{x:Static local:HUDReticuleState.Idle}" Value="/ForzaUI;component/Textures/Data_Bound/PropPlacement/HUD_Reticle.png"/>
                <local:MappingConverterEntry Key="{x:Static local:HUDReticuleState.CantPlace}" Value="/ForzaUI;component/Textures/Data_Bound/PropPlacement/HUD_Cross.png"/>
                <local:MappingConverterEntry Key="{x:Static local:HUDReticuleState.Highlighting}" Value="/ForzaUI;component/Textures/Data_Bound/PropPlacement/HUD_Hand.png"/>
                <local:MappingConverterEntry Key="{x:Static local:HUDReticuleState.Waiting}" Value="/ForzaUI;component/Textures/Data_Bound/PropPlacement/HUD_Cross.png"/>
                <local:MappingConverterEntry Key="{x:Static local:HUDReticuleState.Grabbing}" Value="/ForzaUI;component/Textures/Data_Bound/PropPlacement/HUD_Grab.png"/>
            </local:MappingConverter>

            <local:MappingConverter x:Key="A_MappingConverter_Reticule_Image_SelectionMode" Default="/ForzaUI;component/Textures/Data_Bound/PropPlacement/HUD_Reticle_Selection.png">
                <local:MappingConverterEntry Key="{x:Static local:HUDReticuleState.Idle}" Value="/ForzaUI;component/Textures/Data_Bound/PropPlacement/HUD_Reticle_Selection.png"/>
                <local:MappingConverterEntry Key="{x:Static local:HUDReticuleState.CantPlace}" Value="/ForzaUI;component/Textures/Data_Bound/PropPlacement/HUD_Selection_Cross.png"/>
                <local:MappingConverterEntry Key="{x:Static local:HUDReticuleState.Waiting}" Value="/ForzaUI;component/Textures/Data_Bound/PropPlacement/HUD_Selection_Cross.png"/>
                <local:MappingConverterEntry Key="{x:Static local:HUDReticuleState.Adding}" Value="/ForzaUI;component/Textures/Data_Bound/PropPlacement/HUD_Selection_Add.png"/>
                <local:MappingConverterEntry Key="{x:Static local:HUDReticuleState.Removing}" Value="/ForzaUI;component/Textures/Data_Bound/PropPlacement/HUD_Selection_Remove.png"/>
            </local:MappingConverter>

            <local:MappingConverter x:Key="H_Map_IsPrecisionToVisibility" Default="Visible">
                <local:MappingConverterEntry Key="{StaticResource A_Boolean_False}" Value="{x:Static Visibility.Hidden}"/>
            </local:MappingConverter>
            <local:MappingConverter x:Key="H_Map_IsPrecisionToAlignment" Default="Right">
                <local:MappingConverterEntry Key="{StaticResource A_Boolean_False}" Value="Left"/>
            </local:MappingConverter>

            <Style x:Key="A_Style_ControllerButtonControl_CollapsedDescription"
                   TargetType="{x:Type local:ControllerButtonControl}"
                   BasedOn="{StaticResource A_Style_ControllerButtonControl_Default}">
                <Setter Property="Visibility" Value="Visible" />
                <Setter Property="Margin" Value="0,0,5,0" />
            </Style>
            
            <Style x:Key="A_Style_ControllerButtonControl_PlaceProp"
                   TargetType="{x:Type local:ControllerButtonControl}"
                   BasedOn="{StaticResource A_Style_ControllerButtonControl_Default}">
                <Setter Property="Command" Value="{Binding OnPropSelectedFromClipboardCommand, RelativeSource={RelativeSource AncestorType=Page}}" />
                <Style.Triggers>
                    <DataTrigger Binding="{Binding HudState}" Value="{x:Static local:PropHudState.BrowsingColorVariants}">
                        <Setter Property="Command" Value="{Binding OnPropVariationSelectedCommand, RelativeSource={RelativeSource AncestorType=Page}}" />
                    </DataTrigger>
                    <DataTrigger Binding="{Binding HudState}" Value="{x:Static local:PropHudState.BrowsingChildProps}">
                        <Setter Property="Command" Value="{Binding OnChildPropSelectedFromClipboardCommand, RelativeSource={RelativeSource AncestorType=Page}}" />
                    </DataTrigger>
                </Style.Triggers>
            </Style>

            <Style x:Key="A_Style_ControllerButtonControl_PrevOnClipboard"
                   TargetType="{x:Type local:ControllerButtonControl}"
                   BasedOn="{StaticResource A_Style_ControllerButtonControl_Default}">
                <Setter Property="Command" Value="{Binding PrevOnClipboardCommand, RelativeSource={RelativeSource AncestorType=Page}}" />
                <Style.Triggers>
                    <DataTrigger Binding="{Binding HudState}" Value="{x:Static local:PropHudState.BrowsingColorVariants}">
                        <Setter Property="Command" Value="{Binding VariationPrevOnClipboardCommand, RelativeSource={RelativeSource AncestorType=Page}}" />
                    </DataTrigger>
                    <DataTrigger Binding="{Binding HudState}" Value="{x:Static local:PropHudState.BrowsingChildProps}">
                        <Setter Property="Command" Value="{Binding ChildPrevOnClipboardCommand, RelativeSource={RelativeSource AncestorType=Page}}" />
                    </DataTrigger>
                </Style.Triggers>
            </Style>

            <Style x:Key="A_Style_Carousel_PropItems" TargetType="{x:Type WrapListBox}" BasedOn="{StaticResource H_Style_Carousel_Square_10Items}">
                <Setter Property="SelectedItem" Value="{Binding SelectedItem.SelectedItem, ElementName=PART_PropCatList, Mode=TwoWay}"/>
                <Setter Property="ItemsSource" Value="{Binding SelectedItem.Items, ElementName=PART_PropCatList}" />
                <Setter Property="ItemTemplate" Value="{StaticResource A_DataTemplate_Prop}"/>
            </Style>
            <Style x:Key="A_Style_Carousel_PropVariationItems" TargetType="{x:Type WrapListBox}" BasedOn="{StaticResource H_Style_Carousel_Square_10Items}">
                <Setter Property="SelectedItem" Value="{Binding SelectedItem.SelectedItem.SelectedChildProp.SelectedPropVariation, ElementName=PART_PropCatList, Mode=TwoWay}"/>
                <Setter Property="ItemsSource" Value="{Binding SelectedItem.SelectedItem.SelectedChildProp.PropVariations, ElementName=PART_PropCatList}" />
                <Setter Property="ItemTemplate" Value="{StaticResource A_DataTemplate_PropVariantLayer}"/>
            </Style>
            <Style x:Key="A_Style_Carousel_ChildPropItems" TargetType="{x:Type WrapListBox}" BasedOn="{StaticResource H_Style_Carousel_Square_10Items}">
                <Setter Property="SelectedItem" Value="{Binding SelectedItem.SelectedItem.SelectedChildProp, ElementName=PART_PropCatList, Mode=TwoWay}"/>
                <Setter Property="ItemsSource" Value="{Binding SelectedItem.SelectedItem.ChildProps, ElementName=PART_PropCatList}" />
                <Setter Property="ItemTemplate" Value="{StaticResource A_DataTemplate_Prop}"/>
            </Style>
            <local:MappingConverter x:Key="A_MappingConverter_BrowsingPropCarousel_Style" Default="{StaticResource A_Style_Carousel_PropItems}">
                <local:MappingConverterEntry Key="{x:Static local:PropHudState.BrowsingColorVariants}" Value="{StaticResource A_Style_Carousel_PropVariationItems}" />
                <local:MappingConverterEntry Key="{x:Static local:PropHudState.BrowsingChildProps}" Value="{StaticResource A_Style_Carousel_ChildPropItems}" />
            </local:MappingConverter>

            <System:Double x:Key="H_Double_Carousel_Square_Tile_Space">176</System:Double>
            <System:Double x:Key="H_Double_Carousel_Square_Total_Width">1752</System:Double>
            <System:Double x:Key="H_Double_Carousel_Square_FixedOffset">352</System:Double>

            <Style x:Key="A_Style_Material_CameraType_Background"
                   TargetType="{Type local:FZMaterial}"
                   BasedOn="{StaticResource A_Style_FZMaterial_GlassHudItem}">
                <Style.Triggers>
                    <DataTrigger Binding="{Binding IsOrbitCam}" Value="True">
                        <Setter Property="Color" Value="{StaticResource H_Color_Primary_Pink}" />
                    </DataTrigger>
                </Style.Triggers>
            </Style>

            <Style x:Key="A_Style_Material_Mode_Background"
                   TargetType="{Type local:FZMaterial}"
                   BasedOn="{StaticResource A_Style_Material_Creation_MajorPill_TopBackground}">
                <Setter Property="Color" Value="{StaticResource H_Color_Primary_Pink}" />
                <Style.Triggers>
                    <DataTrigger Binding="{Binding HudState, Converter={StaticResource A_MappingConverter_IsWorldBuilderMode}}" Value="True">
                        <Setter Property="Color" Value="{StaticResource A_Color_EventLab}" />
                    </DataTrigger>
                </Style.Triggers>
            </Style>

            <Style x:Key="A_Style_FZTextBlock_Mode"
                   TargetType="{x:Type local:FZTextBlock}">
                <Setter Property="Text" Value="{local:Loc EventBlueprint.IDS_PropPlacementHUD_Label_PropPlacement}" />
                <Setter Property="CapHeight" Value="15" />
                <Setter Property="FontFamily" Value="Horizon_C" />
                <Setter Property="Color" Value="{StaticResource H_Color_Primary_White}" />
                <Style.Triggers>
                    <DataTrigger Binding="{Binding HudState, Converter={StaticResource A_MappingConverter_IsWorldBuilderMode}}" Value="True">
                        <Setter Property="Text" Value="{Binding PropPlacementSceneType, RelativeSource={RelativeSource AncestorType=Page}, Converter={StaticResource A_MappingConverter_PropPlacementSceneType_To_WorldBuilderLabel}}" />
                        <Setter Property="Color" Value="{StaticResource H_Color_Primary_Black}" />
                    </DataTrigger>
                </Style.Triggers>
            </Style>

            <Style x:Key="H_Style_Text_ModeSubtile_Title"
                   TargetType="FZTextBlock">
                <Setter Property="CapHeight" Value="15" />
                <Setter Property="FontFamily" Value="Horizon_B" />
                <Setter Property="Color" Value="{StaticResource H_Color_Primary_White}" />
                <Setter Property="Text" Value="{local:Loc EventBlueprint.IDS_PropPlacementHUD_PrecisionCamera}" />
                <Style.Triggers>
                    <DataTrigger Binding="{Binding HudState, Converter={StaticResource A_MappingConverter_IsWorldBuilderMode}}" Value="True">
                        <Setter Property="Text" Value="{local:Loc HelpButtons.IDS_PropPlacement_Open_SelectionMode}" />
                    </DataTrigger>
                </Style.Triggers>
            </Style>

            <Style x:Key="A_Style_FZTextBlock_CameraType"
                   TargetType="{x:Type local:FZTextBlock}"
                   BasedOn="{StaticResource A_Style_FZTextBlock_HUDBase}">
                <Setter Property="Text" Value="{local:Loc HelpButtons.IDS_PropPlacement_CameraMode_FreeCam}" />
                <Style.Triggers>
                    <DataTrigger Binding="{Binding IsOrbitCam}" Value="True">
                        <Setter Property="Text" Value="{local:Loc HelpButtons.IDS_PropPlacement_CameraMode_OrbitCam}" />
                    </DataTrigger>
                </Style.Triggers>
            </Style>

            <Style x:Key="A_Style_Material_Reticule"
                   TargetType="{Type local:FZMaterial}">
                <Setter Property="ImageSource" Value="{Binding ReticuleState, Converter={StaticResource A_MappingConverter_Reticule_Image_NormalMode}}" />
                <Style.Triggers>
                    <DataTrigger Binding="{Binding HudState}" Value="{x:Static local:PropHudState.SelectionMode}">
                        <Setter Property="ImageSource" Value="{Binding ReticuleState, Converter={StaticResource A_MappingConverter_Reticule_Image_SelectionMode}}" />
                    </DataTrigger>
                </Style.Triggers>
            </Style>

            <local:MappingConverter x:Key="A_MappingConverter_HUDState_To_IsChildOrVariant" Default="False">
                <local:MappingConverterEntry Key="{x:Static local:PropHudState.BrowsingChildProps}" Value="True"/>
                <local:MappingConverterEntry Key="{x:Static local:PropHudState.BrowsingColorVariants}" Value="True"/>
            </local:MappingConverter>

            <Style x:Key="H_Style_TemplatedWrapper_ScreenTitleWithAutoScroll_Props"
                   TargetType="ContentControl"
                   BasedOn="{StaticResource H_Style_TemplatedWrapper_ScreenTitleWithAutoScroll}">
                <Setter Property="Content" Value="{Binding SelectedItem.SelectedItem.Name, ElementName=PART_PropCatList, Mode=OneWay}" />
                <Style.Triggers>
                    <DataTrigger Binding="{Binding HudState, Converter={StaticResource A_MappingConverter_HUDState_To_IsChildOrVariant}}" Value="True">
                        <Setter Property="Content" Value="{Binding SelectedItem.SelectedItem.SelectedChildProp.Name, ElementName=PART_PropCatList, Mode=OneWay}" />
                    </DataTrigger>
                </Style.Triggers>
            </Style>

            <Style x:Key="A_Style_FavouriteProp_Button"
                   TargetType="{x:Type local:ControllerButtonControl}"
                   BasedOn="{StaticResource {x:Type local:ControllerButtonControl}}">
                <Setter Property="Visibility" Value="Collapsed" />
                <Setter Property="Command" Value="{Binding ToggleFavoritePropCommand, RelativeSource={RelativeSource AncestorType=Page}}" />
                <Style.Triggers>
                    <MultiDataTrigger>
                        <MultiDataTrigger.Conditions>
                            <Condition Binding="{Binding HudState}" Value="{x:Static local:PropHudState.BrowsingPropItems}" />
                            <Condition Binding="{Binding SelectedCategory.SelectedItem.IsFavoritable}" Value="True" />
                        </MultiDataTrigger.Conditions>
                        <Setter Property="Visibility" Value="Visible" />
                        <Setter Property="Description" Value="{Binding SelectedCategory.SelectedItem.IsFavorited, Converter={StaticResource A_MappingConverter_CommunityProps_Favorite_Text}}" />
                    </MultiDataTrigger>
                    <MultiDataTrigger>
                        <MultiDataTrigger.Conditions>
                            <Condition Binding="{Binding HudState}" Value="{x:Static local:PropHudState.BrowsingChildProps}" />
                            <Condition Binding="{Binding SelectedCategory.SelectedItem.SelectedChildProp.IsFavoritable}" Value="True" />
                        </MultiDataTrigger.Conditions>
                        <Setter Property="Visibility" Value="Visible" />
                        <Setter Property="Description" Value="{Binding SelectedCategory.SelectedItem.SelectedChildProp.IsFavorited, Converter={StaticResource A_MappingConverter_CommunityProps_Favorite_Text}}" />
                    </MultiDataTrigger>
                    <DataTrigger Binding="{Binding HudState}" Value="{x:Static local:PropHudState.BrowsingChildProps}">
                        <Setter Property="Command" Value="{Binding ToggleFavoriteChildPropCommand, RelativeSource={RelativeSource AncestorType=Page}}" />
                    </DataTrigger>
                </Style.Triggers>
            </Style>

            <Style x:Key="A_Style_DeleteUGCProps_Button" 
                   TargetType="{x:Type local:ControllerButtonControl}"
                   BasedOn="{StaticResource {x:Type local:ControllerButtonControl}}">
                <Setter Property="Visibility" Value="Collapsed" />
                <Style.Triggers>
                    <MultiDataTrigger>
                        <MultiDataTrigger.Conditions>
                            <Condition Binding="{Binding IsDeletePropButtonEnabled}" Value="True" />
                            <Condition Binding="{Binding SelectedCategory.Items.Count, Converter={StaticResource A_CompareConverter}, ConverterParameter=0}" Value="{x:Static local:CompareResult.GreaterThan}" />
                        </MultiDataTrigger.Conditions>
                        <Setter Property="Visibility" Value="Visible" />
                    </MultiDataTrigger>
                </Style.Triggers>
            </Style>

            <Style x:Key="A_Style_ControllerButtonControl_ModeAction"
                   TargetType="{x:Type local:ControllerButtonControl}"
                   BasedOn="{StaticResource A_Style_ControllerButtonControl_Default}">
                <Setter Property="HideBackground" Value="True" />
                <Setter Property="Visibility" Value="Visible" />
                <Setter Property="AllowMouseClick" Value="False" />
                <Setter Property="HideShadow" Value="True" />
                <Setter Property="InputOverride" Value="{local:Input Command=INPUTCMD_PP_PRECISION_MODE, Context=INPUTCONTEXT_PROP_PLACEMENT_UI}" />
                <Setter Property="Command" Value="{Binding TogglePrecisionModeCommand, RelativeSource={RelativeSource AncestorType=Page}}" />
                <Style.Triggers>
                    <DataTrigger Binding="{Binding HudState, Converter={StaticResource A_MappingConverter_IsWorldBuilderMode}}" Value="True">
                        <Setter Property="InputOverride" Value="{local:Input Command=INPUTCMD_PP_OPEN_SELECTIONMODE, Context=INPUTCONTEXT_PROP_PLACEMENT_UI}" />
                        <Setter Property="Command" Value="{Binding SelectionModeCommand, RelativeSource={RelativeSource AncestorType=Page}}" />
                    </DataTrigger>
                </Style.Triggers>
            </Style>

            <Style x:Key="A_Style_FZMaterial_Toggle_Background" TargetType="FZMaterial">
                <Setter Property="Visibility" Value="Hidden" />
                <Style.Triggers>
                    <MultiDataTrigger>
                        <MultiDataTrigger.Conditions>
                            <Condition Binding="{Binding HudState, Converter={StaticResource A_MappingConverter_IsWorldBuilderMode}}" Value="True" />
                            <Condition Binding="{Binding HudState, Converter={StaticResource A_MappingConverter_IsSelectionMode}}" Value="True" />
                        </MultiDataTrigger.Conditions>
                        <Setter Property="Visibility" Value="Visible" />
                    </MultiDataTrigger>
                    <MultiDataTrigger>
                        <MultiDataTrigger.Conditions>
                            <Condition Binding="{Binding HudState, Converter={StaticResource A_MappingConverter_IsWorldBuilderMode}}" Value="False" />
                            <Condition Binding="{Binding IsPrecisionMode}" Value="True" />
                        </MultiDataTrigger.Conditions>
                        <Setter Property="Visibility" Value="Visible" />
                    </MultiDataTrigger>
                </Style.Triggers>
            </Style>

            <Style x:Key="A_Style_FZMaterial_Toggle_Dot" TargetType="FZMaterial">
                <Setter Property="HorizontalAlignment" Value="Left" />
                <Style.Triggers>
                    <MultiDataTrigger>
                        <MultiDataTrigger.Conditions>
                            <Condition Binding="{Binding HudState, Converter={StaticResource A_MappingConverter_IsWorldBuilderMode}}" Value="True" />
                            <Condition Binding="{Binding HudState, Converter={StaticResource A_MappingConverter_IsSelectionMode}}" Value="True" />
                        </MultiDataTrigger.Conditions>
                        <Setter Property="HorizontalAlignment" Value="Right" />
                    </MultiDataTrigger>
                    <MultiDataTrigger>
                        <MultiDataTrigger.Conditions>
                            <Condition Binding="{Binding HudState, Converter={StaticResource A_MappingConverter_IsWorldBuilderMode}}" Value="False" />
                            <Condition Binding="{Binding IsPrecisionMode}" Value="True" />
                        </MultiDataTrigger.Conditions>
                        <Setter Property="HorizontalAlignment" Value="Right" />
                    </MultiDataTrigger>
                </Style.Triggers>
            </Style>

            <Style x:Key="A_Style_FZTextBlock_CreditsDelta" TargetType="FZTextBlock">
                <Setter Property="Color" Value="{StaticResource H_Color_Primary_Yellow}" />
                <Style.Triggers>
                    <DataTrigger Binding="{Binding IsRefund}" Value="True">
                        <Setter Property="Color" Value="{StaticResource H_Color_Primary_Green}" />
                    </DataTrigger>
                </Style.Triggers>
            </Style>

            <Style x:Key="A_Style_FZTextBlock_CreditsDelta_Label" TargetType="FZTextBlock">
                <Setter Property="Text" Value="{local:Loc EventBlueprint.IDS_PropPlacementHUD_BudgetPanel_Spent}" />
                <Style.Triggers>
                    <DataTrigger Binding="{Binding IsRefund}" Value="True">
                        <Setter Property="Text" Value="{local:Loc EventBlueprint.IDS_PropPlacementHUD_BudgetPanel_Refund}" />
                    </DataTrigger>
                </Style.Triggers>
            </Style>

            <Style x:Key="A_Style_FZRun_BudgetElement_CREDIT_ICON"
                   TargetType="Control">
                <Setter
                    Property="Template">
                    <Setter.Value>
                        <ControlTemplate>
                            <Control Style="{StaticResource H_Style_Control_CreditsIcon}"
                                              Height="20" MinWidth="20"
                                              Margin="5,-2,5,0" />
                        </ControlTemplate>
                    </Setter.Value>
                </Setter>
            </Style>

            <MappingConverter x:Key="A_MappingConverter_BudgetElement_Markup">
                <MappingConverterEntry Key="{NoCase CREDIT_ICON}" Value="{StaticResource A_Style_FZRun_BudgetElement_CREDIT_ICON}" />
            </MappingConverter>

            <ControlTemplate TargetType="{x:Type Control}"
                             x:Key="A_Template_BudgetInfo_Control">
                <StackPanel Orientation="Horizontal">
                    <local:FZMaterial Color="{StaticResource H_Color_Primary_Black}"
                                      Preset="{StaticResource A_FZMaterialPresetGlassRoundtangle_GlassPanel_Base}" 
                                      Height="37"
                                      MinWidth="270">
                        <DockPanel Margin="12,0" VerticalAlignment="Center">
                            <local:FZTextBlock Margin="0,0,5,0"
                                               Color="{StaticResource H_Color_Primary_White}"
                                               Text="{local:Loc EventBlueprint.IDS_PropPlacementHUD_BudgetPanel_Credits}"
                                               DockPanel.Dock="Left"
                                               CapHeight="15" />
                            <local:FZTextBlock Margin="5,0,0,0"
                                               CapHeight="15"
                                               Color="{StaticResource H_Color_Primary_Yellow}"
                                               Text="{Binding TotalCredits}"
                                               DockPanel.Dock="Right"
                                               HorizontalAlignment="Right"
                                               MarkupConverter="{StaticResource A_MappingConverter_BudgetElement_Markup}"/>
                        </DockPanel>
                    </local:FZMaterial>
                    <Decorator Width="8" />
                    <local:FZMaterial Color="{StaticResource H_Color_Glass_Purple_20pc}"
                                      Preset="{StaticResource A_FZMaterialPresetGlassRoundtangle_GlassPanel_Base}" 
                                      Height="37">
                        <DockPanel Margin="12,0" VerticalAlignment="Center" MinWidth="270" >
                            <local:FZTextBlock Style="{StaticResource A_Style_FZTextBlock_CreditsDelta_Label}"  
                                               Margin="0,0,5,0"
                                               Color="{StaticResource H_Color_Primary_White}"
                                               DockPanel.Dock="Left"
                                               CapHeight="15" />
                            <local:FZTextBlock Style="{StaticResource A_Style_FZTextBlock_CreditsDelta}"
                                               Margin="5,0,0,0"
                                               CapHeight="15"
                                               Text="{Binding CreditsDelta}"
                                               DockPanel.Dock="Right"
                                               HorizontalAlignment="Right"
                                               MarkupConverter="{StaticResource A_MappingConverter_BudgetElement_Markup}" />
                        </DockPanel>
                    </local:FZMaterial>
                </StackPanel>
            </ControlTemplate>

            <Style x:Key="A_Style_Grid_TooltipContainer"
                   TargetType="Grid">
                <Setter Property="Visibility" Value="Hidden" />
                <Style.Triggers>
                    <DataTrigger Binding="{Binding ActualHeight, RelativeSource={RelativeSource Self}, Converter={StaticResource A_CompareConverter}, ConverterParameter=50}" Value="{Static CompareResult.GreaterThan}">
                        <Setter Property="Visibility" Value="Visible" />
                    </DataTrigger>
                    <DataTrigger Binding="{Binding IsShowingControls}" Value="False">
                        <Setter Property="Visibility" Value="Hidden" />
                    </DataTrigger>
                </Style.Triggers>
            </Style>
        </ResourceDictionary>
    </Page.Resources>

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

    <Grid x:Name="PART_LayoutRoot">

        <MappingConverterResourcePreloader Converter="{StaticResource A_MappingConverter_Reticule_Image_NormalMode}"
                                           ValueType="BitmapImage"/>
        <MappingConverterResourcePreloader Converter="{StaticResource A_MappingConverter_Reticule_Image_SelectionMode}"
                                           ValueType="BitmapImage"/>

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

            <Grid Style="{StaticResource A_Style_FrameworkElement_LayoutRoot}"
                HorizontalAlignment="Stretch"
                VerticalAlignment="Stretch"
                Height="Auto"
                Width="Auto">
                <Grid x:Name="AdjustableSafeFrame"
                      Margin="{Binding SafeFrameMargin}">
                    <local:HUDMajorNotificationControl HUDData.Type="HUDStatusMajorNotification" />
                    <StackPanel>
                        <Decorator Style="{StaticResource A_Style_FrameworkElement_NotificationPopupSpaceMaker}" />
                        <local:HUDWarningToastControl HUDData.Type="HUDStatusWarningToast" />
                    </StackPanel>
                    <Decorator HorizontalAlignment="Right"
                               VerticalAlignment="Top">
                        <local:HUDMiniLeaderboardControl HUDData.Type="HUDStatusMiniLeaderboard" />
                    </Decorator>

                    <StackPanel VerticalAlignment="Top">
                        <HUDCreationInfoControl HUDData.Type="HUDStatusCreationInfo" />
                        <StackPanel HorizontalAlignment="Left"
                                    MinWidth="300"
                                    Margin="0,-6,0,0">
                            <local:FZMaterial Style="{StaticResource A_Style_Material_Mode_Background}" >
                                <local:FZTextBlock Style="{StaticResource A_Style_FZTextBlock_Mode}"
                                                   VerticalAlignment="Center"
                                                   Margin="8,0"/>
                            </local:FZMaterial>
                            <local:FZMaterial Style="{StaticResource A_Style_Material_Creation_MajorPill_BottomBackground}">
                                <DockPanel Margin="8,0">
                                    <local:FZTextBlock Style="{StaticResource H_Style_Text_ModeSubtile_Title}"
                                                       VerticalAlignment="Center"
                                                       DockPanel.Dock="Left"/>
                                    <Grid Margin="14,0,0,0" DockPanel.Dock="Left">
                                        <FZMaterial Height="18"
                                                    Width="27"
                                                    Color="{StaticResource H_Color_Primary_White}">
                                            <FZMaterial.Preset>
                                                <FZMaterialPresetRoundtangleStroke CornerRadius="9" Thickness="2" />
                                            </FZMaterial.Preset>
                                        </FZMaterial>
                                        <Grid HorizontalAlignment="Center" VerticalAlignment="Center">
                                            <FZMaterial Height="11"
                                                        Width="20"
                                                        Style="{StaticResource A_Style_FZMaterial_Toggle_Background}"
                                                        Color="{StaticResource H_Color_Primary_Pink}">
                                                <FZMaterial.Preset>
                                                    <FZMaterialPresetRoundtangle CornerRadius="5" />
                                                </FZMaterial.Preset>
                                            </FZMaterial>
                                            <FZMaterial Height="11"
                                                        Width="11"
                                                        Color="{StaticResource H_Color_Primary_White}"
                                                        Style="{StaticResource A_Style_FZMaterial_Toggle_Dot}">
                                                <FZMaterial.Preset>
                                                    <FZMaterialPresetRoundtangle CornerRadius="5" />
                                                </FZMaterial.Preset>
                                            </FZMaterial>
                                        </Grid>
                                    </Grid>
                                    <ControllerButtonControl Style="{StaticResource A_Style_ControllerButtonControl_ModeAction}"
                                                             DockPanel.Dock="Right"
                                                             HorizontalAlignment="Right" />
                                </DockPanel>
                            </local:FZMaterial>

                            <Decorator Height="4"/>

                            <Grid>
                                <local:FZMaterial Style="{StaticResource A_Style_Material_Creation_Pill_Background_4px}" />
                                <DockPanel >
                                    <!-- percentage text -->
                                    <local:FZTextBlock Text="{Binding PropsPlacedPercentage, ConverterParameter=percentage, Converter={StaticResource A_NumUnitConverter_ShowUnit_0dp}}" 
                                                       Color="{StaticResource H_Color_Primary_Yellow}"
                                                       Style="{StaticResource H_Style_Text_Creation_PillContent}"
                                                       DockPanel.Dock="Right" />
                                    <!-- Selected Props Limit Text -->
                                    <local:FZTextBlock Text="{local:Loc EventBlueprint.IDS_Blueprint_PropPlacementHUD_PropLimit}"
                                                       Style="{StaticResource H_Style_Text_Creation_PillHeader}" />
                                </DockPanel>
                            </Grid>

                            <Decorator Height="2"/>

                            <!-- Selected Props Count -->
                            <Grid>
                                <local:FZMaterial Style="{StaticResource A_Style_Material_Creation_Pill_Background_4px}" />
                                <DockPanel>
                                    <!-- Selected Props Text -->
                                    <local:FZTextBlock Text="{Binding SelectedPropsText}"
                                                       Style="{StaticResource H_Style_Text_Creation_PillContent}"
                                                       DockPanel.Dock="Right"/>
                                    <!-- Selected Props Limit Text -->
                                    <local:FZTextBlock Text="{local:Loc EventBlueprint.IDS_Blueprint_PropsSelected}"
                                                       Style="{StaticResource H_Style_Text_Creation_PillHeader}" />
                                </DockPanel>
                            </Grid>


                            <StackPanel Visibility="{Binding IsMultiPlayerBuilding, Converter={StaticResource A_FZBooleanToVisibilityConverter}, FallbackValue=Collapsed}">
                                <Decorator Height="2"/>

                                <!-- Convoy Selected Props Count -->
                                <Grid>
                                    <local:FZMaterial Style="{StaticResource A_Style_Material_Creation_Pill_Background_4px}" />
                                    <DockPanel>
                                        <!-- Selected Props Text -->
                                        <local:FZTextBlock Text="{Binding ConvoySelectedPropsText}"
                                                           Style="{StaticResource H_Style_Text_Creation_PillContent}"
                                                           DockPanel.Dock="Right"/>
                                        <!-- Selected Props Limit Text -->
                                        <local:FZTextBlock Text="{local:Loc EventBlueprint.IDS_Blueprint_ConvoyPropsSelected}"
                                                           Style="{StaticResource H_Style_Text_Creation_PillHeader}" />
                                    </DockPanel>
                                </Grid>
                            </StackPanel>

                            <Decorator Height="8"/>

                            <Grid x:Name="Tooltip"
                                  Style="{StaticResource A_Style_Grid_TooltipContainer}">
                                <ContentControl Template="{StaticResource A_ControlTemplate_Tooltip}"
                                                x:Name="Tooltip_SelectionControls"
                                                Visibility="{Binding HudState, Converter={StaticResource A_MappingConverter_SelectionControls_Visibility}}">
                                    <StackPanel>
                                        <local:ControllerButtonControl x:Name="PlaceEditButton" InputOverride="{local:Input Command=INPUTCMD_PP_PLACE_EDIT_PROP, Context=INPUTCONTEXT_PROP_PLACEMENT_UI}"
                                                                       Visibility="{Binding IsPropHighlighted, Converter={StaticResource A_FZBooleanToVisibilityConverter}}"
                                                                       Description="{local:Loc HelpButtons.IDS_PropPlacement_Edit}"
                                                                       Command="{Binding EditPropSelectionCommand, RelativeSource={RelativeSource AncestorType=Page}}"
                                                                       Style="{StaticResource A_Style_ControllerButtonControl_Tooltip}"/>
                                        <local:ControllerButtonControl x:Name="DeleteButton" InputOverride="{local:Input Command=INPUTCMD_PP_DELETE_PROP, Context=INPUTCONTEXT_PROP_PLACEMENT_UI}"
                                                                       Visibility="{Binding IsPropHighlighted, Converter={StaticResource A_FZBooleanToVisibilityConverter}}"
                                                                       Description="{local:Loc HelpButtons.IDS_PropPlacement_Delete_Prop}"
                                                                       Command="{Binding DeletePropFromSelectionCommand, RelativeSource={RelativeSource AncestorType=Page}}"
                                                                       Style="{StaticResource A_Style_ControllerButtonControl_Tooltip}"/>
                                        <local:ControllerButtonControl x:Name="CloneButton" InputOverride="{local:Input Command=INPUTCMD_PP_CLONE_PROP, Context=INPUTCONTEXT_PROP_PLACEMENT_UI}"
                                                                       Visibility="{Binding CanCloneHighlightedProp, Converter={StaticResource A_FZBooleanToVisibilityConverter}}"
                                                                       Description="{local:Loc HelpButtons.IDS_PropPlacement_Clone_Prop}"
                                                                       Command="{Binding ClonePropSelectionCommand, RelativeSource={RelativeSource AncestorType=Page}}" 
                                                                       Style="{StaticResource A_Style_ControllerButtonControl_Tooltip}"/>
                                        <local:ControllerButtonControl  x:Name="UndoButton" InputOverride="{local:Input Command=INPUTCMD_PP_UNDO, Context=INPUTCONTEXT_PROP_PLACEMENT_UI}"
                                                                        Visibility="{Binding HasActionsToUndo, Converter={StaticResource A_FZBooleanToVisibilityConverter}}"
                                                                        Description="{Binding UndoActionDescription}"
                                                                        Command="{Binding UndoActionCommand, RelativeSource={RelativeSource AncestorType=Page}}" 
                                                                        Style="{StaticResource A_Style_ControllerButtonControl_Tooltip}"/>
                                        <local:ControllerButtonControl  x:Name="RedoButton" InputOverride="{local:Input Command=INPUTCMD_PP_REDO, Context=INPUTCONTEXT_PROP_PLACEMENT_UI}"
                                                                        Visibility="{Binding HasActionsToRedo, Converter={StaticResource A_FZBooleanToVisibilityConverter}}"
                                                                        Description="{Binding RedoActionDescription}"
                                                                        Command="{Binding RedoActionCommand, RelativeSource={RelativeSource AncestorType=Page}}" 
                                                                        Style="{StaticResource A_Style_ControllerButtonControl_Tooltip}"/>
                                    </StackPanel>
                                </ContentControl>

                                <ContentControl Template="{StaticResource A_ControlTemplate_Tooltip}"
                                                x:Name="Tooltip_SelectionMode"
                                                Visibility="{Binding HudState, Converter={StaticResource A_MappingConverter_SelectionMode_Visibility}}">
                                    <StackPanel>
                                        <local:ControllerButtonControl x:Name="AddToSelection" InputOverride="{local:Input Command=INPUTCMD_PP_ADD_TO_SELECTION, Context=INPUTCONTEXT_PROP_PLACEMENT_UI}"
                                                                       Visibility="{Binding IsPropHighlighted, Converter={StaticResource A_FZBooleanToVisibilityConverter}}"
                                                                       Description="{local:Loc HelpButtons.IDS_PropPlacement_SelectionMode_AddToSelection}"
                                                                       Command="{Binding AddToSelectionCommand, RelativeSource={RelativeSource AncestorType=Page}}"
                                                                       Style="{StaticResource A_Style_ControllerButtonControl_Tooltip}"/>
                                        <local:ControllerButtonControl x:Name="SphereSelection" InputOverride="{local:Input Command=INPUTCMD_PP_SPHERE_SELECTION, Context=INPUTCONTEXT_PROP_PLACEMENT_UI}"
                                                                       Description="{local:Loc HelpButtons.IDS_PropPlacement_SelectionMode_SelectionSphere}"
                                                                       Command="{Binding SphereSelectionCommand, RelativeSource={RelativeSource AncestorType=Page}}"
                                                                       Style="{StaticResource A_Style_ControllerButtonControl_Tooltip}"/>
                                        <local:ControllerButtonControl x:Name="RemoveFromSelection" InputOverride="{local:Input Command=INPUTCMD_PP_REMOVE_FROM_SELECTION, Context=INPUTCONTEXT_PROP_PLACEMENT_UI}"
                                                                       Visibility="{Binding IsPropHighlighted, Converter={StaticResource A_FZBooleanToVisibilityConverter}}"
                                                                       Description="{local:Loc HelpButtons.IDS_PropPlacement_SelectionMode_RemoveFromSelection}"
                                                                       Command="{Binding RemoveFromSelectionCommand, RelativeSource={RelativeSource AncestorType=Page}}"
                                                                       Style="{StaticResource A_Style_ControllerButtonControl_Tooltip}"/>
                                        <local:ControllerButtonControl x:Name="RemoveAllFromSelection" InputOverride="{local:Input Command=INPUTCMD_PP_REMOVE_FROM_SELECTION, Context=INPUTCONTEXT_PROP_PLACEMENT_UI}"
                                                                       Visibility="{Binding IsPropHighlighted, Converter={StaticResource A_FZBooleanToVisibilityConverter_Inverse}}"
                                                                       Description="{local:Loc HelpButtons.IDS_PropPlacement_SelectionMode_RemoveAllFromSelection}"
                                                                       Command="{Binding RemoveFromSelectionCommand, RelativeSource={RelativeSource AncestorType=Page}}"
                                                                       Style="{StaticResource A_Style_ControllerButtonControl_Tooltip}"/>
                                    </StackPanel>
                                </ContentControl>

                                <ContentControl Template="{StaticResource A_ControlTemplate_Tooltip}"
                                                x:Name="Tooltip_TransformControls"
                                                Visibility="{Binding HudState, Converter={StaticResource A_MappingConverter_TransformControls_Visibility}}">
                                    <StackPanel>
                                        <local:ControllerButtonControl x:Name="PlaceProp" InputOverride="{local:Input Command=INPUTCMD_PP_PLACE_EDIT_PROP, Context=INPUTCONTEXT_PROP_PLACEMENT_UI}"
                                                                       Visibility="{Binding ShowPlacePropButton, Converter={StaticResource A_FZBooleanToVisibilityConverter}}"
                                                                       Description="{Binding AButtonText}"
                                                                       Command="{Binding PlacePropCommand, RelativeSource={RelativeSource AncestorType=Page}}"
                                                                       Style="{StaticResource A_Style_ControllerButtonControl_Tooltip}"/>

                                        <local:ControllerButtonControl x:Name="StampProp" InputOverride="{local:Input Command=INPUTCMD_PP_STAMP_PROP, Context=INPUTCONTEXT_PROP_PLACEMENT_UI}"
                                                                       Visibility="{Binding CanStampProp, Converter={StaticResource A_FZBooleanToVisibilityConverter}}"
                                                                       Description="{Binding YButtonText}"
                                                                       Command="{Binding StampPropCommand, RelativeSource={RelativeSource AncestorType=Page}}"
                                                                       Style="{StaticResource A_Style_ControllerButtonControl_Tooltip}"/>
                                        <StackPanel Orientation="Horizontal">
                                            <local:ControllerButtonControl x:Name="FreecamMoveUp" InputOverride="{local:Input Command=INPUTCMD_MOVE_UP, Context=INPUTCONTEXT_FREECAM}"
                                                                           Margin="0,0,5,0"
                                                                           Visibility="{Binding CanTranslateSelectedProp, Converter={StaticResource A_FZBooleanToVisibilityConverter}, FallbackValue=Collapsed}"
                                                                           Style="{StaticResource A_Style_ControllerButtonControl_Tooltip}" />
                                            <local:ControllerButtonControl x:Name="FreecamMoveDown" InputOverride="{local:Input Command=INPUTCMD_MOVE_DOWN, Context=INPUTCONTEXT_FREECAM}"
                                                                           Description="{local:Loc HelpButtons.IDS_PropPlacement_Height_Prop}"
                                                                           Visibility="{Binding CanTranslateSelectedProp, Converter={StaticResource A_FZBooleanToVisibilityConverter}, FallbackValue=Collapsed}"
                                                                           Style="{StaticResource A_Style_ControllerButtonControl_Tooltip}" />
                                        </StackPanel>

                                        <StackPanel Orientation="Horizontal">
                                            <local:ControllerButtonControl x:Name="TransformLeft" Margin="0,0,5,0"
                                                                           InputOverride="{local:Input Command=INPUTCMD_PP_TRANSFORM_LEFT, Context=INPUTCONTEXT_PROP_PLACEMENT_UI}"
                                                                           Visibility="{Binding CanYawSelectedProp, Converter={StaticResource A_FZBooleanToVisibilityConverter}, FallbackValue=Collapsed}"
                                                                           Style="{StaticResource A_Style_ControllerButtonControl_Tooltip}" />
                                            <local:ControllerButtonControl x:Name="TransformRight" InputOverride="{local:Input Command=INPUTCMD_PP_TRANSFORM_RIGHT, Context=INPUTCONTEXT_PROP_PLACEMENT_UI}"
                                                                           Description="{local:Loc HelpButtons.IDS_PropPlacement_Rotate}"
                                                                           Visibility="{Binding CanYawSelectedProp, Converter={StaticResource A_FZBooleanToVisibilityConverter}, FallbackValue=Collapsed}"
                                                                           Style="{StaticResource A_Style_ControllerButtonControl_Tooltip}" />
                                        </StackPanel>

                                        <StackPanel Orientation="Horizontal">
                                            <local:ControllerButtonControl x:Name="TransformUp" Margin="0,0,5,0"
                                                                           InputOverride="{local:Input Command=INPUTCMD_PP_TRANSFORM_UP, Context=INPUTCONTEXT_PROP_PLACEMENT_UI}"
                                                                           Visibility="{Binding CanPitchSelectedProp, Converter={StaticResource A_FZBooleanToVisibilityConverter}, FallbackValue=Collapsed}"
                                                                           Style="{StaticResource A_Style_ControllerButtonControl_Tooltip}" />
                                            <local:ControllerButtonControl x:Name="TransformDown" InputOverride="{local:Input Command=INPUTCMD_PP_TRANSFORM_DOWN, Context=INPUTCONTEXT_PROP_PLACEMENT_UI}"
                                                                           Description="{local:Loc HelpButtons.IDS_PropPlacement_Pitch}"
                                                                           Visibility="{Binding CanPitchSelectedProp, Converter={StaticResource A_FZBooleanToVisibilityConverter}, FallbackValue=Collapsed}"
                                                                           Style="{StaticResource A_Style_ControllerButtonControl_Tooltip}" />
                                        </StackPanel>

                                        <StackPanel Orientation="Horizontal">
                                            <local:ControllerButtonControl x:Name="RollLeft" Margin="0,0,5,0"
                                                                           InputOverride="{local:Input Command=INPUTCMD_PP_ROLL_LEFT, Context=INPUTCONTEXT_PROP_PLACEMENT_UI}"
                                                                           Visibility="{Binding CanRollSelectedProp, Converter={StaticResource A_FZBooleanToVisibilityConverter}, FallbackValue=Collapsed}"
                                                                           Style="{StaticResource A_Style_ControllerButtonControl_Tooltip}" />
                                            <local:ControllerButtonControl x:Name="RollRight" InputOverride="{local:Input Command=INPUTCMD_PP_ROLL_RIGHT, Context=INPUTCONTEXT_PROP_PLACEMENT_UI}"
                                                                           Description="{local:Loc HelpButtons.IDS_PropPlacement_Roll}"
                                                                           Visibility="{Binding CanRollSelectedProp, Converter={StaticResource A_FZBooleanToVisibilityConverter}, FallbackValue=Collapsed}"
                                                                           Style="{StaticResource A_Style_ControllerButtonControl_Tooltip}" />
                                        </StackPanel>

                                        <local:ControllerButtonControl x:Name="ResetTransform" InputOverride="{local:Input Command=INPUTCMD_PP_RESET_TRANSFORM, Context=INPUTCONTEXT_PROP_PLACEMENT_UI}"
                                                                       Description="{local:Loc HelpButtons.IDS_PropPlacement_Reset}"
                                                                       Command="{Binding ResetPropCommand, RelativeSource={RelativeSource AncestorType=Page}}"
                                                                       Style="{StaticResource A_Style_ControllerButtonControl_Tooltip}" />
                                    </StackPanel>
                                </ContentControl>
                            </Grid>
                        </StackPanel>
                    </StackPanel>

                    <!-- Mini Map -->
                    <Grid HorizontalAlignment="Left"
                               VerticalAlignment="Bottom"
                               Margin="0,0,0,60"
                               Visibility="{Binding HudState, Converter={StaticResource A_MappingConverter_AnnaHUD_Visibility}}">
                        <local:HUDAnnaControl HUDData.Type="HUDStatusAnna"
                                              ElementToTrack="prop_placement_camera"
                                              CanShowDestination="False"/>
                        <Control Template="{StaticResource A_Template_BudgetInfo_Control}" 
                                 Visibility="{Binding PropPlacementSceneType, RelativeSource={RelativeSource AncestorType=Page}, Converter={StaticResource A_MappingConverter_CollapsedIf_EventPropPlacementScene}}"
                                 VerticalAlignment="Bottom" 
                                 Margin="{Binding PropPlacementSceneType, RelativeSource={RelativeSource AncestorType=Page}, Converter={StaticResource A_MappingConverter_BudgetInfoControlMargin_To_XAMLPropPlacementSceneType}}" />
                    </Grid>

                    <!-- Network Controls -->
                    <local:HUDNetworkStatusControl HUDData.Type="HUDStatusNetworkStatus" />
                    <StackPanel Orientation="Vertical" VerticalAlignment="Bottom">
                        <StackPanel>
                            <local:HUDPressButtonControl HUDData.Type="HUDStatusPressButton" Margin="0,0,0,0"/>
                            <Decorator Style="{StaticResource A_Style_FrameworkElement_SubtitlesSpaceMaker}" />
                        </StackPanel>
                    </StackPanel>
                </Grid>
            </Grid>
        </Grid>
        <Grid x:Name="BottomBar" Visibility="{Binding HideButtonBar, Converter={StaticResource A_FZBooleanToVisibilityConverter_Inverse}}">
            <!-- button bars  -->
            <ContentControl Style="{StaticResource A_Style_ButtonBar}">
                <local:ControllerButtonPanel x:Name="PlacementMenu" Style="{StaticResource A_Style_ControllerButtonPanel_Default}"
                                         Visibility="{Binding HudState, Converter={StaticResource A_MappingConverter_SelectionControls_Visibility}}">

                    <local:ControllerButtonControl x:Name="OpenMoreOptionsButton" InputOverride="{local:Input Command=INPUTCMD_PP_OPEN_MOREOPTIONS, Context=INPUTCONTEXT_PROP_PLACEMENT_UI}"
                                                    Description="{local:Loc HelpButtons.IDS_PropPlacement_Open_MoreOptions}"
                                                    Command="{Binding MoreOptionsCommand, RelativeSource={RelativeSource AncestorType=Page}}"/>
                    
                    <local:ControllerButtonControl x:Name="OpenLibButton" InputOverride="{local:Input Command=INPUTCMD_PP_OPEN_LIBRARY, Context=INPUTCONTEXT_PROP_PLACEMENT_UI}"
                                                   Description="{local:Loc HelpButtons.IDS_PropPlacement_Open_Lib}"
                                                   Command="{Binding OpenLibraryCommand, RelativeSource={RelativeSource AncestorType=Page}}"/>

                    <local:ControllerButtonControl x:Name="ExitButton" InputOverride="{local:Input Command=INPUTCMD_PP_SAVE_AND_EXIT, Context=INPUTCONTEXT_PROP_PLACEMENT_UI}"
		                                           Visibility="{Binding IsNetworkPropPlacementLeader, Converter={StaticResource A_FZBooleanToVisibilityConverter}}"
                                                   Description="{Binding PropPlacementSceneType, RelativeSource={RelativeSource AncestorType=Page}, Converter={StaticResource A_MappingConverter_PropPlacementSceneType_To_ExitLabel}}"
                                                   Command="{Binding SaveAndExitCommand, RelativeSource={RelativeSource AncestorType=Page}}"/>
                </local:ControllerButtonPanel>
            </ContentControl>

            <!-- selection mode -->
            <ContentControl Style="{StaticResource A_Style_ButtonBar}">
                <local:ControllerButtonPanel x:Name="SelectionMenu" Style="{StaticResource A_Style_ControllerButtonPanel_Default}"
                                             Visibility="{Binding HudState, Converter={StaticResource A_MappingConverter_BrowsingPropCarousel_Visibility}}">

                    <local:ControllerButtonControl InputOverride="{local:Input Command=INPUTCMD_PP_PLACE_EDIT_PROP, Context=INPUTCONTEXT_PROP_PLACEMENT_UI}"
                                                   Description="{local:Loc HelpButtons.IDS_PropPlacement_Select_Prop}"
                                                   Style="{StaticResource A_Style_ControllerButtonControl_PlaceProp}"/>

                    <local:ControllerButtonControl InputOverride="{local:Input Command=INPUTCMD_PP_SAVE_AND_EXIT, Context=INPUTCONTEXT_PROP_PLACEMENT_UI}"
                                                   Description="{local:Loc HelpButtons.IDS_Back}"
                                                   Style="{StaticResource A_Style_ControllerButtonControl_PrevOnClipboard}" />

                    <local:ControllerButtonControl InputOverride="{local:Input Command=INPUTCMD_PP_FAVORITE_PROP, Context=INPUTCONTEXT_PROP_PLACEMENT_UI}"
                                                   Style="{StaticResource A_Style_FavouriteProp_Button}" />

                    <local:ControllerButtonControl InputOverride="{local:Input Command=INPUTCMD_PP_DELETE_UGCPROP_IN_CAROUSEL, Context=INPUTCONTEXT_PROP_PLACEMENT_UI}"
                                                   Style="{StaticResource A_Style_DeleteUGCProps_Button}"
                                                   Description="{local:Loc HelpButtons.IDS_Delete_UGC_Prop}"
                                                   Command="{Binding DeletePropPrefabFromClipboardCommand, RelativeSource={RelativeSource AncestorType=Page}}"/>

                    <local:ControllerButtonControl InputOverride="{local:Input Command=INPUTCMD_PP_OPEN_PROPPREFAB_POPUP, Context=INPUTCONTEXT_PROP_PLACEMENT_UI}"
                                                   Description="{local:Loc HelpButtons.IDS_ViewMore}"
                                                   Visibility="{Binding SelectedCategory.CategoryType, Converter={StaticResource A_MappingConverter_CommunityProps_ButtonBar_Visibility}}"
                                                   Command="{Binding OpenPropPrefabCurationCommand, RelativeSource={RelativeSource AncestorType=Page}}"/>

                    <local:ControllerButtonControl InputOverride="{local:Input Command=INPUTCMD_PP_OPEN_PROPPREFAB_SEARCHPOPUP, Context=INPUTCONTEXT_PROP_PLACEMENT_UI}"
                                                   Description="{local:Loc HelpButtons.IDS_Search}"
                                                   Visibility="{Binding SelectedCategory.CategoryType, Converter={StaticResource A_MappingConverter_CommunityProps_ButtonBar_Visibility}}"
                                                   Command="{Binding OpenSearchPropPrefabPopupCommand, RelativeSource={RelativeSource AncestorType=Page}}" />
                </local:ControllerButtonPanel>
            </ContentControl>

            <!-- multi selection mode -->
            <ContentControl Style="{StaticResource A_Style_ButtonBar}">
                <local:ControllerButtonPanel x:Name="SelectionModeMenu" Style="{StaticResource A_Style_ControllerButtonPanel_Default}"
                                         Visibility="{Binding HudState, Converter={StaticResource A_MappingConverter_SelectionMode_Visibility}}">
                    <local:ControllerButtonControl InputOverride="{local:Input Command=INPUTCMD_PP_OPEN_MOREOPTIONS, Context=INPUTCONTEXT_PROP_PLACEMENT_UI}"
                                                   Description="{local:Loc HelpButtons.IDS_PropPlacement_Open_MoreOptions}"
                                                   Command="{Binding MoreOptionsCommand, RelativeSource={RelativeSource AncestorType=Page}}" />
                    <local:ControllerButtonControl InputOverride="{local:Input Command=INPUTCMD_PP_OPEN_LIBRARY, Context=INPUTCONTEXT_PROP_PLACEMENT_UI}"
                                                   Description="{local:Loc HelpButtons.IDS_PropPlacement_Open_Lib}"  
                                                   Command="{Binding OpenLibraryCommand, RelativeSource={RelativeSource AncestorType=Page}}" />
                    <local:ControllerButtonControl InputOverride="{local:Input Command=INPUTCMD_PP_OPEN_CREATIONMODE, Context=INPUTCONTEXT_PROP_PLACEMENT_UI}"
                                                   Description="{local:Loc HelpButtons.IDS_PropPlacement_SelectionMode_BackToCreationMode}" 
                                                   Command="{Binding CreationModeCommand, RelativeSource={RelativeSource AncestorType=Page}}" />
                    <local:ControllerButtonControl InputOverride="{local:Input Command=INPUTCMD_PP_SAVE_AND_EXIT, Context=INPUTCONTEXT_PROP_PLACEMENT_UI}"
                                                   Description="{Binding PropPlacementSceneType, RelativeSource={RelativeSource AncestorType=Page}, Converter={StaticResource A_MappingConverter_PropPlacementSceneType_To_ExitLabel}}"
                                                   Visibility="{Binding IsNetworkPropPlacementLeader, Converter={StaticResource A_FZBooleanToVisibilityConverter}}"
                                                   Command="{Binding SaveAndExitCommand, RelativeSource={RelativeSource AncestorType=Page}}" />
                    <local:ControllerButtonControl InputOverride="{local:Input Command=INPUTCMD_PP_SAVE_SELECTED_PROPS, Context=INPUTCONTEXT_PROP_PLACEMENT_UI}"
                                                   Description="{local:Loc HelpButtons.IDS_PropPlacement_SelectionMode_SaveSelectedProps}"
                                                   Visibility="{Binding CanSaveSelectedProps, Converter={StaticResource A_FZBooleanToVisibilityConverter}, FallbackValue=Collapsed}"
                                                   Command="{Binding SaveSelectedPropsCommand, RelativeSource={RelativeSource AncestorType=Page}}" />
                </local:ControllerButtonPanel>
            </ContentControl>

            <!-- edit mode -->
            <ContentControl Style="{StaticResource A_Style_ButtonBar}">
                <local:ControllerButtonPanel x:Name="EditingMenu" Style="{StaticResource A_Style_ControllerButtonPanel_Default}"
                                         Visibility="{Binding HudState, Converter={StaticResource A_MappingConverter_TransformControls_Visibility}}">

                    <local:ControllerButtonControl InputOverride="{local:Input Command=INPUTCMD_PP_SAVE_AND_EXIT, Context=INPUTCONTEXT_PROP_PLACEMENT_UI}"
                                                   Description="{local:Loc HelpButtons.IDS_Back}" 
                                                   Command="{Binding CancelPropPlacementCommand, RelativeSource={RelativeSource AncestorType=Page}}" />

                    <local:ControllerButtonControl InputOverride="{local:Input Command=INPUTCMD_PP_OPEN_MOREOPTIONS, Context=INPUTCONTEXT_PROP_PLACEMENT_UI}"
                                                   Description="{local:Loc HelpButtons.IDS_PropPlacement_Open_MoreOptions}"
                                                   Command="{Binding MoreOptionsCommand, RelativeSource={RelativeSource AncestorType=Page}}"/>
                </local:ControllerButtonPanel>
            </ContentControl>
        </Grid>

        <!-- Reticle -->
        <Decorator x:Name="Decorator_CameraReticle" Style="{StaticResource A_Style_FrameworkElement_LayoutRoot}" HorizontalAlignment="Center" VerticalAlignment="Center">
            <Grid x:Name="FZMaterial_CameraReticle"
                      Style="{StaticResource A_Style_FrameworkElement_FadeOnlyTransition_0}"
                      Width="128" Height="128"
                      VerticalAlignment="Center"  HorizontalAlignment="Center">
                    <local:FZMaterial x:Name="ReticuleImage"
                                      Style="{StaticResource A_Style_Material_Reticule}" />
            </Grid>
        </Decorator>

        <Decorator x:Name="Decorator_ReticleMessage" HorizontalAlignment="Center" VerticalAlignment="Center" Height="700" Style="{StaticResource A_Style_FrameworkElement_FadeOnlyTransition_0}">
            <!-- info message reticle -->
            <local:FZTextBlock Style="{StaticResource A_Style_FZTextBlock_HudMediumLarge}"
                    Opacity="0.75"
                    FontSize="60"
                    VerticalAlignment="Bottom"
                    Text="{Binding ReticuleMessage, Converter={StaticResource A_StringToUpper}}" HorizontalAlignment="Center"/>

        </Decorator>

        <Border x:Name="PropSelection" Style="{StaticResource A_Style_Border_ScenePadding_Opus_BottomAnchor}"
            Visibility="{Binding HudState, Converter={StaticResource A_MappingConverter_BrowsingPropCarousel_Visibility}}">
            <Grid>
                <StackPanel Orientation="Vertical" VerticalAlignment="Bottom">
                    <Control Margin="8,0,0,0" 
                             Template="{StaticResource A_Template_BudgetInfo_Control}"
                             Visibility="{Binding PropPlacementSceneType, RelativeSource={RelativeSource AncestorType=Page}, Converter={StaticResource A_MappingConverter_CollapsedIf_EventPropPlacementScene}}" />
                    <DockPanel Margin="8,0,4,0" HorizontalAlignment="Stretch" Style="{StaticResource A_Style_FrameworkElement_DefaultTransition_1}">
                        <Decorator HorizontalAlignment="Right"
                                   VerticalAlignment="Bottom"
                                   DockPanel.Dock="Right"
                                   MaxWidth="520"
                                   MinWidth="344">
                            <ContentControl Style="{StaticResource H_Style_TemplatedWrapper_ScreenTitleWithAutoScroll_Props}"
                                            Height="44" />
                        </Decorator>

                        <!-- CATEGORIES -->
                        <Decorator x:Name="PART_CategoryRibbon" VerticalAlignment="Bottom" HorizontalAlignment="Left"
                                  Margin="0,0,20,0">
                            <FZButtonsSelector x:Name="PART_PropCatList"
                                                Style="{StaticResource H_Style_TabBar_Scrolling}"
                                                Focusable="False"
                                                Visibility="{Binding HudState, Converter={StaticResource A_MappingConverter_BrowsingProps_Visibility}, FallbackValue=Collapsed}"
                                                SelectedIndex="{Binding SelectedCategoryIndex, Mode=TwoWay}"
                                                SelectedItem="{Binding SelectedCategory, Mode=TwoWay}"
                                                ItemsSource="{Binding Categories}"
                                                PageSize="1"
                                                MaxWidth="1204"/>
                        </Decorator>
                    </DockPanel>

                    <!-- PROP LIST ? -->
                    <Grid Style="{StaticResource A_Style_FrameworkElement_DefaultTransition_2}" VerticalAlignment="Bottom"
                          HorizontalAlignment="Center"
                          KeyboardNavigation.DirectionalNavigation="Contained"
                          Width="{StaticResource H_Double_Carousel_Square_Total_Width}"
                          Margin="0,0,0,8">
                        <ContentControl Template="{StaticResource A_Template_ContentControl_SelectorContainer_PageButtons}">
                            <local:WrapListBox x:Name="PART_PropsItemList"
                                           Focusable="False"
                                           Style="{Binding HudState, FallbackValue={StaticResource A_Style_Carousel_PropItems}, Converter={StaticResource A_MappingConverter_BrowsingPropCarousel_Style}}"
                                           Height="{StaticResource H_Double_Carousel_Square_Tile_Space}"
                                           ItemWidth="{StaticResource H_Double_Carousel_Square_Tile_Space}"
                                           ItemHeight="{StaticResource H_Double_Carousel_Square_Tile_Space}"
                                           Width="{StaticResource H_Double_Carousel_Square_Total_Width}"
                                           SelectionLimitTop="{StaticResource H_Double_Carousel_Square_FixedOffset}"
                                           ScrollOrientation="Horizontal"
                                           SelectedIndex="0">
                            </local:WrapListBox>
                        </ContentControl>
                    </Grid>
                    <ScrollBar
                            Style="{StaticResource A_Style_ScrollBar_Default}"
                            Margin="6,0"
                            Orientation="Horizontal"
                            Minimum="{Binding ScrollWindowMin, ElementName=PART_PropsItemList}"
                            Maximum="{Binding ScrollWindowMax, ElementName=PART_PropsItemList}"
                            Value="{Binding ScrollWindowValue, ElementName=PART_PropsItemList, Mode=TwoWay}"
                            ViewportSize="{Binding ScrollWindowSize, ElementName=PART_PropsItemList}" />
                </StackPanel>
            </Grid>
        </Border>
    </Grid>
</Page>
