<?xml version="1.0" encoding="utf-8"?>
<UserControl
    x:Class="Sonex.Client.Layouts.TitlePage"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:local="using:Sonex.Client.Layouts"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d">

    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="*"/>
        </Grid.RowDefinitions>

        <Grid Grid.Row="0"
              Background="{ThemeResource LayerFillColorAltBrush}"
                BorderThickness="0,0,0,0.5"
                BorderBrush="{ThemeResource SurfaceStrokeColorFlyoutBrush}"
                Padding="16,0,16,0">
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="Auto"/>
                <ColumnDefinition Width="*"/>
            </Grid.ColumnDefinitions>

            <TextBlock Text="{x:Bind Title, Mode=OneWay}"
                       VerticalAlignment="Center"
                       FontWeight="SemiBold"/>

            <CommandBar x:Name="HeaderCommandBar"
                        Grid.Column="1"
                        OverflowButtonVisibility="Collapsed"
                        HorizontalAlignment="Right"
                        DefaultLabelPosition="Right"
                        VerticalAlignment="Center"/>
        </Grid>

        <ContentPresenter Grid.Row="1"
                          Content="{x:Bind BodyContent, Mode=OneWay}"/>
    </Grid>
</UserControl>
