PostSharp 2023.0 / / Post­Sharp Documentation / API Reference / Post­Sharp.​Patterns.​Model.​Controls Namespace / Undo­Redo­Button­Base Class

UndoRedoButtonBase Class

Base class for UndoButton and RedoButton.
Inheritance Hierarchy

Namespace:  PostSharp.Patterns.Model.Controls
Assembly:  PostSharp.Patterns.Xaml (in PostSharp.Patterns.Xaml.dll) Version: 2023.0.3.0 (2023.0.3.0)
public abstract class UndoRedoButtonBase : Button, 

The UndoRedoButtonBase type exposes the following members.

Protected propertyIsEnabledCore
Gets the value of the IsEnabled property.
(Overrides ButtonBase.IsEnabledCore.)
Public propertyIsListEnabled
Determines whether the button can be extended and display the list of operations that can be undone or redone.
Public propertyIsListExpanded
Determines whether the detailed list of operations is currently expanded.
Public propertyMaxOperationsCount
Gets or sets the maximal number of operations displayed by the current button.
Public propertyOperations
Gets the list of operations displayed by the current button when in expanded state.
Public propertyRecorder
Gets or sets the Recorder bound to the current control.
Public propertyUndoCommand
Gets or sets the command used execute the Undo action.
Public methodOnApplyTemplate
When overridden in a derived class, is invoked whenever application code or internal processes call ApplyTemplate().
(Overrides FrameworkElement.OnApplyTemplate().)
Protected methodOnClick
Called when a Button is clicked.
(Overrides Button.OnClick().)
Protected methodOnKeyDown
Provides class handling for the KeyDown routed event that occurs when the user presses a key while this control has focus.
(Overrides ButtonBase.OnKeyDown(KeyEventArgs).)
Protected methodOnPropertyChanged
Raises the PropertyChanged event.
Public eventPropertyChanged
Event raised when the value of a property of the current object changes.
Public fieldStatic memberIsListEnabledProperty
Definition of the IsListEnabled property.
Public fieldStatic memberMaxOperationsCountProperty
Definition of the MaxOperationsCount property.
Public fieldStatic memberRecorderProperty
Definition of the Recorder dependency property.
Public fieldStatic memberUndoCommandProperty
Definition of the UndoCommand dependency property.
See Also