Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to remove hamburger menu icon on MasterDetailPage but keep navigation bar

How to remove the hamburger menu (for drawer to open/close) but keep the navigation bar and back icon if there a stack. I am struggling to find a solution for this.

Doing this will totally remove the navigation bar

NavigationPage.HasNavigationBar="false"

I want only the icon to be removed.

enter image description here

like image 200
Rashid Avatar asked Oct 30 '25 01:10

Rashid


1 Answers

I know it is an old question, but in your case it is better to use Shell. You can hide the hamburger button and implicitly disable the flyout menu using:

  • Globally inside AppShell (or whatever named)
<Shell>
...
     FlyoutBehavior="Disabled"
..
</Shell>
  • Or hide it only in a single page
<ContentPage>
...
    Shell.FlyoutBehavior="Disabled"
</ContentPage>
like image 174
Cfun Avatar answered Nov 02 '25 17:11

Cfun



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!