<wpf:ThemableWindow x:Class="InABox.Wpf.Editors.TextEdit"
                    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
                    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
                    xmlns:local="clr-namespace:InABox.Wpf.Editors"
                    xmlns:wpf="clr-namespace:InABox.Wpf"
                    mc:Ignorable="d"
                    Title="Set Password"
                    SizeToContent="WidthAndHeight" 
                    WindowStartupLocation="CenterScreen"
                    Loaded="ThemableWindow_Loaded">
    <Grid Margin="5">
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
        </Grid.RowDefinitions>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="Auto" />
            <ColumnDefinition Width="*" />
        </Grid.ColumnDefinitions>

        <Label Grid.Row="0"
               x:Name="Prompt"
               Grid.Column="0"
               VerticalContentAlignment="Center"
               Content="Enter Text:">
        </Label>
        <TextBox Grid.Row="0"
                 Grid.Column="1"
                 MinWidth="200"
                 Height="30"
                 VerticalContentAlignment="Center"
                 Background="LightYellow"
                 x:Name="TextEditor"
                 KeyDown="TextEditor_KeyDown"/>


        <DockPanel Grid.Row="1" Grid.Column="0" Grid.ColumnSpan="2">
            <Button x:Name="Cancel" DockPanel.Dock="Right" Content="Cancel" Margin="5,5,0,0" Width="80" Height="30"
                    Click="Cancel_Click">
            </Button>
            <Button x:Name="OK" DockPanel.Dock="Right" Content="Ok" Margin="5,5,0,0" Width="80" Height="30"
                    Click="OK_Click">
            </Button>
            <Label DockPanel.Dock="Left"></Label>
        </DockPanel>
    </Grid>
</wpf:ThemableWindow>