stackunderflows
stackunderflows

Reputation: 170

Xamarin.Forms Back Stack of NavigationPage inside Details view of MasterDetail using PRISM

I'm using Xamarin.Forms with PRISM. My app start with navigating to MyMasterDetailPage/MyNavigationPage/MainPage. From the master page, I want to navigate to page2 and have a back arrow instead of the hamburger icon. Pressing that takes you back to MainPage and the hamburger icon is back. I have tried navigating to MyNavigationPage/page2 andMyMasterDetailPage/MyNavigationPage/page2` but it seems to be clearing the back stack. There may be other pages that need the behavior that I'm currently seeing, so being able to configure the behavior would be ideal (not always one way or the other).

Upvotes: 0

Views: 190

Answers (1)

user5420778
user5420778

Reputation:

You need to implement the INavigationPageOptions interface on your MyNavigationPage and set the ClearNavigationStackOnNavigation property to false.

Upvotes: 2

Related Questions