How to disable the menu on the left of the main help page in the form of xamarin?

I have a masterdetail page and it has a left menu in it. Its working tone while the user is on the masterdetail page. But when the user goes from the main help page to a simple content page (which is not included in the main details page), on this content page, if he scrolls the menu from left to right, it opens. How can I disable the left menu on this content page? and why is the menu on the left displayed on a simple content page until it is part of the main parts page?

+4
source share
4 answers

If you are still looking for a solution, you can do it like this:

IsGestureEnabled = false;

You can continue to use

await Navigation.PushAsync(new PageWhichWontOpenTheMenu());

, RootPage (MasterDetailPage) OnAppearing :

protected override void OnAppearing(){
        base.OnAppearing();
        (Application.Current.MainPage as RootPage).IsGestureEnabled = false;
}

, , !

+2

, , Detail.Navigation.PushAsync(...) , Navigation.PushAsync(...)

0

, , Navigation. PushModalAsync(...). . .

0

, MasterDetailPage IsEnabled.

( ), .

Hope this helps.

Yours faithfully

0
source

All Articles