PostSharp4.3/API Reference/Post­Sharp.​Patterns.​Model.​Controls Namespace/Undo­Redo­Button­Base Class
UndoRedoButtonBase Class
Base class for UndoButton and RedoButton.
Inheritance Hierarchy
System.Object
  System.Windows.Threading.DispatcherObject
    System.Windows.DependencyObject
      System.Windows.Media.Visual
        System.Windows.UIElement
          System.Windows.FrameworkElement
            System.Windows.Controls.Control
              System.Windows.Controls.ContentControl
                System.Windows.Controls.Primitives.ButtonBase
                  System.Windows.Controls.Button
                    PostSharp.Patterns.Model.Controls.UndoRedoButtonBase
                      PostSharp.Patterns.Model.Controls.RedoButton
                      PostSharp.Patterns.Model.Controls.UndoButton

Namespace: PostSharp.Patterns.Model.Controls
Assembly: PostSharp.Patterns.Model.Controls (in PostSharp.Patterns.Model.Controls.dll) Version: 4.3.48.0 (4.3.48.0)
Syntax
C#
public abstract class UndoRedoButtonBase : Button, 
	INotifyPropertyChanged

The UndoRedoButtonBase type exposes the following members.

Properties
  NameDescription
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.
Methods
  NameDescription
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.
Events
  NameDescription
Public eventPropertyChanged
Event raised when the value of a property of the current object changes.
Fields
  NameDescription
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.
Extension Methods
  NameDescription
Public Extension MethodQueryInterface<T>
Gets the implementation of a specified interface for the specified object.
(Defined by QueryInterfaceExtensions.)
See Also