Definition
- Namespace:
- ElmSharp
- Assembly:
- ElmSharp.dll
The Button is a widget that works as a clickable input element to trigger events.
public class Button : Layout, IAccessibleObject
- Inheritance
-
- Implements
-
Constructors
View Source
Creates and initializes a new instance of the Button class.
Declaration
public Button(EvasObject parent)
Parameters
| Type |
Name |
Description |
| EvasObject |
parent |
The EvasObject to which the new Button will be attached as a child.
|
Properties
View Source
Sets or gets the autorepeat feature of a given Bbutton.
Declaration
public bool AutoRepeat { get; set; }
Property Value
View Source
Sets or gets the interval between each generated Repeat event.
Declaration
public double AutoRepeatGapTimeout { get; set; }
Property Value
View Source
Sets or gets the initial timeout before the Repeat event is generated.
Declaration
public double AutoRepeatInitialTime { get; set; }
Property Value
View Source
Sets or gets the BackgroundColor of a given button in the normal and pressed status.
Declaration
public override Color BackgroundColor { set; }
Property Value
Overrides
Methods
Declaration
protected override IntPtr CreateHandle(EvasObject parent)
Parameters
| Type |
Name |
Description |
| EvasObject |
parent |
Parent EvasObject.
|
Returns
| Type |
Description |
| System.IntPtr |
Handle IntPtr.
|
Overrides
Declaration
[Obsolete("DeleteColorClass is obsolete, please use EdjeObject.DeleteColorClass(string)")]
public void DeleteColorClass(string part)
Parameters
| Type |
Name |
Description |
| string |
part |
The Color class to be deleted.
|
Events
View Source
Clicked will be triggered when the button is clicked.
Declaration
public event EventHandler Clicked
Event Type
| Type |
Description |
| System.EventHandler |
|
View Source
Pressed will be triggered when the button is pressed.
Declaration
public event EventHandler Pressed
Event Type
| Type |
Description |
| System.EventHandler |
|
View Source
Released will be triggered when the button is released after being pressed.
Declaration
public event EventHandler Released
Event Type
| Type |
Description |
| System.EventHandler |
|
View Source
Repeated will be triggered when the button is pressed without releasing it.
Declaration
public event EventHandler Repeated
Event Type
| Type |
Description |
| System.EventHandler |
|
Implements
Extension Methods