Represents the base class for all Button controls.
[System.Windows.Localizability(System.Windows.LocalizationCategory.Button)] public abstract class ButtonBase : System.Windows.Controls.ContentControl, System.Windows.Input.ICommandSource
Handle the Click event to respond when the user clicks a ButtonBase. The user can raise the Click event by using an AccessText or by pressing ENTER or the SPACEBAR when the control has focus. When the user presses the SPACEBAR, the control sets IsPressed to
true and captures the mouse. As a result, the control will raise mouse events such as MouseEnter and IsMouseDirectlyOverChanged. Note that using the AccessText or ENTER does not change IsPressed or capture the mouse, but it does raise the Click event.
Initializes a new instance of the ButtonBase class.
Identifies the Click routed event.
Identifies the ClickMode dependency property.
Identifies the CommandParameter dependency property.
Identifies the routed Command dependency property.
Identifies the CommandTarget dependency property.
Identifies the IsPressed dependency property.
Gets or sets when the Click event occurs.
Gets or sets the command to invoke when this button is pressed.
Gets or sets the parameter to pass to the Command property.
Gets or sets the element on which to raise the specified command.
Gets the value of the IsEnabled property.
Gets a value that indicates whether a ButtonBase is currently activated.
Responds when the AccessKey for this control is called.
Raises the Click routed event.
Called when the IsPressed property changes.
Provides class handling for the KeyDown routed event that occurs when the user presses a key while this control has focus.
Provides class handling for the KeyUp routed event that occurs when the user releases a key while this control has focus.
Called when an element loses keyboard focus.
Provides class handling for the LostMouseCapture routed event that occurs when this control is no longer receiving mouse event messages.
Provides class handling for the ClickMode routed event that occurs when the mouse enters this control.
Provides class handling for the MouseLeave routed event that occurs when the mouse leaves an element.
Provides class handling for the MouseLeftButtonDown routed event that occurs when the left mouse button is pressed while the mouse pointer is over this control.
Provides class handling for the MouseLeftButtonUp routed event that occurs when the left mouse button is released while the mouse pointer is over this control.
Provides class handling for the MouseMove routed event that occurs when the mouse pointer moves while over this element.
Called when the rendered size of a control changes.
Occurs when a Button is clicked.