I came up with a little workaround by creating my own renderer for MasterDetailPage. He must meet my needs now.
public class MyMasterDetailPageRenderer : Xamarin.Forms.Platform.Android.AppCompat.MasterDetailPageRenderer { public override bool OnTouchEvent(MotionEvent e) { if (IsDrawerOpen(Android.Support.V4.View.GravityCompat.Start)) return base.OnTouchEvent(e); else { if (e.Action == MotionEventActions.Up || e.Action == MotionEventActions.Down) return base.OnTouchEvent(e); else { CloseDrawers(); return true; } } } }
The assembly must be added outside the namespace:
[assembly: ExportRenderer(typeof(MyMasterDetailPage), typeof(MyMasterDetailPageRenderer))]
This does not completely solve the problem, but the main page does not open when scrolling.
source share