简体   繁体   中英

how to enable and disable master detail page menu and gesture?

I want to enable and disable the bars and gesture of the master detail page (basically the whole menu) so that the user can't navigate when opening a certain page. I tried using a modal page to achieve this but I really need the toolbar menu of the navigation page.

How can I achieve that?

use IsGestureEnabled

IsGestureEnabled = false;

Setting the IsGestureEnabled property of the MasterDetailPage to true in the OnAppearing event and false in the OnDisappearing event of each DetailPage, seems giving the expected results.

if IsGestureEnabled = false; Property is working in Android. But not in iOS.you could use CustomRenderer ,you could refer to the workaround

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM