Forum Xamarin Xamarin.Forms

Master Detail Page always show menu/master icon (Android)

I have a MasterDetailPage with a NavigationPage as Content.
The desired functionality is to be able to navigate the Content, while always having access to the top left menu icon to open the menu.

I'm creating Master like this:

public Master ()

        Master = new MenuPage ();

        root = new Root ();
        var navigation = new NavigationPage (root);

        Detail = navigation;
        this.IsPresented = false;

And to navigate :

await navigation.PushAsync (new AContentPage());

This works as expected on iOS, but i'm getting av back button in Android. I'v tried to hide the back button using NavigationPage.SetHasBackButton (this, false);, but the menu icon is not visible anyways.

But the menu is accessible by swiping from the left edge, so the menu is there, but I need the icon.

How can I achieve this?



  • Maybe essential to add that I'm using "FormsAppCompatActivity", and it seems like this behavior is how the platform should behave. But is it possible to override this?

  • batmacibatmaci DEMember ✭✭✭✭✭

    Did you find a solution for this? I am looking for this problem also. thanks

  • ZenDroidZenDroid USMember ✭✭✭

    I have this problem. Did you find a solution for this?

  • rugairugai BRMember ✭✭

    No solution for this guys?

  • KevinGossKevinGoss USMember ✭✭

    I also have this. I need a menu icon at all times but once I push a page to the navigation stack the back button overrides the menu button.

Sign In or Register to comment.