Class DrawCommand
Base class for undoable actions based on delegates.
Inherited Members
Namespace: Telerik.Windows.Diagrams.Core
Assembly: Telerik.Windows.Diagrams.Core.dll
Syntax
public class DrawCommand : UndoableDelegateCommand, ICommand
Constructors
DrawCommand(String, IGeometryShape, Boolean, DrawingState, DrawingState, Action<Object>, Action<Object>, Predicate<Object>)
Initializes a new instance of the DrawCommand class.
Declaration
public DrawCommand(string name, IGeometryShape shape, bool isComplete, DrawingState oldState, DrawingState newState, Action<object> execute, Action<object> undo = null, Predicate<object> canExecute = null)
Parameters
System.String
name
The name. |
IGeometryShape
shape
The shape. |
System.Boolean
isComplete
If set to |
DrawingState
oldState
The old state. |
DrawingState
newState
The new state. |
System.Action<System.Object>
execute
The execute. |
System.Action<System.Object>
undo
The undo. |
System.Predicate<System.Object>
canExecute
The can execute. |
Properties
IsComplete
Gets a value indicating whether this instance is complete.
Declaration
public bool IsComplete { get; }
Property Value
System.Boolean
|