StackPanel Class
Package: GHIElectronics.Endpoint.UI
Namespace: GHIElectronics.Endpoint.UI
WPF-style StackPanel: stacks children vertically (default) or horizontally via LVGL flex layout. StackPanel.Spacing is the gap between children; each child's Widget.SetMargin stacks on top of that.
public class StackPanel : Widget
Constructors
StackPanel(Widget parent)
public StackPanel(Widget parent)
Create a stack panel inside parent.
| Parameter | Type | Description |
|---|---|---|
parent | Widget | Containing widget. |
Properties
Orientation
public Orientation Orientation { set; }
Direction in which children are arranged. Set-only; LVGL has no read-back.
Returns Orientation
Spacing
public int Spacing { set; }
Gap in pixels between successive children. Set-only; LVGL has no read-back.
Returns int