<wpf:ThemableWindow x:Class="InABox.DynamicGrid.SubQueryNodePopup"
        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"
        xmlns:wpf="clr-namespace:InABox.Wpf"
        mc:Ignorable="d"
        Title="Edit Subquery" Height="450" Width="800"
                    WindowStartupLocation="CenterScreen">
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="*"/>
            <RowDefinition Height="Auto"/>
        </Grid.RowDefinitions>
        <Border Grid.Row="0" BorderBrush="DarkGray" Margin="5" BorderThickness="1">
            <ScrollViewer VerticalScrollBarVisibility="Auto">
                <Grid x:Name="Grid" Margin="5">
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="Auto"/>
                        <ColumnDefinition Width="*"/>
                    </Grid.ColumnDefinitions>
                    <Grid.RowDefinitions>
                        <RowDefinition Height="Auto"/>
                        <RowDefinition Height="Auto"/>
                        <RowDefinition Height="*"/>
                    </Grid.RowDefinitions>

                    <Label Grid.Row="0" Grid.Column="0" Content="Table Name:" Margin="0,0,5,0"/>
                    <Label Grid.Row="1" Grid.Column="0" Content="Return Value:" Margin="0,0,5,0"/>

                    <ComboBox x:Name="Type" Grid.Row="0" Grid.Column="1" Margin="0,0,0,5" Padding="5"/>
                    <Button x:Name="Property" Grid.Row="1" Grid.Column="1" Margin="0,0,0,5" Padding="5,5,5,5"
                            VerticalAlignment="Stretch" HorizontalContentAlignment="Left" VerticalContentAlignment="Center"
                            BorderBrush="#ACACAC"
                            Click="Property_Click"
                            Content=" ">
                        <Button.Background>
                            <LinearGradientBrush StartPoint="0,0" EndPoint="0,1">
                                <GradientStop Color="#F0F0F0" Offset="0.0"/>
                                <GradientStop Color="#E5E5E5" Offset="1.0"/>
                            </LinearGradientBrush>
                        </Button.Background>
                    </Button>
                </Grid>
            </ScrollViewer>
        </Border>
        <DockPanel Grid.Row="1" Grid.Column="0" LastChildFill="False">
            <Button Content="Cancel" Click="Cancel_Click" DockPanel.Dock="Right" Margin="5" Width="50" Padding="0,5"/>
            <Button Content="OK" Click="OK_Click" DockPanel.Dock="Right" Margin="5,5,0,5" Width="50" Padding="0,5"/>
        </DockPanel>
    </Grid>
</wpf:ThemableWindow>
