<?xml version="1.0" encoding="utf-8"?>
<UserControl x:Class="MyAuth.LoginPanel" mc:Ignorable="d" d:DesignHeight="300" d:DesignWidth="430" 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">

  <UserControl.Resources>
    <Style TargetType="TextBlock">
      <Setter Property="HorizontalAlignment" Value="Right" />
      <Setter Property="VerticalAlignment" Value="Center" />
      <Setter Property="Margin" Value="0 0 3 0" />
    </Style>
    <Style TargetType="TextBox">
      <Setter Property="Margin" Value="0 0 0 4" />
    </Style>
    <Style TargetType="PasswordBox">
      <Setter Property="Margin" Value="0 0 0 4" />
    </Style>
    <Style TargetType="Button">
      <Setter Property="Margin" Value="0 0 0 4" />
      <Setter Property="HorizontalAlignment" Value="Right" />
      <Setter Property="Padding" Value="20 4" />
    </Style>
    <Style TargetType="HyperlinkButton">
      <Setter Property="Margin" Value="0 0 0 4" />
      <Setter Property="HorizontalAlignment" Value="Right" />
    </Style>
  </UserControl.Resources>

  <Grid x:Name="LayoutRoot" Background="White">
    <Grid.ColumnDefinitions>
      <ColumnDefinition Width="180" />
      <ColumnDefinition Width="250" />
    </Grid.ColumnDefinitions>
    <Grid.RowDefinitions>
      <RowDefinition Height="auto" />
      <RowDefinition Height="auto" />
      <RowDefinition Height="auto" />
      <RowDefinition Height="auto" />
      <RowDefinition Height="auto" />
      <RowDefinition Height="auto" />
      <RowDefinition Height="auto" />
    </Grid.RowDefinitions>

    <!-- basic info/login -->
    <TextBlock Text="E-mail" />
    <TextBox Name="_txtEMail" Grid.Column="1" />
    <TextBlock Grid.Row="1" Text="Password" />
    <PasswordBox Name="_txtPassword" Grid.Row="1" Grid.Column="1" />

    <CheckBox Name="_chkRememberMe" IsChecked="True" Grid.Row="2" Grid.Column="1" Content="Remember me" />

    <Button Name="_btnLogin" IsEnabled="False" Grid.Row="3" Grid.Column="1" Content="Login" />

    <!-- spacer -->
    <TextBlock Grid.Row="4" Grid.Column="1" Height="24" />

    <!-- extra commands -->
    <HyperlinkButton Name="_btnForgotPassword" IsEnabled="False" Grid.Row="5" Grid.Column="1" Content="forgot your password?" />
    <HyperlinkButton Name="_btnNewAccount" Grid.Row="6" Grid.Column="1" Content="need to create an account?" />
  </Grid>
</UserControl>