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.
| Parameter | Type | Description |
|---|---|---|
source | object | |
propertyName | string | |
twoWay | bool |
ClearTextBinding()
public void ClearTextBinding()
No description available.
OnTouchUp(TouchEventArgs e)
protected override void OnTouchUp(TouchEventArgs e)
Handles the touch up event. (inherited)
| Parameter | Type | Description |
|---|---|---|
e | TouchEventArgs | Touch 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.
| Parameter | Type | Description |
|---|---|---|
e | ButtonEventArgs |
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)
| Parameter | Type | Description |
|---|---|---|
availableWidth | int | Available 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... |
availableHeight | int | |
desiredWidth | out int | |
desiredHeight | out 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)
| Parameter | Type | Description |
|---|---|---|
arrangeWidth | int | |
arrangeHeight | int |
OnRender(DrawingContext dc)
public override void OnRender(DrawingContext dc)
Renders the DataGrid onto it's parent container's graphics. (inherited)
| Parameter | Type | Description |
|---|---|---|
dc | DrawingContext |
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.