Class UndoRedoButtonBase
Base class for UndoButton and RedoButton.
Implements
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 | Gets the value of the IsEnabled property. |
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() | When overridden in a derived class, is invoked whenever application code or internal processes call ApplyTemplate(). |
OnClick() | Called when a Button is clicked. |
OnKeyDown(KeyEventArgs) | Provides class handling for the KeyDown routed event that occurs when the user presses a key while this control has focus. |
OnPropertyChanged(String) | Raises the PropertyChanged event. |
Events
Name | Description |
---|---|
PropertyChanged | Event raised when the value of a property of the current object changes. |