Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 77050

Keep Tabbed Pages Menu when Pushing a Page

$
0
0

I need to build an App which must contain Tabbed Pages and Hamburger menu.

Until now, I managed to have my MainPage as a MasterDetailPage, where my DetailPage is the TabbedPage.

My TabbedPage has 3 tabs: Page "A", Page "B", and Page "C".

Inside my Page "B" is a button that pushes a new page "D" onto the stack (which is not listed in the Tabbed Page Menu).
The Page "D" shows the navigation bar correctly, but does not show the Tabbed Page Menu with the three pages.

What I want is to show the Tabbed Page Menu in the Page D. The Tabbed Page Menu has to be visible in all the pages pushed in the app

What I tried:
In the Tabbed Page, if I wrap the "Page B" tab inside this code:
<NavigationPage Title="Page B"> <x:Arguments> <local:PageB /> </x:Arguments> </NavigationPage>

and I navigate to page "B" > "D" : shows the Tabbed Page Menu, but shows 2 Navigation Bars. I can opt for hiding the Navigation Bar inside the Page "D", but I really want to look for another solution because I need to use the Navigation Bar inside Page D to put Toolbar Items.

Is there any other way to show the Tabbed Page Menu?

Another option is to remove the MasterDetailPage and add the Hamburger Menu as a Tabbed Page, but I dont know how to add the sidebar when it is tapped.


Viewing all articles
Browse latest Browse all 77050

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>