<wpf:ThemableWindow x:Class="InABox.DynamicGrid.DynamicFormDesignLength"
        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:syncfusion="http://schemas.syncfusion.com/wpf"
        xmlns:wpf="clr-namespace:InABox.Wpf"
        mc:Ignorable="d"
        Title="FormDesignerLength" Height="150" Width="300" Padding="5" WindowStartupLocation="CenterScreen">
    <Grid>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="Auto" />
            <ColumnDefinition Width="*" />
        </Grid.ColumnDefinitions>
        <Grid.RowDefinitions>
            <RowDefinition Height="*" />
            <RowDefinition Height="*" />
            <RowDefinition Height="40" />
        </Grid.RowDefinitions>
        <Label Grid.Row="0" Grid.Column="0" Content="Type" Margin="5" />
        <ComboBox x:Name="Type" Grid.Row="0" Grid.Column="1" Margin="5" SelectedValuePath="Key"
                  DisplayMemberPath="Value" SelectionChanged="Type_SelectionChanged" />
        <Label Grid.Row="1" Grid.Column="0" Content="Value" Margin="5" />
        <syncfusion:DoubleTextBox x:Name="Value" Grid.Row="1" Grid.Column="1" Margin="5" VerticalAlignment="Stretch" />
        <DockPanel Grid.Row="2" Grid.Column="0" Grid.ColumnSpan="3">
            <Button DockPanel.Dock="Right" Content="Cancel" Width="80" Margin="5" Click="CancelClick" />
            <Button DockPanel.Dock="Right" Content="OK" Width="80" Margin="5" Click="OKClick" />
            <Label DockPanel.Dock="Left" />
        </DockPanel>
    </Grid>
</wpf:ThemableWindow>