<!-- Child template for rating stars in an ad. -->
<DataTemplate xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
              xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
              xmlns:sc="using:SearchUI.Controls"
              xmlns:tm="using:SearchUI.TemplateManager"
              x:Key="Ads.MerchantRating_8_1_RP">
    <Grid MinHeight="40"
          Margin="3, 0, 3, 10"
          tm:ClippingGuard.IsEnabled="True">
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto" />
            <RowDefinition Height="*" />
        </Grid.RowDefinitions>
        <TextBlock Grid.Row="0"
                   tm:RichText.Text="{Binding Extended:title.System_Search_Contents}"
                   Style="{CustomResource Resources.Shared.LinkTextStyle}"/>
        <Grid Grid.Row="1">
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="Auto" />
                <ColumnDefinition Width="*" />
            </Grid.ColumnDefinitions>
            <sc:ResultContentControl Margin="0, 0, 4, 0"
                                     Content="{Binding}"
                                     DataContext="{Binding Extended:rating}" />
            <TextBlock Grid.Column="1"
                       tm:RichText.Text="{Binding Extended:text.System_Search_Contents}"
                       Style="{CustomResource Resources.Shared.SerpSecondaryTextStyle}" />
        </Grid>
    </Grid>
</DataTemplate>