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

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

    <Page.Resources>
        <ResourceDictionary>
            <Style TargetType="FZTextBlock"
                   x:Key="H_Style_Text_Description_Body">
                <Setter Property="Color" Value="{StaticResource H_Color_Primary_White}" />
                <Setter Property="FontFamily" Value="Horizon_D" />
                <Setter Property="CapHeight" Value="14" />
                <Setter Property="TextWrapping" Value="Wrap" />
                <Setter Property="TextAlignment" Value="Left" />
                <Setter Property="HorizontalAlignment" Value="Left" />
                <Setter Property="VerticalAlignment" Value="Top" />
                <Setter Property="Margin" Value="28,24" />
            </Style>
        </ResourceDictionary>
    </Page.Resources>

    <Grid>
        <Grid>
            <Control Style="{StaticResource A_Style_Control_ScreenBackground}" />
            <!-- Help Button Bar -->
            <ContentControl x:Name="BottomBar"
                            Style="{StaticResource A_Style_ButtonBar}">
                <ContentControl x:Name="PART_DefaultHelpPanel"
                                local:ControllerButtonPanel.ADescription="{local:Loc HelpButtons.IDS_Select}"
                                local:ControllerButtonPanel.BDescription="{local:Loc HelpButtons.IDS_Cancel}"
                                Style="{StaticResource A_Style_ContentControl_DefaultButtonBar}" />
            </ContentControl>
        </Grid>

        <Grid Style="{StaticResource A_Style_FrameworkElement_LayoutRoot}"
              Focusable="False">
            <StackPanel x:Name="MainContent"
                        HorizontalAlignment="Left"
                        VerticalAlignment="Center"
                        Margin="72,0,0,0"
                        Style="{StaticResource A_Style_FrameworkElement_DefaultTransition_0}">
                <ContentControl Content="{local:Loc ScreenTitles.IDS_EstateInfo}"
                                Style="{StaticResource A_Style_ContentControl_ScreenTitleBlock}"
                                Width="{StaticResource A_Double_CreationButton_ListItem_Width}"
                                HorizontalAlignment="Left"/>
                <DockPanel>
                    <Grid DockPanel.Dock="Right">
                        <ContentControl x:Name="PART_Flyer"
                                        DataContext="{Binding Poster}"
                                        Style="{StaticResource A_Style_Control_CampaignFlyer}"
                                        HorizontalAlignment="Center"
                                        VerticalAlignment="Center"
                                        Margin="4,0,0,0"/>

                        <Grid Visibility="{Binding Poster.Show, Converter={StaticResource A_FZBooleanToVisibilityConverter_UseHidden}, FallbackValue=Hidden}">
                            <Grid.RenderTransform>
                                <TranslateTransform X="381.5"/>
                            </Grid.RenderTransform>
                            <Control Style="{StaticResource A_Style_Event_UGCLocation_FlyerPopup}"
                                     DataContext="{Binding Poster}"/>
                        </Grid>
                    </Grid>
                    

                    <DockPanel DockPanel.Dock="Left" Width="{StaticResource A_Double_CreationButton_ListItem_Width}" Margin="0,0,0,-2">
                        <CommonListBox Style="{StaticResource A_Style_Carousel_Creation_ButtonList}"
                                       ItemsSource="{Binding Items, RelativeSource={RelativeSource AncestorType=Page}}"
                                       SelectedItem="{Binding SelectedItem, Mode=TwoWay}"
                                       DockPanel.Dock="Top" />
                        <ContentControl Style="{StaticResource A_Style_ContentControl_PopupContentBlock}" Panel.ZIndex="-1">
                            <FZTextBlock Style="{StaticResource H_Style_Text_Description_Body}"
                                         Text="{Binding SelectedItem.Description}" />
                        </ContentControl>
                    </DockPanel>
                </DockPanel>
            </StackPanel>
        </Grid>
    </Grid>
</Page>
