Class
ImageEditorCommandBase

Definition

Namespace:Telerik.Windows.Media.Imaging.ImageEditorCommands

Assembly:Telerik.Windows.Controls.ImageEditor.dll

Syntax:

cs-api-definition
public abstract class ImageEditorCommandBase : ICommand

Inheritance: objectImageEditorCommandBase

Derived Classes: CommitSelectionCommandDeselectCommandExecuteToolCommandFlipHorizontalCommandFlipVerticalCommandInvertColorsCommandOpenImageCommandRedoCommandRotate180CommandRotate90ClockwiseCommandRotate90CounterclockwiseCommandSaveImageCommandUndoCommand

Implements: ICommand

Constructors

ImageEditorCommandBase(RadImageEditor)

Declaration

cs-api-definition
public ImageEditorCommandBase(RadImageEditor owner)

Parameters

owner

RadImageEditor

Properties

CanExecuteInReadOnlyMode

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

Declaration

cs-api-definition
protected virtual bool CanExecuteInReadOnlyMode { get; }

Property Value

bool

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

CanExecuteWithoutImage

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

Declaration

cs-api-definition
protected virtual bool CanExecuteWithoutImage { get; }

Property Value

bool

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

Owner

Declaration

cs-api-definition
public RadImageEditor Owner { get; }

Property Value

RadImageEditor

Methods

CanExecute(object)

Declaration

cs-api-definition
public bool CanExecute(object parameter)

Parameters

parameter

object

Returns

bool

Implements ICommand.CanExecute(object)

CanExecuteOverride(object)

Declaration

cs-api-definition
protected virtual bool CanExecuteOverride(object parameter)

Parameters

parameter

object

Returns

bool

Execute(object)

Declaration

cs-api-definition
public void Execute(object parameter)

Parameters

parameter

object

Implements ICommand.Execute(object)

ExecuteOverride(object)

Declaration

cs-api-definition
protected abstract void ExecuteOverride(object parameter)

Parameters

parameter

object

OnCanExecuteChanged()

Declaration

cs-api-definition
protected void OnCanExecuteChanged()

Events

CanExecuteChanged

Declaration

cs-api-definition
public event EventHandler CanExecuteChanged

Event Value

EventHandler

Implements ICommand.CanExecuteChanged