name : News.Home_8_1_RP-f7a1fb30.xaml
<!-- This layout template suppressed top level GridViewItem in Landscape mode and allowing nested GridView.  It uses single click target top level style for portrait and snap mode
     The underlying serp grid has the following cell size in various view modes  
     The number is [item size] + [extra margin]
        =========================================================
        |    View Mode          |   Cell Width  |  Cell Height  |
        =========================================================
        |   Horizontal          |   400 + 10    |   300         |
        |   Horizontal Large    |   400 + 20    |   300         |
        |   Vertical            |   630         |   20          |
        |   Verical Large       |   630         |   20          |
        |   Vertical Narrow     |   320         |   20          |
        =========================================================
    
    This layout template sets the content control to the following sizes for different view modes
    The size occupied by the content control is shown below as determined by the row span and column span set on the content control
        ======================================================================================
        |    View Mode          |   Content Width           |  Content Height                |
        |                       |  [cell width x col span]  |  [cell height x row span]      |
        ======================================================================================
        |   Horizontal          |   410 x 1 = 410           |   300 x  2 = 600               |
        |   Horizontal Large    |   420 x 1 = 420           |   300 x  2 = 600               |
        |   Vertical            |   630 x 1 = 630           |    20 x 15 = 300 = (280 + 20)  |
        |   Verical Large       |   630 x 1 = 630           |    20 x 15 = 300 = (280 + 20)  |
        |   Vertical Narrow     |   320 x 1 = 320           |    20 x 16 = 320 = (300 + 20)  |
        ======================================================================================
    -->
<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="News.Home_8_1_RP">
    <Style x:Key="Horizontal"
           TargetType="sc:ResultGridViewItem"
           BasedOn="{CustomResource Resources.Shared.SerpGridViewItem.Suppressed.Horizontal}">
        <Setter Property="VariableSizedWrapGrid.ColumnSpan"
                Value="1" />
        <Setter Property="VariableSizedWrapGrid.RowSpan"
                Value="2" />
    </Style>
    <Style x:Key="HorizontalLarge"
           TargetType="sc:ResultGridViewItem"
           BasedOn="{CustomResource Resources.Shared.SerpGridViewItem.Suppressed.HorizontalLarge}">
        <Setter Property="VariableSizedWrapGrid.ColumnSpan"
                Value="1" />
        <Setter Property="VariableSizedWrapGrid.RowSpan"
                Value="2" />
    </Style>
    <Style x:Key="Vertical"
           TargetType="sc:ResultGridViewItem"
           BasedOn="{CustomResource Resources.Shared.SerpGridViewItem.Vertical}">
        <Setter Property="VariableSizedWrapGrid.ColumnSpan"
                Value="1" />
        <Setter Property="VariableSizedWrapGrid.RowSpan"
                Value="15" />
        <Setter Property="ActivationOverridePath"
                Value="Extended:firstarticle.Extended:headline.System_ConnectedSearch_ActivateCommand" />
    </Style>
    <Style x:Key="VerticalLarge"
           TargetType="sc:ResultGridViewItem"
           BasedOn="{CustomResource Resources.Shared.SerpGridViewItem.VerticalLarge}">
        <Setter Property="VariableSizedWrapGrid.ColumnSpan"
                Value="1" />
        <Setter Property="VariableSizedWrapGrid.RowSpan"
                Value="15" />
        <Setter Property="ActivationOverridePath"
                Value="Extended:firstarticle.Extended:headline.System_ConnectedSearch_ActivateCommand" />
    </Style>
    <Style x:Key="VerticalNarrow"
           TargetType="sc:ResultGridViewItem"
           BasedOn="{CustomResource Resources.Shared.SerpGridViewItem.VerticalNarrow}">
        <Setter Property="VariableSizedWrapGrid.ColumnSpan"
                Value="1" />
        <Setter Property="VariableSizedWrapGrid.RowSpan"
                Value="16" />
        <Setter Property="ActivationOverridePath"
                Value="Extended:firstarticle.Extended:headline.System_ConnectedSearch_ActivateCommand" />
    </Style>

</ResourceDictionary>

© 2026 UnknownSec