PostSharpAPI ReferencePost­Sharp.​Patterns.​Model.​ControlsUndo­Redo­Button­Base
Open sandboxFocus

UndoRedoButtonBase Class

Base class for UndoButton and RedoButton.

Inheritance
UndoRedoButtonBase
Namespace: PostSharp.Patterns.Model.Controls
Assembly: PostSharp.Patterns.Xaml.dll
Syntax
public abstract class UndoRedoButtonBase : Button

Fields

Name Description
IsListEnabledProperty

Definition of the IsListEnabled property.

MaxOperationsCountProperty

Definition of the MaxOperationsCount property.

RecorderProperty

Definition of the Recorder dependency property.

UndoCommandProperty

Definition of the UndoCommand dependency property.

Properties

Name Description
IsEnabledCore
IsListEnabled

Determines whether the button can be extended and display the list of operations that can be undone or redone.

IsListExpanded

Determines whether the detailed list of operations is currently expanded.

MaxOperationsCount

Gets or sets the maximal number of operations displayed by the current button.

Operations

Gets the list of operations displayed by the current button when in expanded state.

Recorder

Gets or sets the Recorder bound to the current control.

UndoCommand

Gets or sets the command used execute the Undo action.

Methods

Name Description
OnApplyTemplate()
OnClick()
OnKeyDown(KeyEventArgs)
OnPropertyChanged(String)

Raises the PropertyChanged event.

Events

Name Description
PropertyChanged

Event raised when the value of a property of the current object changes.