Bug 46365 - Master detail page setting IsGestureEnabled=false stops Master page from opening at all
Summary: Master detail page setting IsGestureEnabled=false stops Master page from open...
Alias: None
Product: Forms
Classification: Xamarin
Component: Android ()
Version: 2.3.4
Hardware: PC Windows
: Normal normal
Target Milestone: ---
Assignee: Bugzilla
Depends on:
Reported: 2016-11-03 09:32 UTC by Richard Pike
Modified: 2017-03-22 20:47 UTC (History)
4 users (show)

Tags: masterdetailpage isgestureenabled ac
Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.

Please create a new report for Bug 46365 on Developer Community or GitHub if you have new information to add and do not yet see a matching new report.

If the latest results still closely match this report, you can use the original description:

  • Export the original title and description: Developer Community HTML or GitHub Markdown
  • Copy the title and description into the new report. Adjust them to be up-to-date if needed.
  • Add your new information.

In special cases on GitHub you might also want the comments: GitHub Markdown with public comments

Related Links:

Description Richard Pike 2016-11-03 09:32:28 UTC
My app has a MasterDetailPage, one of the detail pages is a Carousel page. So as per the instructions found here: https://developer.xamarin.com/api/type/Xamarin.Forms.CarouselPage/ I'm setting IsGestureEnabled to false, to avoid conflicts between the swipes.

However, the burger menu icon no longer opens the Master page either. How am I supposed to open my Master page again?

The link below is to a sample project which just has a master detail page which doesn't open the master page due to IsGestureEnabled being set.

Comment 1 adrianknight89 2016-11-27 01:34:15 UTC
This seems to be dictated by Android. When ActionBarDrawerToggle uses a Toolbar (which is what is happening now under NavigationPage), a locked drawer will also disable the hamburger icon. For detailed info, see http://stackoverflow.com/a/38098891/812582

I haven't tried this, but you could perhaps handle onTouchEvent in a custom renderer and cancel touch event before the drawer opens even though gestures are enabled on the MDP.
Comment 2 Richard Pike 2016-11-28 08:51:01 UTC
Thanks for this. I did create a custom renderer for the MDP which I posted here: http://stackoverflow.com/questions/40404944/masterdetailpage-master-page-wont-open-with-isgestureenabled-set-to-false-xamari

However, while this worked for me (the menu doesn't open but you can see the burger menu start its rotation animation before closing itself) someone commented that it didn't work at all on their device.
Comment 3 Paul DiPietro [MSFT] 2017-03-22 20:47:55 UTC
There does appear to be a bit of inconsistency between iOS and Android with regards to the top left button opening and closing the master page. I'll set this to confirmed until it can be decided how this should be handled.