locked
Disable Swipe functionality in particular page RRS feed

  • Question

  • User369823 posted

    Hello, I have a page which captures signature. The issue is when user trying to sign, for swiping gestures left menus (sliding menus) are coming out. Now , I want to disable swiping gesture for this particular page, not for whole application. Some solutions I am seeing regarding "IsGestureEnabled=false" in master detail page , seems like it is going to disable swiping activity in whole app (if I am not getting it wrong), not in any particular page.

    If someone can provide a suggestion or insight for what I am trying to achieve, that would be a great help.

    Have a wonderful day.

    Tuesday, September 22, 2020 7:01 PM

Answers

  • User369823 posted

    Found solution work for me :smile: protected override void OnAppearing() { base.OnAppearing(); (Application.Current.MainPage as RootPage).IsGestureEnabled = false; }

        protected override void OnDisappearing()
        {
            base.OnDisappearing();
            (Application.Current.MainPage as RootPage).IsGestureEnabled = true;
        }
    
    • Marked as answer by Anonymous Thursday, June 3, 2021 12:00 AM
    Tuesday, September 22, 2020 7:57 PM