ps2_manager/PS2_Manager/MainWindow.axaml
2025-04-22 01:09:48 +02:00

85 lines
4.5 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"
xmlns:local="clr-namespace:PS2_Manager.Core"
mc:Ignorable="d" d:DesignWidth="800" d:DesignHeight="450"
x:Class="PS2_Manager.MainWindow"
Title="PS2_Manager"
Background="Transparent"
SystemDecorations="None"
Width="990"
Height="520"
WindowStartupLocation="CenterScreen"
Loaded="Control_OnLoaded">
<Grid ColumnDefinitions="680, 10, 300" Background="Transparent">
<Grid Grid.Column="0" RowDefinitions="20, *">
<Grid Grid.Row="0">
<Border Background="#35313d"
PointerPressed="WindowDrag">
<Grid ColumnDefinitions="*, 20">
<TextBlock Name="WindowTitle" FontSize="12" Padding="8,0,0,0" VerticalAlignment="Center"/>
<Border Grid.Column="1" Background="#625f69" PointerPressed="WindowClose">
<TextBlock FontSize="12" Text="×" HorizontalAlignment="Center" VerticalAlignment="Center"/>
</Border>
</Grid>
</Border>
</Grid>
<Grid Grid.Row="1">
<Border Background="#201c29" CornerRadius="0,0,10,10">
<Grid ColumnDefinitions="300, 1, *">
<Border CornerRadius="10" Margin="5">
<ListBox Name="GamesList" Background="Transparent"
SelectionChanged="GamesList_OnSelectionChanged"
>
<ListBox.ItemTemplate>
<DataTemplate x:DataType="local:Game">
<Border Background="Transparent" Padding="10">
<Border.ContextMenu>
<ContextMenu>
<MenuItem Header="Remove Game" Click="DeleteButton"/>
<MenuItem Header="Show Details"/>
</ContextMenu>
</Border.ContextMenu>
<TextBlock Text="{Binding Name}"/>
</Border>
</DataTemplate>
</ListBox.ItemTemplate>
<ListBox.ContextMenu>
<ContextMenu x:Name="EmptyAreaContextMenu">
<MenuItem Header="Add New Game" Click="OpenFileButton_Clicked"/>
<MenuItem Header="Refresh List" Click="Context_RefreshGames"/>
</ContextMenu>
</ListBox.ContextMenu>
<ListBox.Styles>
<Style Selector="ListBoxItem:selected /template/ ContentPresenter">
<Setter Property="Background" Value="#35313d"/>
</Style>
<Style Selector="ListBoxItem">
<Setter Property="Padding" Value="0"/>
<Setter Property="CornerRadius" Value="10"/>
</Style>
</ListBox.Styles>
</ListBox>
</Border>
<Border Grid.Column="1">
<Border Width="1" Background="#35313d" Margin="2,10"/>
</Border>
<Border Grid.Column="2">
<Border Margin="2,0,0,0" Name="GameEdit">
</Border>
</Border>
</Grid>
</Border>
</Grid>
</Grid>
<Grid Grid.Column="2" RowDefinitions="20, *" IsVisible="False" Name="GameShowcaseGrid">
<Border Grid.Row="1" Background="#35313d" CornerRadius="10" Name="InfoWindow" >
</Border>
</Grid>
</Grid>
</Window>