<ResourceDictionary
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">

    <DataTemplate x:Key="PageHeaderText">
        <Grid Margin="12,0,0,0">
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="80"/>
                <ColumnDefinition Width="*"/>
            </Grid.ColumnDefinitions>
            <Image Margin="0" Source="{StaticResource AppLogoImage}" Width="70" Height="70" VerticalAlignment="Center" HorizontalAlignment="Left"/>
            <TextBlock Grid.Column="1" Text="{StaticResource AppTitle}" Style="{StaticResource AppTitleStyle}" VerticalAlignment="Center" HorizontalAlignment="Left" IsHitTestVisible="false" TextWrapping="NoWrap" />
        </Grid>
    </DataTemplate>
    <Style x:Key="FlipItemStyle" TargetType="FlipViewItem">
        <Setter Property="Margin" Value="24,0,24,0" />
        <Setter Property="Width" Value="340" />
    </Style>
    <Style x:Key="HeaderHostStyle" TargetType="Border">
        <Setter Property="Padding" Value="0"/>
    </Style>
    <DataTemplate x:Key="PageHeaderImage">
        <Image Source="{StaticResource HeaderImage}" Height="80" Stretch="Uniform"/>
    </DataTemplate>
    <DataTemplate x:Name="PageHeader">
        <ContentPresenter ContentTemplate="{StaticResource PageHeaderText}"/>
    </DataTemplate>
</ResourceDictionary>
