fix collapse pane showing when disabled
MODIFY
WalletWasabi.Fluent/ViewModels/NavBar/NavBarViewModel.cs
WalletWasabi.Fluent/ViewModels/NavBar/NavBarViewModel.cs
@@ -26,6 +26,7 @@ namespace WalletWasabi.Fluent.ViewModels.NavBar
private Action? _toggleAction;
private Action? _collapseOnClickAction;
private double _currentOpenPaneLength;
+ private double _currentCompactPaneLength;
public NavBarViewModel(TargettedNavigationStack mainScreen, WalletManagerViewModel walletManager)
{
@@ -55,7 +56,11 @@ namespace WalletWasabi.Fluent.ViewModels.NavBar
{
x.ObserveCollectionChanges()
.ToObservableChangeSet()
- .Subscribe(y => CurrentOpenPaneLength = y.Count > 0 ? 280 : 0);
+ .Subscribe(y =>
+ {
+ CurrentCompactPaneLength = y.Count > 0 ? 68 : 0;
+ CurrentOpenPaneLength = y.Count > 0 ? 280 : 0;
+ });
});
}
@@ -91,6 +96,12 @@ namespace WalletWasabi.Fluent.ViewModels.NavBar
set => this.RaiseAndSetIfChanged(ref _collapseOnClickAction, value);
}
+ public double CurrentCompactPaneLength
+ {
+ get => _currentCompactPaneLength;
+ set => this.RaiseAndSetIfChanged(ref _currentCompactPaneLength, value);
+ }
+
public double CurrentOpenPaneLength
{
get => _currentOpenPaneLength;

MODIFY
WalletWasabi.Fluent/Views/MainView.axaml
WalletWasabi.Fluent/Views/MainView.axaml
x:Class="WalletWasabi.Fluent.Views.MainView">
<Panel>
<SplitView
- IsEnabled="{Binding IsMainContentEnabled}" CompactPaneLength="68" OpenPaneLength="{Binding NavBar.CurrentOpenPaneLength}"
+ IsEnabled="{Binding IsMainContentEnabled}"
+ CompactPaneLength="{Binding NavBar.CurrentCompactPaneLength}"
+ OpenPaneLength="{Binding NavBar.CurrentOpenPaneLength}"
IsPaneOpen="{Binding NavBar.IsOpen, Mode=TwoWay}">
<i:Interaction.Behaviors>
<behaviors:SplitViewAutoBehavior ToggleAction="{Binding NavBar.ToggleAction, Mode=OneWayToSource}"

fix collapse pane showing when disabled