Search code examples
xamarinnavigationtabbedpage

How to navigate to a normal ContentPage in fullscreen from NavigationPage with TabbedPage?


There is a Xamarin official sample that demonstrates how to use TabbedPage with NavigationPage together. The result looks like this:

As you can see, when it navigates to a sub-page, the sub-page is "nested" in the TabbedPage. I want to know how can I make the sub-page in fullscreen, which means when it's on the sub-page, it takes up the whole screen and the TabbedPage doesn't show. Below is an example:


Solution

  • To achieve this you have to embed your tabbed page into a navigation page.

    App.Current.MainPage = new NavigationPage(new YourTabbedPage());