From c547a7d4f2f1fb112412525f03617e589b942dae Mon Sep 17 00:00:00 2001 From: Isaac Marovitz Date: Sun, 15 Jan 2023 16:17:50 -0500 Subject: [PATCH] Menu opens --- .../DownloadableContentManagerViewModel.cs | 2 + .../DownloadableContentManagerWindow.axaml | 86 +++++++++++++------ .../DownloadableContentManagerWindow.axaml.cs | 17 +++- 3 files changed, 77 insertions(+), 28 deletions(-) diff --git a/Ryujinx.Ava/UI/ViewModels/DownloadableContentManagerViewModel.cs b/Ryujinx.Ava/UI/ViewModels/DownloadableContentManagerViewModel.cs index 96965137c..2c3380ae4 100644 --- a/Ryujinx.Ava/UI/ViewModels/DownloadableContentManagerViewModel.cs +++ b/Ryujinx.Ava/UI/ViewModels/DownloadableContentManagerViewModel.cs @@ -46,6 +46,8 @@ namespace Ryujinx.Ava.UI.ViewModels } } + public object SelectedDLCs { get; } + public DownloadableContentManagerViewModel(VirtualFileSystem virtualFileSystem, ulong titleId, string titleName) { _virtualFileSystem = virtualFileSystem; diff --git a/Ryujinx.Ava/UI/Windows/DownloadableContentManagerWindow.axaml b/Ryujinx.Ava/UI/Windows/DownloadableContentManagerWindow.axaml index 293b7d662..db7c63a8a 100644 --- a/Ryujinx.Ava/UI/Windows/DownloadableContentManagerWindow.axaml +++ b/Ryujinx.Ava/UI/Windows/DownloadableContentManagerWindow.axaml @@ -7,6 +7,7 @@ xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:viewModels="clr-namespace:Ryujinx.Ava.UI.ViewModels" xmlns:models="clr-namespace:Ryujinx.Ava.UI.Models" + xmlns:ui="clr-namespace:FluentAvalonia.UI.Controls;assembly=FluentAvalonia" Width="500" Height="300" mc:Ignorable="d" @@ -18,32 +19,16 @@ - - - - + BorderBrush="{DynamicResource AppListHoverBackgroundColor}" + BorderThickness="1" + CornerRadius="5" + Padding="2.5"> + + --> + + + + + + + + + + + + + + + + 0); + // RemoveButton.IsEnabled = (DlcDataGrid.SelectedItems.Count > 0); } public void SaveAndClose() @@ -60,5 +61,15 @@ namespace Ryujinx.Ava.UI.Windows ViewModel.Save(); ((ContentDialog)Parent).Hide(); } + + private void RemoveDLC(object sender, RoutedEventArgs e) + { + throw new System.NotImplementedException(); + } + + private void OpenLocation(object sender, RoutedEventArgs e) + { + throw new System.NotImplementedException(); + } } } \ No newline at end of file