We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

How to avoid crop sluggishness in MasterDetailPage?

Platform: Xamarin.Forms |
Control: SfImageEditor

This section will explain how to avoid crop sluggishness when add image editor inside MasterDetailPage in iOS platform. The reason for crop sluggishness, when  resize the cropping panel in ImageEditor which in turn enables the parent gesture (MasterDetail page Gesture). This is the default behavior of MasterDetail Page behavior in iOS. That is, when perform any interaction such as swipe or move for MasterDetail Page’s children view will also triggers the MasterDetailPage gesture. 


Step 1: Create Master Detail page image editor sample with all necessary assemblies and add desired image in sample. Select Crop toolbar menu item to display the cropping panel on image and then resize the crop handle from left corner.Crop sluggishness  will occur.


Step 2: To avoid crop sluggishness, you need to disable the Master Detail Page Gesture   when loading the ImageEditor in OnAppearing method as like following code snippet.


protected override void OnAppearing()
            if((Device.RuntimePlatform == Device.iOS))
                (Application.Current.MainPage as ImageEditorPage).IsGestureEnabled = false;



Step 3: To Enable the Master Detail Page Gesture when navigate back from the Image Editor , you need to set GestureEnabled  property to true  in OnDisappearing method   as like below code snippet


protected override void OnDisappearing()
            if ((Device.RuntimePlatform == Device.iOS))
                (Application.Current.MainPage as ImageEditorPage).IsGestureEnabled = true;



Sample Link:






2X faster development

The ultimate Xamarin UI toolkit to boost your development speed.
You must log in to leave a comment

Please sign in to access our KB

This page will automatically be redirected to the sign-in page in 10 seconds.

Up arrow icon

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile