<Window x:Class="InABox.DynamicGrid.DynamicContentDialog"
        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.DynamicGrid"
        mc:Ignorable="d" Height="450" Width="800"
        x:Name="Window" WindowStartupLocation="CenterScreen">
    <DockPanel Margin="5">
        <DockPanel x:Name="Buttons" DockPanel.Dock="Bottom" LastChildFill="False">
            <Button x:Name="CancelButton" Click="CancelButton_Click"
                    Content="Cancel"
                    Margin="5,5,0,0" Padding="5" MinWidth="60"
                    DockPanel.Dock="Right"/>
            <Button x:Name="OKButton" Click="OKButton_Click"
                    Content="OK"
                    Margin="5,5,0,0" Padding="5" MinWidth="60"
                    DockPanel.Dock="Right"
                    IsEnabled="{Binding ElementName=Window,Path=CanSave}"/>
        </DockPanel>
        <ContentPresenter x:Name="Presenter" DockPanel.Dock="Top" />
    </DockPanel>
</Window>
