CheckBox Class
Package: GHIElectronics.Endpoint.UI
Namespace: GHIElectronics.Endpoint.UI
Two-state check box with a label. CheckBox.ValueChanged fires on each toggle.
public class CheckBox : Widget
Constructors
CheckBox(Widget parent)
public CheckBox(Widget parent)
Create a check box inside parent.
| Parameter | Type | Description |
|---|---|---|
parent | Widget | Containing widget. |
Properties
IsChecked
public bool IsChecked { get; set; }
Checked state. Read-back is supported by LVGL.
Returns bool
Text
public string Text { get; set; }
Label text shown next to the check box. null is treated as empty. Getter returns the last value set.
Returns string
Events
ValueChanged
public event EventHandler ValueChanged
Fires when CheckBox.IsChecked toggles via user interaction. Runs on the UI thread.