Search
ButtonComponent Members
Constructors Properties Methods
 


Represents a button UI component.

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

 Public Constructors

  Name Description

ButtonComponent

Initializes a new instance of the ButtonComponent class.

 Public Properties

  Name Description

clicked

Raised when the user clicks on this button.

content

Gets or sets the Component displayed inside this border.

customDraw

Raised to let you custom-draw button graphics.

padding

Gets or sets the padding space between this border and its Content.

 Public Methods

  Name Description

arrange

Component.Arrange override. Sets the location and size of this button relatively to its parent.

createController

Component.CreateController override. Returns a controller used to interact with this button.

draw

Component.Draw override. Draws this button in specified RenderContext.

measure

Component.Measure override. Measures the desired size of this button.

onClicked

Raises the Clicked event.

onCustomDraw

Raises the CustomDraw event.

 See Also