move up to fix 2 selection indicators
MODIFY
WalletWasabi.Fluent/Behaviors/NavBarSelectedIndicatorState.cs
WalletWasabi.Fluent/Behaviors/NavBarSelectedIndicatorState.cs
@@ -69,9 +69,11 @@ public class NavBarSelectedIndicatorState : IDisposable
return;
}
+ var oldZ = next.ZIndex;
+
var prevIndicator = _activeIndicator;
var nextIndicator = next;
-
+ nextIndicator.ZIndex = int.MaxValue;
// user clicked twice
if (prevIndicator is null || prevIndicator.Equals(nextIndicator))
{
@@ -155,6 +157,7 @@ public class NavBarSelectedIndicatorState : IDisposable
prevIndicator.Opacity = 0;
nextIndicator.Opacity = 1;
+ nextIndicator.ZIndex = oldZ;
}
public void SetActive(Rectangle initial)

MODIFY
WalletWasabi.Fluent/Views/NavBar/NavBar.axaml
WalletWasabi.Fluent/Views/NavBar/NavBar.axaml
mc:Ignorable="d" d:DesignWidth="280" d:DesignHeight="459"
x:Class="WalletWasabi.Fluent.Views.NavBar.NavBar" UseLayoutRounding="False"
Name="NavBarUserControl">
+
+ <i:Interaction.Behaviors>
+ <behaviors:NavBarSelectedIndicatorParentBehavior />
+ </i:Interaction.Behaviors>
<UserControl.Styles>
<Style Selector="PathIcon">
<Setter Property="Margin" Value="13 0 0 0" />
Classes="vertical draggable narrowItemPadding"
RenderTransformOrigin="0%,50%"
VerticalAlignment="Stretch">
- <i:Interaction.Behaviors>
- <behaviors:NavBarSelectedIndicatorParentBehavior />
- </i:Interaction.Behaviors>
<c:NavBarListBox.DataTemplates>
<DataTemplate DataType="vmw:WalletViewModelBase">
<Panel Height="48" Width="48" ToolTip.Tip="{Binding Title}" Background="Transparent">

move up to fix 2 selection indicators