Added Skip navigation mode
MODIFY
WalletWasabi.Fluent/ViewModels/Navigation/NavigationMode.cs
WalletWasabi.Fluent/ViewModels/Navigation/NavigationMode.cs
@@ -10,6 +10,11 @@ namespace WalletWasabi.Fluent.ViewModels.Navigation
/// <summary>
/// Navigates to another page and clears the stack. The back button will not be available after this.
/// </summary>
- Clear
+ Clear,
+
+ /// <summary>
+ /// Navigates to another page with the current page is not saved on the stack.
+ /// </summary>
+ Skip
}
}
\ No newline at end of file

MODIFY
WalletWasabi.Fluent/ViewModels/Navigation/NavigationStack.cs
WalletWasabi.Fluent/ViewModels/Navigation/NavigationStack.cs
@@ -144,6 +144,10 @@ namespace WalletWasabi.Fluent.ViewModels.Navigation
_backStack.Push(CurrentPage);
}
break;
+
+ case NavigationMode.Skip:
+ // Do not push old page on the back stack.
+ break;
}
NavigationOperation(oldPage, oldInStack, viewmodel, newInStack);

Added Skip navigation mode