Navigating to previous page in Stack using Prism Navigation. RRS feed

  • Question

  • User294963 posted

    There are 3 pages in navigation stack PageA/PageB/PageC. Now I want to go back to PageA and only PageA should remain in the stack. How will I achieve that? One more example. Navigation Stack is A/B/C/D now some action is performed on page D and stack should be A/B.


    Wednesday, December 13, 2017 10:43 AM


  • User331804 posted

    Prism 7 allow to remove pages from the navigation stack using ../

    For example:

    Given: "NavigationPage/ViewA/ViewB/ViewC/ViewD" Navigate from ViewD with: NavigationService.NavigateAsync("../../../ViewE"); Results in: "NavigationPage/ViewA/ViewE"

    More info here: https://github.com/PrismLibrary/Prism/pull/1207

    • Marked as answer by Anonymous Thursday, June 3, 2021 12:00 AM
    Wednesday, December 13, 2017 4:32 PM