Search
ButtonBase Members
Constructors Properties Methods Events
 


Represents the base type for button-like controls.

The following tables list the members exposed by the ButtonBase type.

 Protected Constructors

  Name Description

ButtonBase

Initializes a new instance of the ButtonBase class.

 Public Properties

  Name Description

BackgroundBrush

Gets or sets the brush used to fill the button when it is in normal state.

BackgroundBrushDisabled

Gets or sets the brush used to fill the button when it is disabled.

BackgroundBrushDown

Gets or sets the brush used to fill the button when it is being pressed.

BackgroundBrushOver

Gets or sets the brush used to fill the button when it is being hovered.

BorderBrush

Gets or sets the brush used to draw the button border.

BorderBrushDisabled

Gets or sets the brush used to draw the button border when the button is disabled.

BorderBrushDown

Gets or sets the brush used to draw the button border when the button is being pressed.

BorderBrushOver

Gets or sets the brush used to draw the button border when the button is being hovered.

BorderThickness

Gets or sets the thickness of the button border.

CustomDraw

Gets or set the type of custom drawing for the button.

FocusOnClick

Gets or sets a value indicating whether the button receives the input focus when it is clicked by the mouse.

Font

Gets or sets the font of the text displayed by the button.

ForegroundBrush

Gets or sets the brush used to draw the button content.

ForegroundBrushDisabled

Gets or sets the brush used to draw the button content when the button is disabled.

ForegroundBrushDown

Gets or sets the brush used to draw the button content when the button is being pressed.

ForegroundBrushOver

Gets or sets the brush used to draw the button content when the button is being hovered.

ShowFocus

Gets or sets a value indicating whether a focus rectangle should be drawn when the control has the input focus.

Text

Gets or sets the text display by the button.

TextAlign

Gets or sets the alignment of the text in the button control.

 Protected Methods

  Name Description

OnDoubleClick

Control.OnDoubleClick override.

OnDown

Raises the Down event.

OnDraw

Raises the Draw event.

OnGotFocus

Control.OnGotFocus override.

OnLostFocus

Control.OnLostFocus override.

OnMouseDown

Control.OnMouseDown override.

OnMouseEnter

Control.OnMouseEnter override.

OnMouseLeave

Control.OnMouseLeave override.

OnMouseMove

Control.OnMouseMove override.

OnMouseUp

Control.OnMouseUp override.

OnPaintBackground

Control.OnPaintBackground override.

ProcessDialogKey

Control.ProcessDialogKey override.

 Public Events

  Name Description

Down

Occurs when the mouse is pressed over the button.

Draw

Occurs when the button is being painted.

 See Also