locked
PRISM Navigation RRS feed

  • Question

  • User390402 posted

    I need to go to the next page from my current page(WelcomeView). I use next syntax.

    await NavigationService.NavigateAsync(new Uri("app:///WelcomeView/RegistrationView", UriKind.Absolute));

    But it doesn't work. I still on my WelcomeView page. But if i write /WelcomeView/RegistrationView/LoginView app jump over the RegistrationView to the LoginView. How can I fix it? What am I doing wrong?

    Thursday, November 14, 2019 3:58 PM

Answers

  • User76049 posted

    If you navigate with app:/// it resets the navigation stack, it's the equivalent to doing MainPage= new ContentPage()

    You are using it wrong, refer to the documentation

    https://prismlibrary.github.io/docs/xamarin-forms/navigation/navigation-basics.html

    And the samples

    https://github.com/PrismLibrary/Prism-Samples-Forms

    • Marked as answer by Anonymous Thursday, June 3, 2021 12:00 AM
    Thursday, November 14, 2019 4:10 PM