Class FormField
A content widget with the visual appearance and behaviour of a form field.
Assembly: SociallyDistant.Framework.dll
public sealed class FormField : ContentWidget, IFontFamilyProvider, IInspectable, IContentWidget, IUpdateThemeProperties, IMouseDownHandler, IMouseUpHandler, IMouseClickHandler, IMouseHandler, IVisual<FormField.VisualState>
Constructors
Creates a new instance of the FormField widget.
Declaration
Properties
Gets or sets a callback to execute when the field is clicked.
Declaration
public Action? ClickCallback { get; set; }
Property Value
Content
Declaration
public override Widget? Content { get; set; }
Property Value
Overrides
Gets or sets the description of the field.
Declaration
public string? Description { get; set; }
Property Value
Gets or sets the field's title.
Declaration
public string Title { get; set; }
Property Value
Gets a read-only reference to the visual properties associated with the widget.
Declaration
public ref readonly FormField.VisualState VisualProperties { get; }
Property Value
Methods
Declaration
public void OnMouseClick(MouseButtonEvent e)
Parameters
Declaration
public void OnMouseDown(MouseButtonEvent e)
Parameters
Declaration
public void OnMouseUp(MouseButtonEvent e)
Parameters
Declaration
protected override void RebuildGeometry(GeometryHelper geometry)
Parameters
Overrides
Retrieves layout properties from the visual style. Called by the UI system on every
frame before layout updates occur. If layout properties change during this method call,
the widget will automatically invalidate its own layout.
Declaration
public void UpdateThemeProperties()
Implements