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

    <!-- Listing 19-5 -->
    <Grid>
        <Grid.Background>
            <LinearGradientBrush StartPoint="0.5,0" EndPoint="0.5,1">
                <GradientStop Color="Black" Offset="0"/>
                <GradientStop Color="#FF7785DE" Offset="0.148"/>
                <GradientStop Color="#FF323232" Offset="0.15"/>
                <GradientStop Color="Black" Offset="1"/>
            </LinearGradientBrush>
        </Grid.Background>

        <StackPanel HorizontalAlignment="Left" VerticalAlignment="Top"
                    Margin="50,50,0,0"
                    Orientation="Horizontal">
            <TextBlock Text="Nazwa użytkownika" FontSize="14.667" Foreground="Black"
                       Width="130" VerticalAlignment="Center" />

            <!-- Listing 19-6 -->
            <TextBox x:Name="usernameText" FontSize="14.667" Width="80"
                     TextChanged="usernameText_TextChanged" />
        </StackPanel>

        <StackPanel HorizontalAlignment="Left" VerticalAlignment="Top"
                    Margin="50,100,0,0"
                    Orientation="Horizontal">
            <TextBlock Text="Hasło" FontSize="14.667" Foreground="Black"
                       Width="130" VerticalAlignment="Center" />
            <PasswordBox x:Name="passwordText"
                         Width="150" Margin="10,10,10,10" />
        </StackPanel>
        <Button x:Name="loginButton" Content="Button" HorizontalAlignment="Left" Margin="707,278,0,0" VerticalAlignment="Top"/>

    </Grid>
</Page>