Click or drag to resize

Button Class

Button control
Inheritance Hierarchy

Namespace:  Eto.Forms
Assembly:  Eto (in Eto.dll) Version: 2.4.0
Syntax
public class Button : TextControl

The Button type exposes the following members.

Constructors
Properties
  NameDescription
Public propertyCommand
Gets or sets the command to invoke when the button is pressed.
Public propertyCommandParameter
Gets or sets the parameter to pass to the Command when executing or determining its CanExecute state.
Public propertyImage
Gets or sets the image to display on the button
Public propertyImagePosition
Gets or sets the position of the image relative to the text
Public propertyMinimumSize
Gets or sets the minimum size for the button.
Public propertySize
Gets or sets the size of the control. Use -1 to specify auto sizing for either the width and/or height.
(Overrides ControlSize.)
Top
Methods
  NameDescription
Protected methodGetCallback
Gets an instance of an object used to perform callbacks to the widget from handler implementations
(Overrides TextControlGetCallback.)
Protected methodOnClick
Raises the Click event
Public methodPerformClick
Triggers the Click event for the button, if the button is visable and enabled.
Top
Events
  NameDescription
Public eventClick
Event to handle when the user clicks the button
Top
See Also