Skip to main content

TextBox Class

Namespace: GHIElectronics.TinyCLR.UI.Controls · Assembly: GHIElectronics.TinyCLR.UI

No description available.

public class TextBox : Control

Constructors

TextBox()

public TextBox()

No description available.

Properties

TextAlign

public TextAlignment TextAlign { get; set; }

No description available.

PasswordChar

public char PasswordChar { get; set; }

No description available.

Text

public string Text { get; set; }

No description available.

BorderColor

public Color BorderColor { get; set; }

No description available.

BorderThickness

public ushort BorderThickness { get; set; }

No description available.

PaddingX

public ushort PaddingX { get; set; }

No description available.

PaddingY

public ushort PaddingY { get; set; }

No description available.

Methods

SetTextBinding(object source, string propertyName, bool twoWay)

public void SetTextBinding(object source, string propertyName, bool twoWay = true)

One-way or two-way bind Text to a CLR property on source using reflection. For change notifications implement INotifyBindablePropertyChanged on the source.

ParameterTypeDescription
sourceobject
propertyNamestring
twoWaybool

ClearTextBinding()

public void ClearTextBinding()

No description available.

OnTouchUp(TouchEventArgs e)

protected override void OnTouchUp(TouchEventArgs e)

Handles the touch up event. (inherited)

ParameterTypeDescription
eTouchEventArgsTouch event arguments.

OnButtonDown(ButtonEventArgs e)

protected override void OnButtonDown(ButtonEventArgs e)

Hardware button support: HardwareButton.Select opens the on-screen keyboard, mirroring tap-to-edit behavior.

ParameterTypeDescription
eButtonEventArgs

MeasureOverride(int availableWidth, int availableHeight, out int desiredWidth, out int desiredHeight)

protected override void MeasureOverride(int availableWidth, int availableHeight, out int desiredWidth, out int desiredHeight)

Measurement override. Implement your size-to-content logic here. (inherited)

ParameterTypeDescription
availableWidthintAvailable size that parent can give to the child. May be MaxValue(when parent wants to measure to content). This is soft constraint. Child can return bigger size to indicate that it wants bigger space and hope that parent can throw in scrolling...
availableHeightint
desiredWidthout int
desiredHeightout int

ArrangeOverride(int arrangeWidth, int arrangeHeight)

protected override void ArrangeOverride(int arrangeWidth, int arrangeHeight)

ArrangeOverride allows for the customization of the positioning of children. (inherited)

ParameterTypeDescription
arrangeWidthint
arrangeHeightint

OnRender(DrawingContext dc)

public override void OnRender(DrawingContext dc)

Renders the DataGrid onto it's parent container's graphics. (inherited)

ParameterTypeDescription
dcDrawingContext

Events

TextChanged

public event TextChangedEventHandler TextChanged

No description available.

BindingError

public event BindingErrorEventHandler BindingError

Raised when a binding pull (source → TextBox) or push (TextBox → source) fails. Default behavior is silent (the framework can't sensibly recover); subscribe here to log or surface the error during development.