Hi Mariusz,
Regarding “how to remove save
button from the toolbar”:
Your requirement to remove Save button from the toolbar can
be achieved by using the custom image editor and overriding the OnApplyTemplate
() method. In this method, you can remove the toolbar items by accessing
them based on their indexes, as shown in the following code snippet.
[C#]:
|
public class CustomImageEditor : SfImageEditor
{
public override void OnApplyTemplate()
{
base.OnApplyTemplate();
var border = this.Template.FindName("PART_HeaderToolbarPanel", this) as Border;
var panel = (border.Child as Grid).Children[0] as StackPanel;
var saveButton = panel.Children[1] as Button;
saveButton.Visibility =
Visibility.Collapsed;
}
}
|
We have prepared an example sample
illustrating the above and attached it below for your reference.
We have already published a KB on
“How to keep only the default toolbar items in the WPF SfImageEditor control?”:
https://support.syncfusion.com/kb/article/10673
We hope that this helps you. Please let us know if you need
further assistance.
Regards,
Vishal O.
Attachment:
ImageEditorRemoveButton_12c7afb3.zip