Category / Section
How to customise the back button in ImageEditor
1 min read
In ImageEditor we use Back button to navigate from second level sub menu to first level menu. By default,back button is rendered with default icon. We can also able to customize the back button by changing its icon and text.
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: Set text and Icon for back button using ToolbarSettings properties.
The following code snippet illustrates the way to this method,
C#
public MainPage() { InitializeComponent(); imageeditor.Source =ImageSource.FromResource("ImageEditor_GettingStarted.Image.jpg"); imageeditor.ToolbarSettings.BackButton.Text = "Go Back"; imageeditor.ToolbarSettings.BackButton.Icon =ImageSource.FromResource ("ImageEditor_GettingStarted.back.jpg"); }
Screen Shot:
Sample Link: