Xamarin Navigating with TabbedPage App

I was doing Xamarin Forms and I came across a bit of roadblock. I have an application whose rootPage is TabbedPage. I am programmatically adding three child pages to this page. This all works great. However, these pages open other pages, which may or may not open other pages, etc.

I tried to use ContentPage for child pages and pass navigation property to them in root page and use it to call Navigation.PushAsync. I also tried to make navigation pages in pages and then call Navigation.PushAsync on its own property: this throws some unhandled exception

Can anyone help!

+3


source to share


1 answer


The root of each tab in a TabbedPage must be a single NavigationPage that wraps the ContentPage. From this ContentPage, you navigate to other pages using the Navigation property on the page.



+5


source







All Articles