<Window x:Class="InABox.DynamicGrid.DynamicFormDesignWindow"
        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.DynamicGrid"
        mc:Ignorable="d"
        Title="Form Designer" Height="800" Width="1000" Padding="5"
                         KeyDown="DynamicFormWindow_KeyDown">
    <Grid Margin="5">

        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="*" />
        </Grid.ColumnDefinitions>

        <Grid.RowDefinitions>
            <RowDefinition Height="*" />
            <RowDefinition Height="Auto" />
        </Grid.RowDefinitions>

        <Border Grid.Row="0" Grid.Column="0" Margin="5" BorderBrush="Gray" BorderThickness="0.75" Background="Silver">
            <ScrollViewer>
                <local:DynamicFormDesignGrid x:Name="Preview"/>
            </ScrollViewer>
        </Border>

        <DockPanel Grid.Row="1">

            <Button x:Name="SwitchView" Content="Preview" Width="80" Height="35" Margin="5" Click="SwitchView_Click"
                    DockPanel.Dock="Left" />
            <Button x:Name="Cancel" Content="Cancel" Width="80" Height="35" Margin="5" Click="Cancel_Click"
                    DockPanel.Dock="Right" />
            <Button x:Name="OK" Content="OK" Width="80" Height="35" Margin="5" Click="OK_Click" DockPanel.Dock="Right" />
            <Label Content="" DockPanel.Dock="Left" />

        </DockPanel>

    </Grid>

</Window>