Category / Section
How to disable resizing the shapes, text and customview
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: