PostSharp//API Reference/Post­Sharp.​Patterns.​Model.​Controls/Undo­Redo­Command­Base
Open sandboxFocus

Class UndoRedoCommandBase

Base class for UndoCommand and RedoCommand.

Inheritance
UndoRedoCommandBase
Implements
ICommand
Namespace: PostSharp.Patterns.Model.Controls
Assembly: PostSharp.Patterns.Xaml.dll
Syntax
public abstract class UndoRedoCommandBase : Object

Properties

Name Description
Recorder

Gets the Recorder bound to this command.

Methods

Name Description
CanExecute(Object)

Defines the method that determines whether the command can execute in its current state.

Execute(Object)

Defines the method to be called when the command is invoked.

Events

Name Description
CanExecuteChanged

Occurs when changes occur that affect whether or not the command should execute.