Ensure a locker is selected in first load

This commit is contained in:
TheXamlGuy
2024-05-30 20:02:34 +01:00
parent 3643cb21b4
commit 3cc0631079
9 changed files with 49 additions and 17 deletions
+5 -2
View File
@@ -9,7 +9,8 @@ public partial class LockerNavigationViewModel :
INotificationHandler<OpenedEventArgs<Locker>>,
INotificationHandler<ClosedEventArgs<Locker>>,
INotificationHandler<ActivatedEventArgs<Locker>>,
INotificationHandler<DeactivatedEventArgs<Locker>>
INotificationHandler<DeactivatedEventArgs<Locker>>,
ISelectable
{
[ObservableProperty]
private bool activated;
@@ -33,10 +34,12 @@ public partial class LockerNavigationViewModel :
ISubscription subscriber,
IDisposer disposer,
IContentTemplate template,
string name) : base(provider, factory, mediator, publisher, subscriber, disposer)
string name,
bool selected) : base(provider, factory, mediator, publisher, subscriber, disposer)
{
Template = template;
Name = name;
Selected = selected;
}
public IContentTemplate Template { get; set; }