In my app I'm pushing pages using a NavigationPage
and at some stage I want to go back to a previous page in the stack. This is my structure:
NavigationPage > Page1 > Page2 > Page3 > Page4
How can I PopAsync
back to Page2 directly from Page4 without going through Page3?
If you have a count that you would like to pop, this works really well.
for (var counter = 1; counter < BackCount; counter++) { Navigation.RemovePage(Navigation.NavigationStack[Navigation.NavigationStack.Count - 2]); } await Navigation.PopAsync();
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With