AsyncStateCommand
Class
Represents an async state command.
Definition
Namespace:Telerik.Windows.Diagrams.Core
Assembly:Telerik.WinControls.RadDiagram.dll
Syntax:
C#
public class AsyncStateCommand : UndoableDelegateCommand, IAsyncStateCommand, ICommand
Inheritance: objectUndoableDelegateCommandAsyncStateCommand
Implements:
Inherited Members
Constructors
Initializes a new instance of the AsyncStateCommand class.
C#
public AsyncStateCommand(string name, Action<object> execute, Action<object> undo = null, Predicate<object> canExecute = null)
The name or title of the command.
executeAction<object>The redo or execute method.
undoAction<object>The undo or rollback method.
canExecutePredicate<object>The method returning whether the command can be executed.
Properties
Gets a value indicating whether this instance is committed.
C#
public bool IsCommited { get; }
Implements:
Methods
Executes an undoable action.
Events
Occurs when the command is completed.
C#
public event EventHandler Completed
Implements: