Button Class
Package: GHIElectronics.Endpoint.UI
Namespace: GHIElectronics.Endpoint.UI
Clickable push button with text, color, and font-size properties.
public class Button : Widget
Constructors
Button(Widget parent)
public Button(Widget parent)
Create a button inside parent.
| Parameter | Type | Description |
|---|---|---|
parent | Widget | Containing widget. |
Properties
BackgroundColor
public uint BackgroundColor { get; set; }
Button background color as 0x00RRGGBB. Getter returns the last value set.
Returns uint
FontSize
public int FontSize { get; set; }
Caption font size in pixels. Getter returns the last value set.
Returns int
Text
public string Text { get; set; }
Button caption. null is treated as empty. Getter returns the last value set.
Returns string
TextColor
public uint TextColor { get; set; }
Caption color as 0x00RRGGBB. Getter returns the last value set.
Returns uint
Events
Clicked
public event EventHandler Clicked
Fires when the button is clicked (press-and-release inside its bounds). Runs on the UI thread.