<Window xmlns="https://github.com/avaloniaui"
        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"
        mc:Ignorable="d" d:DesignWidth="800" d:DesignHeight="450"
        Height="389"
        Width="598"
        CanResize="False"
        x:Class="PS2_Manager.AddGameWindow"
        Title="Install Game"
        WindowStartupLocation="CenterScreen"
        Loaded="Control_OnLoaded"
        Background="#201c29">
                <Grid Grid.Row="1" ColumnDefinitions="Auto,Auto,*" Margin="20">
                        <!-- PS2 Cover -->
                        <Border Width="205" Height="292" Background="Black" CornerRadius="5" HorizontalAlignment="Left"
                                PointerPressed="CoverImage_OnPointerPressed">
                                <Image Name="CoverImage" Source="Assets/missing.png" Stretch="UniformToFill"/>
                        </Border>

                        <!-- Spacer -->
                        <Rectangle Width="30" Grid.Column="1"/>

                        <!-- Form, centered vertically -->
                        <Grid Grid.Column="2">
                                <Grid.RowDefinitions>
                                        <RowDefinition Height="*"/>
                                        <RowDefinition Height="Auto"/>
                                        <RowDefinition Height="*"/>
                                </Grid.RowDefinitions>

                                <StackPanel Grid.Row="1" Width="300" Spacing="10" HorizontalAlignment="Left">
                                        <TextBlock Text="Game Name"/>
                                        <TextBox Name="GameNameBox" MaxLength="32" TextChanged="GameNameBox_OnTextChanged"/>

                                        <TextBlock Text="Serial Number"/>
                                        <TextBox Name="SerialBox" IsEnabled="False"/>

                                        <TextBlock Text="ISO Path"/>
                                        <TextBox Name="IsoPathBox" IsEnabled="False"/>
                                        
                                        <TextBlock Text="Installation Method"/>
                                        <ComboBox Name="InstallationMethodBox" Margin="5,0" HorizontalAlignment="Stretch" SelectionChanged="InstallationMethodBox_OnSelectionChanged">
                                        </ComboBox>
                                
                                        <Button Name="InstallButton" Content="Install Game" HorizontalAlignment="Center"
                                                Background="#aa4de8"
                                                Foreground="Black"
                                                Click="InstallButton_OnClick"/>
                                        <ProgressBar Name="InstallationProgressBar"/>
                                </StackPanel>
                        </Grid>
                </Grid>
</Window>
