Add supported for key mediator handelrs

This commit is contained in:
TheXamlGuy
2024-06-02 15:00:59 +01:00
parent 5a0c3bf317
commit 71f86be715
35 changed files with 321 additions and 71 deletions
+7 -3
View File
@@ -13,8 +13,9 @@ public partial class ItemNavigationViewModel(IServiceProvider provider,
IContentTemplate template,
NamedComponent named,
Guid id,
string? name = "",
string? description = "",
string name = "",
string description = "",
string category = "",
bool selected = false,
bool favourite = false,
bool archived = false) :
@@ -30,6 +31,9 @@ public partial class ItemNavigationViewModel(IServiceProvider provider,
[ObservableProperty]
private bool archived = archived;
[ObservableProperty]
private string? category = category;
[ObservableProperty]
private string? description = description;
@@ -48,8 +52,8 @@ public partial class ItemNavigationViewModel(IServiceProvider provider,
[ObservableProperty]
private bool selected = selected;
public IContentTemplate Template { get; set; } = template;
public bool Attached { get; set; }
public IContentTemplate Template { get; set; } = template;
public Task Handle(ArchiveEventArgs<Item> args) =>
Task.Run(Dispose);