<Page
    x:Class="Graphics.MainPage"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:local="using:Graphics"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d">

    <Page.Resources>
        <!-- Listing 19-42 -->
        <Style x:Key="HeadingTextStyle" TargetType="TextBlock">
            <Setter Property="FontFamily" Value="Calibri" />
            <Setter Property="FontSize" Value="20" />
        </Style>
    </Page.Resources>

    <Grid Background="{StaticResource ApplicationPageBackgroundThemeBrush}">

        <Grid HorizontalAlignment="Left" VerticalAlignment="Top" Width="100" Height="100">
            <!-- Listing 19-40 -->
            <Image Source="MyBitmap.png" />

        </Grid>

        <Grid HorizontalAlignment="Left" VerticalAlignment="Top" Margin="207,151,0,0">
            <!-- Listing 19-41 -->
            <TextBlock Text="Malujemy" FontSize="48" FontWeight="Bold">
                <TextBlock.Foreground>
                    <ImageBrush ImageSource="Pattern.jpg" Stretch="UniformToFill"/>
                </TextBlock.Foreground>
            </TextBlock>
        </Grid>

        <Grid HorizontalAlignment="Left" VerticalAlignment="Top" Margin="207,251,0,0">
            <!-- Listing 19-43 -->
            <TextBlock Style="{StaticResource PageHeaderTextStyle}"
           Text="Moja aplikacja" />
        </Grid>
    </Grid>
</Page>
