<Window xmlns="https://github.com/avaloniaui"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        x:Class="Minint.Views.NewContainerDialog"
        Title="New Container"
        Width="300"
        WindowStartupLocation="CenterOwner"
        CanResize="False"
        SizeToContent="Height">
    <StackPanel Margin="16" Spacing="12">
        <TextBlock Text="Canvas size:" FontWeight="SemiBold"/>

        <Grid ColumnDefinitions="Auto,*" RowDefinitions="Auto,Auto" RowSpacing="8" ColumnSpacing="8">
            <TextBlock Grid.Row="0" Grid.Column="0" Text="Width:" VerticalAlignment="Center"/>
            <NumericUpDown Grid.Row="0" Grid.Column="1"
                           x:Name="WidthInput"
                           Value="64" Minimum="1" Maximum="4096" Increment="1"
                           FormatString="0"/>

            <TextBlock Grid.Row="1" Grid.Column="0" Text="Height:" VerticalAlignment="Center"/>
            <NumericUpDown Grid.Row="1" Grid.Column="1"
                           x:Name="HeightInput"
                           Value="64" Minimum="1" Maximum="4096" Increment="1"
                           FormatString="0"/>
        </Grid>

        <StackPanel Orientation="Horizontal" HorizontalAlignment="Right" Spacing="8" Margin="0,8,0,0">
            <Button Content="Create" x:Name="OkButton" IsDefault="True" Padding="16,6"/>
            <Button Content="Cancel" x:Name="CancelButton" IsCancel="True" Padding="16,6"/>
        </StackPanel>
    </StackPanel>
</Window>
