﻿<UserControl x:ConnectionId='1'
    x:Class="Microsoft.Xbox.SmartGlass.Controls.TextEntry"
    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"
    mc:Ignorable="d"
    d:DesignWidth="683" d:DesignHeight="384"
                     
                         >

    <Border Padding="20" Background="Black">
        <Grid x:ConnectionId='2' x:Name="TextEntryGrid">
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="*" />
                <ColumnDefinition Width="Auto" />
            </Grid.ColumnDefinitions>
            <Grid.RowDefinitions>
                <RowDefinition Height="Auto" />
                <RowDefinition Height="Auto" />
                <RowDefinition Height="Auto" />
            </Grid.RowDefinitions>

            <TextBlock x:ConnectionId='3' x:Name="PromptLabel" Grid.Column="0" Grid.Row="0" Grid.ColumnSpan="2" Margin="0,0,0,10" Foreground="White" FontSize="16">Please enter some text:</TextBlock>

            <TextBox x:ConnectionId='4' x:Name="TextField" Grid.Column="0" Grid.Row="1" Padding="4" MaxHeight="240" FontSize="18" Foreground="Black" FlowDirection="LeftToRight" />
            <PasswordBox x:ConnectionId='5' x:Name="PasswordField" Grid.Column="0" Grid.Row="1" Padding="4" FontSize="18" Foreground="Black" Visibility="Collapsed" />
            <Button x:ConnectionId='6' Content="Enter" Grid.Column="1" Grid.Row="1"  Margin="-3" BorderThickness="1" BorderBrush="#3A3A3A" Background="#3A3A3A" HorizontalAlignment="Stretch" VerticalAlignment="Stretch"                      />

            <Button x:ConnectionId='7' Content="Tap here to close the keyboard." Grid.Row="2" Grid.Column="0" Grid.ColumnSpan="2" Margin="0 20" BorderBrush="Transparent" Foreground="DarkGray" HorizontalAlignment="Center"                      />
        </Grid>
    </Border>
</UserControl>

