﻿<manifest:LayoutControl
    x:Class="WinStore.UX.Controls.PDP.Information"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:controls="using:WinStore.UX.Controls"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:manifest="using:WinStore.UX.PresentationManifest"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d"
    d:DesignHeight="300"
    d:DesignWidth="400"
    AutomationProperties.AutomationId="InformationControl">

    <manifest:LayoutControl.Resources>
        <x:Double x:Key="BulletIndent">-8</x:Double>

		<Style TargetType="HyperlinkButton" BasedOn="{StaticResource HyperlinkButtonStyle}">
			<Setter Property="Height" Value="23"/>
		</Style>
        
		<Style TargetType="TextBlock" BasedOn="{StaticResource CaptionTextBlockStyle}">
			<Setter Property="FontSize" Value="{StaticResource BodyFontSize}" />
		</Style>
		
		<Style TargetType="RichTextBlock" BasedOn="{StaticResource CaptionRichTextBlockStyle}">
			<Setter Property="FontSize" Value="{StaticResource BodyFontSize}" />
		</Style>

    </manifest:LayoutControl.Resources>

    <controls:MultiColumnStackPanel x:ConnectionId='1'
        x:Name="_content"
        MaxColumnCount="5"
        MinColumnHeight="120"
        MaxColumnHeight="1200">

        <RichTextBlock x:ConnectionId='2'
            x:Name="_publisherBlock"
            Margin="0,0,0,12"
            AutomationProperties.AutomationId="PublisherInfoBlock">
            <Paragraph>
                    <Run x:Uid="PublishedByTitle" />
				<Run x:ConnectionId='47' x:Name="_publisherName"   />
                <Run x:ConnectionId='48' x:Name="_copyrightNotice" Foreground="{ThemeResource InformationValueBrush}"/>
            </Paragraph>
        </RichTextBlock>

        <StackPanel x:ConnectionId='3' x:Name="_categoryBlock" Margin="0,0,0,12">
            <RichTextBlock >
                <Paragraph>
                        <Run x:Uid="CategoryTitle" />
                    <Run x:ConnectionId='44' x:Name="_categoryName"  Foreground="{ThemeResource InformationValueBrush}"/>
                    <Run x:ConnectionId='45' x:Name="_categorySeparator" x:Uid="CategorySeparator"  Foreground="{ThemeResource InformationValueBrush}"/>
                    <Run x:ConnectionId='46' x:Name="_subCategoryName"  Foreground="{ThemeResource InformationValueBrush}"/>
                </Paragraph>
            </RichTextBlock>
        </StackPanel>

        <RichTextBlock x:ConnectionId='4'
            x:Name="_downloadSizeBlock"
            Margin="0,0,0,12"
            AutomationProperties.AutomationId="DownloadSizeBlock">
            <Paragraph>
                    <Run x:Uid="ApproximateSizeTitle" />
                <Run x:ConnectionId='43' x:Name="_downloadSize"  Foreground="{ThemeResource InformationValueBrush}" />
            </Paragraph>
        </RichTextBlock>

        <RichTextBlock x:ConnectionId='5'
            x:Name="_ageRatingBlock"
            Margin="0,0,0,12"
            AutomationProperties.AutomationId="AgeRatingBlock">
            <Paragraph>
                    <Run x:Uid="AgeRatingTitle" />
                <Run x:ConnectionId='42' x:Name="_ageRating" Foreground="{ThemeResource InformationValueBrush}" />
            </Paragraph>
        </RichTextBlock>

        <RichTextBlock x:ConnectionId='6'
            x:Name="_supportedProcessorsBlock"
            Margin="0,0,0,12"
            AutomationProperties.AutomationId="SupportedProcessorsBlock">
            <Paragraph>
                    <Run x:Uid="SupportedProcessorsTitle" />
				<Run x:ConnectionId='41' x:Name="_supportedProcessors" Foreground="{ThemeResource InformationValueBrush}"/>
            </Paragraph>
        </RichTextBlock>

        <StackPanel x:ConnectionId='7' x:Name="_hardwareRequirementsBlock" Margin="0,0,0,12">
            <TextBlock x:ConnectionId='37'
                x:Name="_hardwareRequirementsTitle"
                x:Uid="HardwareRequirementsTitle"
                FontWeight="Bold"
                TextWrapping="WrapWholeWords"
				Foreground="{ThemeResource InformationValueBrush}"
                AutomationProperties.AutomationId="HardwareRequirementsTitle">
            </TextBlock>
            <RichTextBlock x:ConnectionId='38'
                x:Name="_hardwareRequirementsList"
				 Foreground="{ThemeResource InformationValueBrush}"
                AutomationProperties.AutomationId="HardwareRequirementsList"/>
            <HyperlinkButton x:ConnectionId='39' 
                x:Name="_hardwareRequirementsReadMoreButton" 
                                                                
                Visibility="Collapsed"/>
            <RichTextBlock x:ConnectionId='40'
                x:Name="_hardwareRequirementsListForPopup"
                AutomationProperties.AutomationId="HardwareRequirementsListPopupContent"
                Visibility="Collapsed"/>
        </StackPanel>

        <RichTextBlock x:ConnectionId='8'
            x:Name="_accessibilityBlock"
            Margin="0,0,0,12"
            AutomationProperties.AutomationId="AccessibilityBlock">
            <Paragraph>
                    <Run x:Uid="AccessibilityTitle" />
                <Run x:Uid="AccessibleProductText"  Foreground="{ThemeResource InformationValueBrush}"/>
            </Paragraph>
        </RichTextBlock>

        <StackPanel x:ConnectionId='9' x:Name="_permissionsBlock" Margin="0,0,0,12">
            <TextBlock x:ConnectionId='33'
                x:Name="_permissionsTitle"
                x:Uid="PermissionsTitle"
                TextWrapping="WrapWholeWords"
                AutomationProperties.AutomationId="PermissionsTitle">
            </TextBlock>
            <RichTextBlock x:ConnectionId='34'
                x:Name="_permissionsList"
				Foreground="{ThemeResource InformationValueBrush}"
                AutomationProperties.AutomationId="PermissionsList"/>
            <HyperlinkButton x:ConnectionId='35' 
                x:Name="_permissionsReadMoreButton" 
                                                       
                Visibility="Collapsed"/>
            <RichTextBlock x:ConnectionId='36'
                x:Name="_permissionsListForPopup"
                AutomationProperties.AutomationId="PermissionsListPopupContent"
                Visibility="Collapsed"/>
        </StackPanel>

        <StackPanel x:ConnectionId='10' x:Name="_supportedLanguagesBlock" Margin="0,0,0,12">
            <TextBlock x:ConnectionId='29'
                x:Name="_supportedLanguagesTitle"
                x:Uid="SupportedLanguagesTitle"
                AutomationProperties.AutomationId="SupportedLanguagesTitle">
            </TextBlock>
            <RichTextBlock x:ConnectionId='30'
                x:Name="_supportedLanguagesList"
                LineHeight="15"
				Foreground="{ThemeResource InformationValueBrush}"
                AutomationProperties.AutomationId="SupportedLanguagesList"/>
            <HyperlinkButton x:ConnectionId='31' 
                x:Name="_supportedLanguagesReadMoreButton" 
                                                              
                Visibility="Collapsed"/>
            <RichTextBlock x:ConnectionId='32'
                x:Name="_supportedLanguagesListForPopup"
                AutomationProperties.AutomationId="SupportedLanguagesListPopupContent"
                Visibility="Collapsed"/>
        </StackPanel>

        <StackPanel x:ConnectionId='11' x:Name="_learnMoreBlock" Margin="0,0,0,12">
            <RichTextBlock>
                <Paragraph>
                        <Run x:Uid="LearnMoreTitle" />
                </Paragraph>
            </RichTextBlock>
            <HyperlinkButton x:ConnectionId='27'
                x:Name="_appSupportLink"
                Style="{StaticResource HyperlinkContentButtonStyle}"
                Height="23"
                Margin="0,-3,0,0"
                AutomationProperties.AutomationId="AppSupportLink"/>
            <HyperlinkButton x:ConnectionId='28'
                x:Name="_appWebsiteLink"
                Style="{StaticResource HyperlinkContentButtonStyle}"
                Height="23"
                Margin="0,-2,0,0"
                AutomationProperties.AutomationId="AppWebsiteLink"/>
        </StackPanel>

        <StackPanel x:ConnectionId='12' x:Name="_additionalTermsBlock" Margin="0,0,0,12">
            <RichTextBlock>
                <Paragraph>
                        <Run x:Uid="AdditionalTermsTitle" />
                </Paragraph>
            </RichTextBlock>
            <HyperlinkButton x:ConnectionId='23'
                x:Name="_publisherPrivacyPolicyLink"
                Style="{StaticResource HyperlinkContentButtonStyle}"
                Height="23"
                Margin="0,-3,0,0"
                AutomationProperties.AutomationId="PrivacyPolicyLink" />
            <HyperlinkButton x:ConnectionId='24'
                x:Name="_licenseTermsLink"
                Style="{StaticResource HyperlinkContentButtonStyle}"
                Height="23"
                Margin="0,-2,0,0"
                AutomationProperties.AutomationId="LicenseTermsLink"
                                                     />
            <RichTextBlock x:ConnectionId='25'
                x:Name="_licenseTermsText"
                LineHeight="14.5"
				Foreground="{ThemeResource InformationValueBrush}"
                AutomationProperties.AutomationId="LicenseTermsText"
                Visibility="Collapsed"/>
            <HyperlinkButton x:ConnectionId='26'
                x:Name="_storeTermsofUseLink"
                NavigateUri="http://go.microsoft.com/fwlink/?LinkID=519256"
                Margin="0,-2,0,0"
                AutomationProperties.AutomationId="LicenseTermsLink"
                x:Uid="SettingsPageTermsOfUseLink" />
        </StackPanel>

        <StackPanel x:ConnectionId='13' x:Name="_reportThisAppBlock" Margin="0,0,0,12">
            <RichTextBlock x:ConnectionId='20' x:Name="_reportThisAppTitle">
                <Paragraph>
                        <Run x:Uid="ReportThisAppTitle" />
                </Paragraph>
            </RichTextBlock>
            <HyperlinkButton x:ConnectionId='21'
                Margin="0,-3,0,0"
                AutomationProperties.AutomationId="ReportViolationLink"
                                           
                x:Uid="ReportViolationLink" />
            <RichTextBlock>
                <Paragraph>
					<Run x:ConnectionId='22' x:Name="_reportAppSuccessText"
						 Foreground="{ThemeResource InformationValueBrush}"
						 AutomationProperties.LiveSetting="Assertive" />
                </Paragraph>
            </RichTextBlock>
        </StackPanel>
        
        <Popup x:ConnectionId='14' 
            x:Name="_readMorePopup"
            IsLightDismissEnabled = "True"
            IsOpen="False">
            <Border x:ConnectionId='15'
                x:Name="_popupBorder"
                BorderThickness="1"
                Padding ="10"
                Margin="-10,-10,0,0"
                BorderBrush="{StaticResource AppThemePrimaryBrush}"
                Background="{StaticResource ApplicationPageBackgroundThemeBrush}">
                <StackPanel x:ConnectionId='16' x:Name="_popupPanel">
                    <TextBlock x:ConnectionId='17' 
                        x:Name="_popupTitle"
                        FontWeight="Bold"/>
                    <ScrollViewer x:ConnectionId='18' 
                        x:Name="_popupScroller"
                        VerticalScrollBarVisibility="Auto">
                        <StackPanel x:ConnectionId='19' x:Name="_popupContentPanel"/>
                    </ScrollViewer>
                </StackPanel>
            </Border>
        </Popup>

    </controls:MultiColumnStackPanel>

</manifest:LayoutControl>

