name : Web.DeepLinksList_8_1_RP-515c5925.xaml
<!-- Child template used for displaying deeplinks in Dcard -->
<!-- The item width of the deep link is set on the parent controls tag property and referenced in this template -->
<ResourceDictionary 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="Web.DeepLinksList_8_1_RP">

    <Style x:Key="Local.DeepLinkListItemContainerStyle"
           TargetType="GridViewItem"
           BasedOn="{CustomResource Resources.Shared.NestedGridViewItemStyle}">
        <Setter Property="Margin"
                Value="0, 0, 10, 4" />
        <Setter Property="tm:SetterBinding.Setters">
            <Setter.Value>
                <SetterBaseCollection>
                    <Setter Property="AutomationProperties.Name">
                        <Setter.Value>
                            <tm:SetterBinding Path="Extended:title.System_Search_Contents" />
                        </Setter.Value>
                    </Setter>
                </SetterBaseCollection>
            </Setter.Value>
        </Setter>
    </Style>

    <ItemsPanelTemplate x:Key="Local.DeepLinkHorizontalItemPanelTemplate">
        <WrapGrid Orientation="Vertical"
                  MaximumRowsOrColumns="3"
                  ItemHeight="60"
                  ItemWidth="185" />
    </ItemsPanelTemplate>

    <ItemsPanelTemplate x:Key="Local.DeepLinkVerticalItemPanelTemplate">
        <WrapGrid Orientation="Vertical"
                  MaximumRowsOrColumns="3"
                  ItemHeight="60"
                  ItemWidth="310" />
    </ItemsPanelTemplate>

    <Style x:Key="Horizontal"
           TargetType="sc:ResultContentControl">
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="sc:ResultContentControl">
                    <sc:ResultGridView ItemsSource="{Binding Extended:deepLink}"
                                       ItemTemplateSelector="{CustomResource GenericDataTemplateSelector}"
                                       ItemContainerStyle="{StaticResource Local.DeepLinkListItemContainerStyle}"
                                       Style="{CustomResource Resources.Shared.HorizontalModeNestedGridViewStyle}"
                                       ItemsPanel="{StaticResource Local.DeepLinkHorizontalItemPanelTemplate}"
                                       Padding="0, 0, -10, -4" />
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    
    <Style x:Key="Vertical"
           TargetType="sc:ResultContentControl">
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="sc:ResultContentControl">
                    <sc:ResultGridView ItemsSource="{Binding Extended:deepLink}"
                                       ItemTemplateSelector="{CustomResource GenericDataTemplateSelector}"
                                       ItemContainerStyle="{StaticResource Local.DeepLinkListItemContainerStyle}"
                                       Style="{CustomResource Resources.Shared.VerticalModeNestedGridViewStyle}"
                                       ItemsPanel="{StaticResource Local.DeepLinkVerticalItemPanelTemplate}"
                                       Padding="0, 0, -10, -4" />
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
</ResourceDictionary>

© 2026 UnknownSec