ClassCompositeAsyncStateCommand
Represents a composite async command.
Definition
Namespace:Telerik.Windows.Diagrams.Core
Assembly:Telerik.Windows.Diagrams.Core.dll
Syntax:
public class CompositeAsyncStateCommand : CompositeCommand, IAsyncStateCommand, ICommand
Inheritance: objectUndoableDelegateCommandCompositeCommandCompositeAsyncStateCommand
Implements:
Inherited Members
Constructors
CompositeAsyncStateCommand(string, Action<object>, Action<object>, Predicate<object>)
Initializes a new instance of the CompositeAsyncStateCommand class.
Declaration
public CompositeAsyncStateCommand(string name, Action<object> execute = null, Action<object> undo = null, Predicate<object> canExecute = null)
Parameters
name
The name or title of the composite action.
execute
The execute action.
undo
The undo action.
canExecute
The CanExecute action.
Properties
IsCommited
Gets a value indicating whether this instance is committed.
Methods
AddCommand(ICommand, object)
Adds a command to the composite command.
Complete(bool, object)
Completes the execution.
Execute(object)
Executes the specified state.
Declaration
public override void Execute(object state = null)
Parameters
state
The state associated with the execution.
Overrides
Implements
InsertCommand(int, ICommand, object)
Inserts a command into the composite command at specific index.
Undo(object)
Unwinds an undoable action.
Declaration
public override void Undo(object state = null)
Parameters
state
Overrides
Implements
Events
Completed
Occurs when the command is completed.
Declaration
public event EventHandler Completed
Event Value
Implements