remove navbar item parent property... unused.
MODIFY
WalletWasabi.Fluent/ViewModels/NavBar/NavBarItemViewModel.cs
WalletWasabi.Fluent/ViewModels/NavBar/NavBarItemViewModel.cs
-using System;
using ReactiveUI;
using System.Windows.Input;
using WalletWasabi.Fluent.ViewModels.Navigation;
@@ -33,18 +32,7 @@ namespace WalletWasabi.Fluent.ViewModels.NavBar
Navigate().To(this, NavigationMode.Clear);
}
});
-
- this.WhenAnyValue(x => x.IsExpanded)
- .Subscribe(x =>
- {
- if (Parent != null)
- {
- Parent.IsExpanded = x;
}
- });
- }
-
- public NavBarItemViewModel? Parent { get; set; }
public NavBarItemSelectionMode SelectionMode { get; protected set; }

MODIFY
WalletWasabi.Fluent/ViewModels/NavBar/NavBarViewModel.cs
WalletWasabi.Fluent/ViewModels/NavBar/NavBarViewModel.cs
@@ -152,12 +152,6 @@ namespace WalletWasabi.Fluent.ViewModels.NavBar
{
_selectedItem.IsSelected = false;
_selectedItem.IsExpanded = false;
-
- if (_selectedItem.Parent is { })
- {
- _selectedItem.Parent.IsSelected = false;
- _selectedItem.Parent.IsExpanded = false;
- }
}
RaiseAndChangeSelectedItem(null);
@@ -167,12 +161,6 @@ namespace WalletWasabi.Fluent.ViewModels.NavBar
{
_selectedItem.IsSelected = true;
_selectedItem.IsExpanded = IsOpen;
-
- if (_selectedItem.Parent is { })
- {
- _selectedItem.Parent.IsSelected = true;
- _selectedItem.Parent.IsExpanded = true;
- }
}
}

remove navbar item parent property... unused.