Base class for undoable actions based on delegates.
Definition
Namespace:Telerik.Windows.Diagrams.Core
Assembly:Telerik.WinControls.RadDiagram.dll
Syntax:
C#
public class UndoableDelegateCommand : ICommand
Inheritance: objectUndoableDelegateCommand
Derived Classes:
Implements:
Constructors
Initializes a new instance of the UndoableDelegateCommand class.
C#
public UndoableDelegateCommand(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
Methods
Executes an undoable action.
Executes an undoable action.
C#
public virtual void Redo()
Implements:
Unwinds an undoable action.