Articles in this section
Category / Section

How to disable resizing the shapes, text and customview

1 min read

By default, In SfImageEditor you can resize Shapes, Text and CustomView. Using ResizableElements property in SfImageEditor, you can able to disable resizing for particular element.

Step 1: Create SfImageEditor sample with all necessary assemblies.

 

Please refer the below link to create a simple SfImageEditor sample along with the ways to configure it.

https://help.syncfusion.com/uwp/sfimageeditor/getting-started

 

Step 2: You can enable or disable resizing for the following elements in SfImageEditor.

  • Text,
  • Shapes,
  • CustomView.

You can disable resizing for all elements using ImageEditorResizableElements.None property.

 

Code Snippet:

 

public MainPage()
{
    this.InitializeComponent();
    editor.ResizableElements = ImageEditorResizableElements.None;
}

 

Step 3: You can able to enable one or two particular elements as resizable using below code snippet.

 

public MainPage()
{
    this.InitializeComponent();
    editor.ResizableElements = ImageEditorResizableElements.Text | ImageEditorResizableElements.Shapes;
}

 

Sample Link:

https://www.syncfusion.com/downloads/support/directtrac/general/ze/ImageEditor_GettingStarted1960597437.zip

Did you find this information helpful?
Yes
No
Help us improve this page
Please provide feedback or comments
Comments (0)
Please sign in to leave a comment
Access denied
Access denied