Missing menu button on MasterDetailPage

SvenJansenSvenJansen USMember
edited May 2016 in Xamarin.Forms

I got a little App where I need to Swap from a ContentPage to a MasterDetailsPage.

MainPage = new NavigationPage(new MyContentPage());

Now if the login succeed I want to change the Root to

MainPage = new NavigationPage(new MyMasterDetailpage());

The MasterDetailsPage is shown, but the Button in the Navigation bar is missing then.

If I just use

Navigation.PushModalAsync(new MyMasterDetailpage());

I dont even get an Navigationbar, with

Navigation.PushModalAsync(new NavigationPage(new MyMasterDetailpage()));

The menu icon is missing again.

Anything I can do here?

Answers

  • XamadevXamadev BAMember

    I have the same issue and really don't know what to look for?

  • same issue here.
    Hamburger Menu is missing initially when I start the app, then after I navigate back and forth using mastertetailpage.Detail.Navigation.PushAsync(new subpage) and mastertetailpage.Detail.Navigation.PopAsync() it is visible. Very strange.

  • kisscoool18kisscoool18 Member ✭✭
    edited February 2018

    Hello there,
    I've got exactly the same problem, but I can't find a suitable fix.
    Your fix @TillBallendat.0434 doesn't work with me...
    I'm running all the lastest packages...

    The only workaround I found is to set the MD page as MainPage in any case, and if user needs to be logged, just PushAsync the login page, then PopToRootAsync() from LoginPage. Not the best because you need to handle the navigation stack yourselft but i works fine

Sign In or Register to comment.