Hello
Is it possible in flyout project to show the main menu items only in hamburger navigation panel, and the sub items in the bottom bar?
Example:
Mainmenu1 (only show in side navigation panel)
Mainmenu2 (only show in side navigation panel)
MainMenu3 (only show in side navigation panel)
if yes, how can i set the bottom bar?
Thx for your help
This should do it:
<Shell> <Flyout> <FlyoutItem Title="Mainmenu1"> <ShellContent Title="Subitem1" /> <ShellContent Title="Subitem2" /> <ShellContent Title="Subitem3" /> </FlyoutItem> <FlyoutItem Title="Mainmenu2"> <ShellContent Title="Subitem1"/> </FlyoutItem> <FlyoutItem Title="MainMenu3"> <ShellContent Title="Subitem1"/> <ShellContent Title="Subitem2"/> <FlyoutItem/> </Flyout> </Shell>
Is it possible in flyout project to show the main menu items only in hamburger navigation panel, and the sub items in the bottom bar?
This is the normal shell style , implement with multiple FlyoutItem
.
A little modification based on Joe's answer
<FlyoutItem Title="Mainmenu1"> <ShellContent Title="1-Subitem1" ContentTemplate="{DataTemplate views:CatsPage}"/> <ShellContent Title="1-Subitem2" ContentTemplate="{DataTemplate views:DogsPage}"/> <ShellContent Title="1-Subitem3" ContentTemplate="{DataTemplate views:BearsPage}"/> </FlyoutItem> <FlyoutItem Title="Mainmenu2"> <ShellContent Title="2-Subitem1" ContentTemplate="{DataTemplate views:MonkeysPage}"/> </FlyoutItem> <FlyoutItem Title="MainMenu3"> <ShellContent Title="3-Subitem1" ContentTemplate="{DataTemplate views:CatsPage}"/> <ShellContent Title="3-Subitem2" ContentTemplate="{DataTemplate views:DogsPage}"/> </FlyoutItem>
Answers
@nszmmp
You can only have a flyout or tabs in Xamarin.Forms Shell.
Nope. If you create a new sample shell flyout example project, the sidebar hamburger navigation, and the bottom tab bar both exist. I use them in my projects, just I want to make separated (Main menu items, and sub-menu items) as I have written before.
This should do it:
This is the normal shell style , implement with multiple
FlyoutItem
.A little modification based on Joe's answer