Forum Xamarin.Forms

How/When to Pop a page?

KL721KL721 USMember
edited September 2016 in Xamarin.Forms

Noob here: How/When exactly should I pop a page? What I am trying to do is jsut remove the previous page from the navigation stack? Simple right?but I'm confused. Since the Pop function removes the current page.

This is what I am currently doing:

Application.Current.MainPage.Navigation.InsertPageBefore(new homepage(), Application.Current.MainPage.Navigation.NavigationStack.First());
Application.Current.MainPage.Navigation.PopToRootAsync(false);

Is this acceptable?

Best Answer

Answers

Sign In or Register to comment.