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
NavigationPag
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();