private void ImageEditor_ToolCommitting(object sender, ToolCommittingEventArgs e) { this.imageInfo.HeightBefore = this.ImageEditorUI.Image.Height; this.imageInfo.WidthBefore = this.ImageEditorUI.Image.Width; e.Cancel = this.shouldCancelOnCommitting; if (e.Cancel) { // Uncomment the following line if you want to close the tool settings panel after the tool was canceled. //this.ImageEditorUI.ImageEditor.CancelExecuteTool(); } }
private void ImageEditor_ToolCommitting(object sender, ToolCommittingEventArgs e) { e.Cancel = !this.shouldCrop; }