如何禁用Xamarin表单中操作栏菜单的滑动? [英] How to disable the sliding of menu of Action bar in xamarin forms?

查看:75
本文介绍了如何禁用Xamarin表单中操作栏菜单的滑动?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用MasterDetailPage并在其中使用操作栏.我已禁用并隐藏操作栏的徽标,图标和后退按钮.但是,当我尝试从左侧从左向右滑动时,将打开一个空白菜单列表.我不知道为什么会这样.如何禁用此功能栏.我不想要菜单列表,这就是为什么我禁用后退按钮,图标的原因.当我从左向右滑动时,如何禁用此从左向右滑动的滑动菜单?

I am using MasterDetailPage and using Action Bar in it. I have disabled and hide logo, icon and back button of action bar. But when I try to swipe from left to right from left side a blank menu list opens. I don't know why it is happening. how I can disable this one for action bar. I don't want menu list that's why I disabled back button, icon. How I can disable this sliding menu which is coming from left to right when I am swiping from left to right?

推荐答案

MasterDetailPage 上有一个名为 IsGestureEnabled 的属性.将其设置为false应该会停止跟踪滑动手势.

On the MasterDetailPage there is a Property called IsGestureEnabled. Setting that to false should stop tracking the swipe gesture.

这篇关于如何禁用Xamarin表单中操作栏菜单的滑动?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆