<wpf:ThemableWindow x:Class="InABox.Wpf.Editors.PasswordDialog"
        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"
        xmlns:local="clr-namespace:InABox.Wpf.Editors"
        xmlns:wpf="clr-namespace:InABox.Wpf"
        mc:Ignorable="d"
        Title="Set Password"
        SizeToContent="WidthAndHeight">
    <Grid Margin="5">
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="Auto"/>
        </Grid.RowDefinitions>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="Auto" />
            <ColumnDefinition Width="Auto" />
        </Grid.ColumnDefinitions>

        <Label Grid.Row="0" 
               Grid.Column="0"
               VerticalContentAlignment="Center"
               Content="Enter Password:"></Label>
        <PasswordBox Grid.Row="0"
                     Grid.Column="1"
                     MinWidth="200" 
                     Height="30"
                     VerticalContentAlignment="Center"
                     Background="LightYellow" 
                     x:Name="PasswordEditor"></PasswordBox>
        
        <DockPanel Grid.Row="1" Grid.Column="0" Grid.ColumnSpan="2">
            <Button DockPanel.Dock="Right" Content="Cancel"  Margin="5,5,0,0" Width="80" Height="30" Click="Cancel_Click"></Button>
            <Button 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>
