<!-- The data template for LayoutDW in landscape mode -->
<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="Shared.LayoutDW_Landscape_8_1_RP">
    <Button Style="{CustomResource Resources.Shared.TopLevelButtonStyle}"
            Command="{Binding System_ConnectedSearch_ActivateCommand}">
        <Grid>
            <Grid.RowDefinitions>
                <RowDefinition Height="Auto" />
                <RowDefinition Height="Auto" />
                <RowDefinition Height="Auto" />
                <RowDefinition Height="Auto" />
            </Grid.RowDefinitions>
            <Rectangle Height="200"
                       Width="360"
                       Style="{CustomResource Resources.Shared.WeatherColorStyle}" />
            <Grid>
                <Grid.RowDefinitions>
                    <RowDefinition Height="Auto" />
                    <RowDefinition Height="Auto" />
                    <RowDefinition Height="Auto" />
                </Grid.RowDefinitions>
                <TextBlock Grid.Row="0"
                           Text="{Binding Path=Extended:primaryInfo.System_Search_Contents}"
                           Style="{CustomResource Resources.Shared.PrimaryInformationStyle}"
                           AutomationProperties.AutomationId="CurrentTemp"
                           Margin="30, 30, 0, 10" />
                <TextBlock Grid.Row="1"
                           Text="{Binding Path=Extended:secondaryInfo.System_Search_Contents}"
                           Style="{CustomResource Resources.Shared.PrimaryWhiteTextStyle}"
                           MaxLines="1"
                           AutomationProperties.AutomationId="CurrentForecast"
                           Margin="30, 0, 0, 0" />
                <TextBlock Grid.Row="2"
                           Text="{Binding Path=Extended:annotatedData[0].Extended:imageText.System_Search_Contents}"
                           Style="{CustomResource Resources.Shared.PrimaryWhiteTextStyle}"
                           AutomationProperties.AutomationId="Day1Temperature"
                           Margin="30, 0, 0, 30" />
            </Grid>
            <Image Source="{Binding Path=Extended:image.Extended:src}"
                   Width="90"
                   Height="90"
                   AutomationProperties.AutomationId="MainImage"
                   Margin="10, 30, 30, 0"
                   HorizontalAlignment="Right"
                   VerticalAlignment="Top"
                   Style="{CustomResource Resources.Shared.BaseImageStyle}" />
            <TextBlock Grid.Row="1"
                       tm:RichText.Text="{Binding System_ItemNameDisplay}"
                       MaxLines="2"
                       Style="{CustomResource Resources.Shared.SerpPrimaryTextStyle}"
                       Margin="0, 20, 0, 0"
                       AutomationProperties.AutomationId="Title" />
            <TextBlock Grid.Row="2"
                       Text="{Binding Path=Extended:attribution.System_Search_Contents}"
                       Style="{CustomResource Resources.Shared.SerpSecondaryTextStyle}"
                       Margin="0, 5, 0, 16"
                       AutomationProperties.AutomationId="Attribution" />
            <ContentControl Grid.Row="3"
                            IsTabStop="False"
                            VerticalAlignment="Top"
                            Content="{Binding}"
                            DataContext="{Binding Extended:appButton}"
                            ContentTemplateSelector="{CustomResource GenericDataTemplateSelector}" />
        </Grid>
    </Button>
</DataTemplate>