﻿<local:LayoutAwarePage
    x:Name="pageRoot"
    x:Class="PilotsHubApp.PleaseRegisterPage"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:local="using:PilotsHubApp"
    xmlns:data="using:PilotsHubApp.DataModel"
    xmlns:style="using:PilotsHubApp.Styling"    
    xmlns:common="using:PilotsHubApp.Common"
    xmlns:converters="using:PilotsHubApp.Converters"
    mc:Ignorable="d">

    <Grid Background="{ThemeResource ApplicationPageBackgroundThemeBrush}">
        <Grid.ChildrenTransitions>
            <TransitionCollection>
                <EntranceThemeTransition/>
            </TransitionCollection>
        </Grid.ChildrenTransitions>

        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="120"/>
            <ColumnDefinition Width="*"/>
        </Grid.ColumnDefinitions>

        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="*"/>
        </Grid.RowDefinitions>

        <!-- Page title, content, and link to registration site -->
        <Grid Grid.ColumnSpan="2">
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="120"/>
                <ColumnDefinition Width="*"/>
            </Grid.ColumnDefinitions>

            <Grid Grid.Column="1" Margin="0,60,30,40">
                <TextBlock Style="{StaticResource HeaderTextBlockStyle}" 
                           x:Name="Title" 
                           Text="Insider Hub (PH)" 
                           x:Uid="PleaseRegisterPageTitle" 
                           VerticalAlignment="Bottom" 
                           IsHitTestVisible="False" 
                           TextWrapping="Wrap" 
                           TextTrimming="None"/>
            </Grid>
        </Grid>

        <StackPanel  Grid.Column="1" Grid.Row="1" Margin="0,0,120,0">
            <TextBlock TextWrapping="WrapWholeWords">
                <Run x:Uid="PleaseRegisterPageContent" 
                     x:Name="PleaseRegisterPageContent" 
                     Text="To access the Insider Hub, please make sure you're registered with the Windows Insider Hub and connected to the internet. (PH)"/>
            </TextBlock>
            <!-- OSGTFS:957422 NavigateUri link should point to different places for internal/external -->
            <common:HandHyperlinkButton  
                x:Uid="PleaseRegisterPageHyperlinkURL" 
                NavigateUri="http://aka.ms/Pns4ty" 
                Padding="0">
                <TextBlock 
                    x:Uid="PleaseRegisterPageHyperlink" 
                    Text="Register here (PH)"/>
            </common:HandHyperlinkButton>

            <Button
                Padding="10"
                Command="{Binding ReloadCommand}" 
                Style="{StaticResource CommonButton}"
                Content="Reload (PH)"
                x:Uid="ButtonReload"
                x:Name="ButtonReload"
                HorizontalAlignment="Left" 
                VerticalAlignment="Top" 
                Grid.Row="2"
                Grid.Column="1"
                Margin="-3,20,0,0" 
                TabIndex="0"/>
        </StackPanel>        
    </Grid>
</local:LayoutAwarePage>

