Forum Xamarin.Forms
We are excited to announce that the Xamarin Forums are moving to the new Microsoft Q&A experience. Q&A is the home for technical questions and answers at across all products at Microsoft now including Xamarin!

We encourage you to head over to Microsoft Q&A for .NET for posting new questions and get involved today.

How to display "Back button" on NavigationPage even when I am on the first page


I have a NavigationPage (lets call it SubNavigator), which I push onto another NavigationPage (lets call it MainNavigator) using PushModalAsync.

That works. I can push into SubNavigator and navigator back and forward in it.

Now, I would like the "back" button in the SubNavigator to also appear, when I am on its first page. When it is pressed, I want to execute PopModalAsync on MainNavigator.

I am aware, that I could get a similar effect by simply not using a SubNavigator, and pushing my pages into MainNavigator.
But doing it the way I describe makes conceptual more sense. The pages I push into SubNavigator are a subtask for the user.

Can this be done?
Would you do it completly differently?



Best Answer


  • joehannajoehanna AUBeta ✭✭

    @JohnMiller Hi John, I know this is an old thread but it has a new context - Xamarin.Forms embedded.

    My Xamarin.iOS app pushes a Xamarin.Forms NavigationPage but it appears without a Back button. For Xamarin.Forms embedded to work nicely with my Xamarin.iOS app, the "first" NavigationPage must have a Back button.

    How do I achieve this?

Sign In or Register to comment.