New to Telerik UI for WPFStart a free 30-day trial

Definition

Namespace:Telerik.Windows.Media.Imaging.ImageEditorCommands

Assembly:Telerik.Windows.Controls.ImageEditor.dll

Syntax:

C#
public abstract class ImageEditorCommandBase : ICommand

Inheritance: objectImageEditorCommandBase

Derived Classes: CommitSelectionCommandDeselectCommandExecuteToolCommandFlipHorizontalCommandFlipVerticalCommandInvertColorsCommandOpenImageCommandRedoCommandRotate180CommandRotate90ClockwiseCommandRotate90CounterclockwiseCommandSaveImageCommandUndoCommand...

Implements: ICommand

Constructors

C#
public ImageEditorCommandBase(RadImageEditor owner)
Parameters:ownerRadImageEditor

Properties

Gets a value indicating whether this command can be executed when RadImageEditor is read-only. The default implementation returns false.

C#
protected virtual bool CanExecuteInReadOnlyMode { get; }
Property Value:

true if this command preserves the image; otherwise, false.

Gets a value indicating whether this command can be executed when RadImageEditor doesn't have a lodaded image. The default implementation returns false.

C#
protected virtual bool CanExecuteWithoutImage { get; }
Property Value:

true if this command requires an image be loaded; otherwise, false.

C#
public RadImageEditor Owner { get; }

Methods

C#
public bool CanExecute(object parameter)
Parameters:parameterobjectReturns:

bool

Implements: ICommand.CanExecute(object)

C#
protected virtual bool CanExecuteOverride(object parameter)
Parameters:parameterobjectReturns:

bool

C#
public void Execute(object parameter)
Parameters:parameterobject

Implements: ICommand.Execute(object)

C#
protected abstract void ExecuteOverride(object parameter)
Parameters:parameterobject
C#
protected void OnCanExecuteChanged()

Events

C#
public event EventHandler CanExecuteChanged

Implements: ICommand.CanExecuteChanged