<DataTemplate xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
              xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
              xmlns:tm="using:SearchUI.TemplateManager"
              xmlns:sc="using:SearchUI.Controls"
              x:Key="ModernApplications.AppStoreMultiLayout_Snap_8_1_RTM">
    <Grid Style="{CustomResource Resources.Shared.SuppressedTopLevelDataTemplateRootStyle}">     
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
            <RowDefinition Height="*" />
        </Grid.RowDefinitions>
        <TextBlock Grid.Row="0"
                   MaxLines="1"
                   Margin="10, 0, 0, 15"
                   TextTrimming="WordEllipsis"
                   TextWrapping="Wrap"
                   Style="{CustomResource Resources.Shared.SerpPrimaryTextStyle}"
                   tm:RichText.Text="{Binding System_ItemNameDisplay}"
                   AutomationProperties.AutomationId="Title" />
        <ContentControl Grid.Row="1"
                        Margin="10, 10, 0, 0"
                        Content="{Binding}"
                        DataContext="{Binding Extended:appButton}"
                        ContentTemplateSelector="{CustomResource GenericDataTemplateSelector}" />
        
        <sc:ResultGridView Grid.Row="2"
                           Margin="-4, 0, 0, 0"
                           Style="{CustomResource Resources.Shared.NoSelectionVerticalNestedGridViewStyle}"
                           ItemTemplateSelector="{CustomResource GenericDataTemplateSelector}"
                           OriginalItemsSource="{Binding Extended:app}"
                           MaxItemCount="2">
            <GridView.ItemsPanel>
                <ItemsPanelTemplate>
                    <VariableSizedWrapGrid Orientation="Horizontal"
                                           ItemWidth="280"
                                           ItemHeight="120"
                                           MaximumRowsOrColumns="1" />
                </ItemsPanelTemplate>
            </GridView.ItemsPanel>
        </sc:ResultGridView>
    </Grid>
</DataTemplate>