)
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. (Last updated on: June 24, 2019).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

How to show or hide Image Editor toolbar items?

Platform: Xamarin.Forms |
Control: SfImageEditor |
Published Date: December 27, 2017 |
Last Revised Date: July 6, 2018

 

SfImageEditor allows you to enable or disable the items in toolbar

 

Step 1: Create image editor 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/xamarin/sfimageeditor/getting-started

Step 2: SetToolbarItemVisibility method is used to hide/show items in toolbar. Specify the name of the item in SetToolbarItemVisibility method as arguments, and set visibility value as true/false.

 

The following code snippet illustrates the way to this method,

 

Xaml:

 

 

C#

 

 

You can also specify the single item or multiple items in SetToolbarItemVisibility method as arguments.

 

Code snippet

 

Editor.SetToolbarItemVisibility("redo", false);

 

 

Note:

 

The list of items in toolbar that can be hidden/shown by using SetToolbarItemVisibility method are follows.   

 

text, redo, undo, save, transform, rotate, shape, crop, path, circle, reset, and arrow          

     

 

Sample link:

 

http://www.syncfusion.com/downloads/support/directtrac/general/ze/ImageEditor_GettingStarted-1358939551.zip

 

 

Screenshot:     

 

 

             

                                                                           

2X faster development

The ultimate Xamarin UI toolkit to boost your development speed.
ADD COMMENT
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
Live Chat Icon