ClassAsyncStateCommand
Class
Represents an async state command.
Definition
Namespace:Telerik.Windows.Diagrams.Core
Assembly:Telerik.Windows.Diagrams.Core.dll
Syntax:
cs-api-definition
public class AsyncStateCommand : UndoableDelegateCommand, IAsyncStateCommand, ICommand
Inheritance: objectUndoableDelegateCommandAsyncStateCommand
Implements:
Inherited Members
Constructors
AsyncStateCommand(string, Action<object>, Action<object>, Predicate<object>)
Initializes a new instance of the AsyncStateCommand class.
Declaration
cs-api-definition
public AsyncStateCommand(string name, Action<object> execute, Action<object> undo = null, Predicate<object> canExecute = null)
Parameters
name
The name or title of the command.
execute
The redo or execute method.
undo
The undo or rollback method.
canExecute
The method returning whether the command can be executed.
Properties
IsCommited
Gets a value indicating whether this instance is committed.
Methods
Complete(bool, object)
Completes the execution.
Execute(object)
Executes an undoable action.
Declaration
cs-api-definition
public override void Execute(object state = null)
Parameters
state
Overrides
Implements
Events
Completed
Occurs when the command is completed.
Declaration
cs-api-definition
public event EventHandler Completed
Event Value
Implements