<!-- Child template for generic clickable text extension in an ad. -->
<DataTemplate xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
              xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
              xmlns:tm="using:SearchUI.TemplateManager"
              x:Key="Ads.Extension_8_1_RTM">
    <Grid MinHeight="40"
          Margin="3, 0, 3, 10">
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto" />
            <RowDefinition Height="*" />
        </Grid.RowDefinitions>
        <TextBlock Grid.Row="0"
                   tm:RichText.Text="{Binding Extended:title.System_Search_Contents}"
                   HorizontalAlignment="Left"
                   TextWrapping="Wrap"
                   Style="{CustomResource Resources.Shared.LinkTextStyle}"/>
        <ItemsControl Grid.Row="1"
                      ItemsSource="{Binding Extended:text}">
            <ItemsControl.ItemsPanel>
                <ItemsPanelTemplate>
                    <StackPanel Orientation="Vertical" />
                </ItemsPanelTemplate>
            </ItemsControl.ItemsPanel>
            <ItemsControl.ItemTemplate>
                <DataTemplate>
                    <TextBlock tm:RichText.Text="{Binding System_Search_Contents}"
                               Style="{CustomResource Resources.Shared.SerpSecondaryTextStyle}" />
                </DataTemplate>
            </ItemsControl.ItemTemplate>
        </ItemsControl>
    </Grid>
</DataTemplate>