name : Web.Algo_Generic_8_1_RP-63ae5c11.xaml
<!-- The data template for generic web algo that can stretch to container width-->
<!-- This is used for displaying other page web algo as well as snap mode for first page, dcard and appified algo -->
<!-- This template is configured as follows
    Title - 3 lines max
    Metadata - 2 lines max
    Facts row - TBD
    Snippet - variable
    -->
<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="Web.Algo_Generic_8_1_RP">
    <Grid Style="{CustomResource Resources.Shared.TopLevelDataTemplateRootStyle}">
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
            <RowDefinition />
        </Grid.RowDefinitions>
        <!-- Title -->
        <!-- The negative top margin here is to align the title text with top of images in first page. -->
        <TextBlock tm:RichText.Text="{Binding System_ItemNameDisplay}"
                   Grid.Row="0"
                   Margin="0, -3, 0, 5"
                   MaxLines="3"
                   Style="{CustomResource Resources.Shared.SerpPrimaryTextStyle}"
                   AutomationProperties.AutomationId="Title" />
        <!-- Metadata -->
        <ContentControl Grid.Row="1"
                        Margin="0, 0, 0, 5"
                        Content="{Binding Extended:metadata}"
                        Template="{Binding Path=Extended:metadata.System_ConnectedSearch_RenderingTemplate, Converter={CustomResource StringToResource}}"
                        Tag="2" />
        <!-- Facts row -->
        <ContentControl Grid.Row="2"
                        Content="{Binding}"
                        DataContext="{Binding Extended:facts}"
                        ContentTemplateSelector="{CustomResource GenericDataTemplateSelector}" />
        <!-- Snippet -->
        <TextBlock tm:RichText.Text="{Binding System_Search_AutoSummary}"
                   AutomationProperties.AutomationId="Snippet"
                   Grid.Row="3"
                   Style="{CustomResource Resources.Shared.SerpSecondaryTextStyle}" />
    </Grid>
</DataTemplate>

© 2026 UnknownSec