Xamarin表格:主要详细信息页面:如何禁用滑动手势以在iOS上加载菜单 [英] Xamarin Form : Master Detail Page : How to disable swipe gesture to load the menu on iOS
问题描述
我需要屏幕在上面画东西.由于我在同一屏幕上有一个母版详细信息页面",因此,每当我按打开菜单的方向进行绘制时,菜单就会在我绘制的同时滑动打开.
I need the screen to draw stuff on it. Since I have a Master Detail Page on the same screen, whenever I draw in a direction as opening the menu, the menu will swipe open at the same time as I draw.
是否有一种方法可以阻止它滑动打开,但是仍然可以单击菜单按钮来打开它.
Is there a way to stop it from swipe open, but still have the menu button clickable to open it.
推荐答案
我找到了解决方法:
#if __IOS__
IsGestureEnabled = false
#endif
将Is GestureEnabled设置为false将会从菜单滑动打开中停止.只能为iOS设置此值.如果我设置为android,则单击菜单按钮将不会打开菜单.
Setting Is GestureEnabled to false will stop from the menu being swiped open. This value only can be set for iOS. If I set for android, the menu button will not open the menu when clicked.
这篇关于Xamarin表格:主要详细信息页面:如何禁用滑动手势以在iOS上加载菜单的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!