Base class for UndoButton and RedoButton.
Inheritance
Implements
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, INotifyPropertyChangedFields
| 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. |