How to show the required shapes inside the toolbar in the .NET MAUI Image Editor?
The Syncfusion® .NET MAUI Image Editor (SfImageEditor) allows you to customize the toolbar to display only the shapes you require. This article demonstrates how to configure the toolbar to show specific shapes.
XAML:
Initialize the SfImageEditor control and specify the image source using the Source property.
Use the Shapes property of ImageEditorToolbarSettings class to show only the required shapes in the toolbar.
<imageEditor:SfImageEditor x:Name="imageEditor" Source="image.png">
<imageEditor:SfImageEditor.ToolbarSettings>
<imageEditor:ImageEditorToolbarSettings Shapes="Circle, Line, Polygon, Polyline" />
</imageEditor:SfImageEditor.ToolbarSettings>
</imageEditor:SfImageEditor>
Download the complete sample from GitHub.
Output:
Conclusion:
I hope you enjoyed learning how to show the required shapes inside the toolbar in the .NET MAUI Image Editor (SfImageEditor).
Refer to our .NET MAUI Image Editor feature tour page for other groundbreaking feature representations. You can also explore our .NET MAUI Image Editor documentation to understand how to present and manipulate data.
For current customers, check out our .NET MAUI components from the License and Downloads page. If you are new to Syncfusion®, try our 30-day free trial to check out our .NET MAUI Image Editor and other .NET MAUI components.
Please let us know in the following comment section if you have any queries or require clarification. Contact us through our support forums, Direct-Trac, or feedback portal. We are always happy to assist you!