<wpf:ThemableWindow x:Class="InABox.DynamicGrid.SignaturePadWindow"
        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"
        xmlns:sf="http://schemas.syncfusion.com/wpf"
        mc:Ignorable="d"
        Title="Enter Signature:" Height="550" Width="800" ResizeMode="NoResize">
    <Grid Background="LightGray">
        <Grid.RowDefinitions>
            <RowDefinition Height="*"/>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="*"/>
            <RowDefinition Height="Auto"/>
        </Grid.RowDefinitions>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="*"/>
            <ColumnDefinition Width="Auto"/>
            <ColumnDefinition Width="*"/>
        </Grid.ColumnDefinitions>

        <Border Grid.Row="1" Grid.Column="1" Background="White">
            <InkCanvas x:Name="Editor" Width="400" Height="400" Background="Transparent" StrokeCollected="Editor_StrokeCollected"/>
        </Border>

        <DockPanel x:Name="NameContainer" Grid.Row="2" Grid.Column="1" Margin="0,5,0,0">
            <Label Content="Name: "
                   DockPanel.Dock="Left"/>
            <TextBox x:Name="NameEditor"
                     DockPanel.Dock="Left"
                     VerticalContentAlignment="Center"/>
        </DockPanel>

        <DockPanel Grid.Row="4" Grid.Column="0" Grid.ColumnSpan="3" LastChildFill="False">
            <Button Width="80" Padding="5" Margin="5" DockPanel.Dock="Left" Content="Clear" Click="Clear_Click"/>
            <Button Width="80" Padding="5" Margin="0,5,4,5" DockPanel.Dock="Right" Content="Cancel" Click="Cancel_Click"/>
            <Button Width="80" Padding="5" Margin="0,5,5,5" DockPanel.Dock="Right" Content="OK" Click="OK_Click"/>
        </DockPanel>
    </Grid>
</wpf:ThemableWindow>
