Disable PointerPressed behaviors
MODIFY
WalletWasabi.Fluent/ViewModels/NavBar/NavBarViewModel.cs
WalletWasabi.Fluent/ViewModels/NavBar/NavBarViewModel.cs
@@ -179,7 +179,7 @@ namespace WalletWasabi.Fluent.ViewModels.NavBar
RaiseAndChangeSelectedItem(null);
RaiseAndChangeSelectedItem(value);
_isNavigating = false;
- // TODO: NavigateItem(value);
+ NavigateItem(value);
_isNavigating = true;
RaiseAndChangeSelectedItem(null);
RaiseAndChangeSelectedItem(previous);
@@ -194,7 +194,7 @@ namespace WalletWasabi.Fluent.ViewModels.NavBar
RaiseAndChangeSelectedItem(null);
RaiseAndChangeSelectedItem(value);
_isNavigating = false;
- // TODO: value.Toggle();
+ value.Toggle();
_isNavigating = true;
RaiseAndChangeSelectedItem(null);
RaiseAndChangeSelectedItem(previous);

MODIFY
WalletWasabi.Fluent/Views/NavBar/NavBar.axaml
WalletWasabi.Fluent/Views/NavBar/NavBar.axaml
<DataTemplate x:DataType="vm:NavBarItemViewModel" x:CompileBindings="False">
<Panel>
<Panel Width="45" Background="Transparent" HorizontalAlignment="Left" ToolTip.Tip="{Binding Title}">
- <i:Interaction.Behaviors>
+ <!--<i:Interaction.Behaviors>
<ia:EventTriggerBehavior EventName="PointerPressed" SourceObject="{Binding $parent[c:NavBarItem]}">
<ia:InvokeCommandAction Command="{Binding OpenCommand}" CommandParameter="{x:Static rx:Unit.Default}" />
</ia:EventTriggerBehavior>
- </i:Interaction.Behaviors>
+ </i:Interaction.Behaviors>-->
<PathIcon HorizontalAlignment="Left">
<PathIcon.Data>
<Binding Path="IconName" Converter="{x:Static conv:NavBarIconConverter.Instance}" />
<DataTemplate DataType="vmw:WalletViewModelBase">
<Panel>
<Panel Width="45" Background="Transparent" HorizontalAlignment="Left" ToolTip.Tip="{Binding Title}">
- <i:Interaction.Behaviors>
+ <!--<i:Interaction.Behaviors>
<ia:EventTriggerBehavior EventName="PointerPressed" SourceObject="{Binding $parent[c:NavBarItem]}">
<ia:InvokeCommandAction Command="{Binding OpenCommand}" CommandParameter="{x:Static rx:Unit.Default}" />
</ia:EventTriggerBehavior>
- </i:Interaction.Behaviors>
+ </i:Interaction.Behaviors>-->
<PathIcon HorizontalAlignment="Left">
<PathIcon.Data>
<Binding Path="IconName" Converter="{x:Static conv:NavBarIconConverter.Instance}" />
<DataTemplate DataType="vmwa:WalletActionViewModel">
<Panel>
<Panel Width="45" Background="Transparent" HorizontalAlignment="Left" ToolTip.Tip="{Binding Title}">
- <i:Interaction.Behaviors>
+ <!--<i:Interaction.Behaviors>
<ia:EventTriggerBehavior EventName="PointerPressed" SourceObject="{Binding $parent[c:NavBarItem]}">
<ia:InvokeCommandAction Command="{Binding OpenCommand}" CommandParameter="{x:Static rx:Unit.Default}" />
</ia:EventTriggerBehavior>
- </i:Interaction.Behaviors>
+ </i:Interaction.Behaviors>-->
<PathIcon HorizontalAlignment="Left">
<PathIcon.Data>
<Binding Path="IconName" Converter="{x:Static conv:NavBarIconConverter.Instance}" />
<c:NavBarListBox.ItemTemplate>
<DataTemplate x:DataType="vm:NavBarItemViewModel">
<Panel Width="45" Background="Transparent" HorizontalAlignment="Center" ToolTip.Tip="{Binding Title}">
- <i:Interaction.Behaviors>
+ <!--<i:Interaction.Behaviors>
<ia:EventTriggerBehavior EventName="PointerPressed" SourceObject="{Binding $parent[c:NavBarItem]}">
<ia:InvokeCommandAction Command="{Binding OpenCommand}" CommandParameter="{x:Static rx:Unit.Default}" />
</ia:EventTriggerBehavior>
- </i:Interaction.Behaviors>
+ </i:Interaction.Behaviors>-->
<PathIcon HorizontalAlignment="Left">
<PathIcon.Data>
<Binding Path="IconName" Converter="{x:Static conv:NavBarIconConverter.Instance}" />
<DataTemplate DataType="vmw:WalletViewModelBase">
<Panel>
<Panel Width="45" Background="Transparent" HorizontalAlignment="Left" ToolTip.Tip="{Binding Title}">
- <i:Interaction.Behaviors>
+ <!--<i:Interaction.Behaviors>
<ia:EventTriggerBehavior EventName="PointerPressed" SourceObject="{Binding $parent[c:NavBarItem]}">
<ia:InvokeCommandAction Command="{Binding OpenCommand}" CommandParameter="{x:Static rx:Unit.Default}" />
</ia:EventTriggerBehavior>
- </i:Interaction.Behaviors>
+ </i:Interaction.Behaviors>-->
<PathIcon HorizontalAlignment="Left">
<PathIcon.Data>
<Binding Path="IconName" Converter="{x:Static conv:NavBarIconConverter.Instance}" />

Disable PointerPressed behaviors