Skip to main content

TextBox Class

Package: GHIElectronics.Endpoint.UI
Namespace: GHIElectronics.Endpoint.UI

Single-line editable text input. Pair with a UI.Keyboard for on-screen typing.

public class TextBox : Widget

Constructors​

TextBox(Widget parent)​

public TextBox(Widget parent)

Create a text box inside parent.

ParameterTypeDescription
parentWidgetContaining widget.

Properties​

Placeholder​

public string Placeholder { get; set; }

Hint text shown when TextBox.Text is empty. null is treated as empty. Getter returns the last value set.

Returns string

Text​

public string Text { get; set; }

Current text content. Reads back live from LVGL (up to 255 UTF-8 bytes).

Returns string

Events​

ValueChanged​

public event EventHandler ValueChanged

Fires on every character insertion or deletion. Runs on the UI thread.