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

Wraps Command and Action instances in a common execution context.

Definition

Namespace:Telerik.Windows.Controls.Data

Assembly:Telerik.Windows.Controls.Data.dll

Syntax:

C#
public abstract class DelegateCommandWrapper

Inheritance: objectDelegateCommandWrapper

Derived Classes: DataFormDelegateCommandWrapperPropertyGridDelegateCommandWrapper

Constructors

Initializes a new instance of the DelegateCommandWrapper class.

C#
public DelegateCommandWrapper(Action action, int delay)
Parameters:actionAction

The action.

delayint

The delay.

Initializes a new instance of the DelegateCommandWrapper class.

C#
public DelegateCommandWrapper(Action action)
Parameters:actionAction

The action.

Initializes a new instance of the DelegateCommandWrapper class.

C#
public DelegateCommandWrapper(ICommand command, int delay)
Parameters:commandICommand

The command.

delayint

The delay.

Initializes a new instance of the DelegateCommandWrapper class.

C#
public DelegateCommandWrapper(ICommand command)
Parameters:commandICommand

The command.

Properties

Gets or sets the delay.

C#
public int Delay { get; protected set; }
Property Value:

The delay.

Gets or sets the execute action.

C#
protected Action ExecuteAction { get; set; }
Property Value:

The execute action.

Gets or sets the execute command.

C#
protected ICommand ExecuteCommand { get; set; }
Property Value:

The execute command.

Gets or sets the invocation key.

C#
public Key InvocationKey { get; set; }
Property Value:

The invocation key.

Methods

Gets the execute action.

C#
public virtual Action GetExecuteAction()
Returns:

Action