Definition
- Namespace:
- ElmSharp
- Assembly:
- ElmSharp.dll
- API Level:
- preview
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.
|
API Level: preview
Properties
View Source
Sets or gets the autorepeat feature of a given Bbutton.
Declaration
public bool AutoRepeat { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
API Level: preview
View Source
Sets or gets the interval between each generated Repeat event.
Declaration
public double AutoRepeatGapTimeout { get; set; }
Property Value
Type |
Description |
System.Double |
|
API Level: preview
View Source
Sets or gets the initial timeout before the Repeat event is generated.
Declaration
public double AutoRepeatInitialTime { get; set; }
Property Value
Type |
Description |
System.Double |
|
API Level: preview
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
API Level: preview
Methods
Declaration
protected override IntPtr CreateHandle(EvasObject parent)
Parameters
Type |
Name |
Description |
EvasObject |
parent |
Parent EvasObject.
|
Returns
Type |
Description |
System.IntPtr |
Handle IntPtr.
|
Overrides
API Level: preview
Declaration
[Obsolete("DeleteColorClass is obsolete, please use EdjeObject.DeleteColorClass(string)")]
public void DeleteColorClass(string part)
Parameters
Type |
Name |
Description |
System.String |
part |
The Color class to be deleted.
|
API Level: preview
Events
View Source
Clicked will be triggered when the button is clicked.
Declaration
public event EventHandler Clicked
Event Type
Type |
Description |
System.EventHandler |
|
API Level: preview
View Source
Pressed will be triggered when the button is pressed.
Declaration
public event EventHandler Pressed
Event Type
Type |
Description |
System.EventHandler |
|
API Level: preview
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 |
|
API Level: preview
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 |
|
API Level: preview
Implements
Extension Methods