<!-- This template is used for Image Answers that shows up with other web algo results. 
     It binds to title, Children, and Extended:image properties.-->
<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="Multimedia.ImageAnswer_Snap_8_1_RP">
    <Button Style="{CustomResource Resources.Shared.TopLevelButtonStyle}"
            Command="{Binding System_ConnectedSearch_ActivateCommand}">
        <Grid>
            <Grid.RowDefinitions>
                <RowDefinition Height="Auto" />
                <RowDefinition Height="*" />
            </Grid.RowDefinitions>

            <TextBlock Grid.Row="0"
                       MaxLines="1"
                       Margin="0, 0, 0, 15"
                       Style="{CustomResource Resources.Shared.SerpPrimaryTextStyle}"
                       tm:RichText.Text="{Binding Extended:text.Extended:title}"
                       AutomationProperties.AutomationId="Title" />

            <ContentControl Grid.Row="1"
                            DataContext="{Binding Extended:images.Extended:verticalNarrow}"
                            Style="{CustomResource Resources.Shared.ImageCollage}"
                            HorizontalAlignment="Left"
                            VerticalAlignment="Top" />
        </Grid>
    </Button>
</DataTemplate>