﻿<manifest:LayoutControl 
    x:Class="WinStore.UX.Controls.PDP.PdpReviews"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    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">

    <StackPanel>
        <TextBlock x:ConnectionId='1' 
            x:Name="_emptyCaption"
            FontSize="{StaticResource BodyFontSize}"
            Style="{StaticResource SubtitleTextBlockStyle}"
            Visibility="Collapsed"
            TextWrapping="WrapWholeWords"
            MaxLines="3"
            TextTrimming="CharacterEllipsis"
            x:Uid="NoReviews"
            Margin="0,25,0,0"/>

        <GridView x:ConnectionId='2' 
            x:Name="_reviewsGrid"
            AutomationProperties.AutomationId="PdpReviewsSection"
                                                                              
            ItemContainerStyle="{StaticResource DefaultVariableGridViewItemStyle}"
            ItemTemplate="{StaticResource reviewItemTemplate}"
            SelectionMode="None"
            Margin="0,0,-24,0"
            Style="{StaticResource VerticalListViewBaseStyle}">
            <ItemsControl.ItemsPanel>
                <ItemsPanelTemplate>
                    <ItemsWrapGrid 
                        ItemHeight="{StaticResource ReviewItemHeight}"
                        ItemWidth="{StaticResource ReviewItemWidth}"
                        Orientation="Horizontal" />
                </ItemsPanelTemplate>
            </ItemsControl.ItemsPanel>
        </GridView>
    </StackPanel>
</manifest:LayoutControl>

