user11695018
user11695018

Reputation:

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?

Upvotes: 1

Views: 439

Answers (2)

Leo Zhu
Leo Zhu

Reputation: 14956

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

Upvotes: 0

Jason
Jason

Reputation: 89102

use IsGestureEnabled

IsGestureEnabled = false;

Upvotes: 2

Related Questions