locked
Adding a detail page to master/detail RRS feed

  • Question

  • User22454 posted

    Hi. I'm working on a massively horrible legacy app that uses master/detail for its hamburger menu. Many of the pages have the hamburger, but some do not. I need to add the hamburger to a few pages that don't have it, but for the life of me, I can't figure out how. Some of the problem is that I have files with (literally) l,000 lines of if/else nested six deep (!!) so sorting things out is a challenge.

    Is there a way to say to a page "be part of the master/detail and show the hamburger?"

    Thanks!

    Monday, March 2, 2020 8:06 PM

Answers

  • User391726 posted

    NavigationPage.HasBackButton="False" in your XAML where you want hamburger icon instead of back button

    • Marked as answer by Anonymous Thursday, June 3, 2021 12:00 AM
    Tuesday, March 3, 2020 6:39 AM

All replies

  • User391726 posted

    NavigationPage.HasBackButton="False" in your XAML where you want hamburger icon instead of back button

    • Marked as answer by Anonymous Thursday, June 3, 2021 12:00 AM
    Tuesday, March 3, 2020 6:39 AM
  • User22454 posted

    @Adeel984 Works great, but it shows the back button and then changes to the hamburger, causing it to look bad. Is there a way to suppress the back button entirely?

    Thanks!!

    Tuesday, March 3, 2020 4:07 PM
  • User22454 posted

    I fixed the flicker by adding NavigationPage.SetHasBackButton(this, false); in the constructor.

    Thanks again!!

    Tuesday, March 3, 2020 5:50 PM
  • User22454 posted

    Now all I have to do is put in fake back buttons and handle the tap event to unwind the back stack. Piece of cake :wink:

    Tuesday, March 3, 2020 5:51 PM
  • User391726 posted

    Glad to help..

    Wednesday, March 4, 2020 5:01 AM