<Window xmlns="https://github.com/avaloniaui"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        x:Class="Minint.Views.PatternDialog"
        Title="Generate Pattern"
        Width="640"
        Height="520"
        MinWidth="480"
        MinHeight="400"
        WindowStartupLocation="CenterOwner"
        CanResize="True">
    <StackPanel Margin="16" Spacing="8">
        <Grid ColumnDefinitions="100,*" RowDefinitions="Auto,Auto,Auto,Auto,Auto,Auto" RowSpacing="6" ColumnSpacing="8">
            <TextBlock Grid.Row="0" Grid.Column="0" Text="Pattern:" VerticalAlignment="Center"/>
            <ComboBox Grid.Row="0" Grid.Column="1" x:Name="PatternCombo" HorizontalAlignment="Stretch"/>

            <TextBlock Grid.Row="1" Grid.Column="0" Text="Color 1:" VerticalAlignment="Center"/>
            <ColorPicker Grid.Row="1" Grid.Column="1" x:Name="Color1Picker" IsAlphaVisible="False"/>

            <TextBlock Grid.Row="2" Grid.Column="0" Text="Color 2:" VerticalAlignment="Center"/>
            <ColorPicker Grid.Row="2" Grid.Column="1" x:Name="Color2Picker" IsAlphaVisible="False"/>

            <TextBlock Grid.Row="3" Grid.Column="0" Text="Param 1:" VerticalAlignment="Center"/>
            <NumericUpDown Grid.Row="3" Grid.Column="1" x:Name="Param1"
                           Value="8" Minimum="1" Maximum="256" FormatString="0"
                           ToolTip.Tip="Cell/stripe/ring size"/>

            <TextBlock Grid.Row="4" Grid.Column="0" Text="Param 2:" VerticalAlignment="Center"/>
            <NumericUpDown Grid.Row="4" Grid.Column="1" x:Name="Param2"
                           Value="8" Minimum="1" Maximum="256" FormatString="0"
                           ToolTip.Tip="Tile height (for Tile pattern)"/>
        </Grid>

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