ps2_manager/PS2_Manager/AddGameWindow.axaml

66 lines
3.6 KiB
XML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<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="349"
Width="598"
CanResize="False"
x:Class="PS2_Manager.AddGameWindow"
Title="Install Game"
WindowStartupLocation="CenterScreen"
Loaded="Control_OnLoaded"
SizeChanged="Control_OnSizeChanged"
Background="#201c29"
SystemDecorations="None">
<Grid RowDefinitions="20, *">
<Grid Grid.Row="0">
<Border Background="#35313d"
PointerPressed="WindowDrag">
<Grid ColumnDefinitions="*, 20">
<TextBlock Name="WindowTitle" FontSize="12" Text="Install Game" Padding="8,0,0,0" VerticalAlignment="Center"/>
<Border Grid.Column="1" Background="#4b4753" PointerPressed="WindowClose">
<TextBlock FontSize="12" Text="×" HorizontalAlignment="Center" VerticalAlignment="Center"/>
</Border>
</Grid>
</Border>
</Grid>
<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="Images/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"/>
<Button Name="InstallButton" Content="Install Game" HorizontalAlignment="Center"
Background="#aa4de8"
Foreground="Black"
Click="InstallButton_OnClick"/>
<ProgressBar Name="InstallationProgressBar"/>
</StackPanel>
</Grid>
</Grid>
</Grid>
</Window>