Open sandboxFocus

Class UndoRedoButtonBase

Base class for UndoButton and RedoButton.

Namespace: PostSharp.Patterns.Model.Controls
Assembly: PostSharp.Patterns.Xaml.dll
Syntax
[TemplatePart(Name = "PART_SplitElement", Type = typeof(UIElement))]
[ComVisible(false)]
[Obsolete("[Recordable] aspect and its components are deprecated and will be removed in a future version.", false)]
public abstract class UndoRedoButtonBase : Button, IAnimatable, IFrameworkInputElement, IInputElement, ISupportInitialize, IQueryAmbient, IAddChild, ICommandSource, INotifyPropertyChanged

Fields

Name Description
IsListEnabledProperty

Identifies the IsListEnabled dependency property.

MaxOperationsCountProperty

Identifies the MaxOperationsCount dependency property.

RecorderProperty

Identifies the Recorder dependency property.

UndoCommandProperty

Identifies the UndoCommand dependency property.

Properties

Name Description
IsEnabledCore
IsListEnabled

Gets or sets a value indicating whether the button can be expanded and display the list of operations that can be undone or redone.

IsListExpanded

Gets or sets a value indicating whether the detailed list of operations is currently expanded.

MaxOperationsCount

Gets or sets the maximum 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 to execute the Undo action.

Methods

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

Raises the PropertyChanged event.

Events

Name Description
PropertyChanged

Occurs when the value of a property of the current object changes.