TextBox - SirePi/duality-ui GitHub Wiki

A TextBox is a control that accepts keyboard input and is used to input short strings such as names and similar. Derives from InteractiveControl.

In addition to the Control's base properties and delegates, it also exposes:

  • Property Text - the current value of the TextBox .
  • Property TextConfiguration - the TextBox's TextConfiguration object.
  • Property CaretSpeed - the blinking speed, in seconds, of the caret.
  • Property IsPassword - if set to true, the characters displayed are substituted by asterisks.
  • Property MaxLength - the maximum length of the text that one can type inside the TextBox.
  • Event OnTextChange(TextBox textBox, string oldText, string newText) - an event that gets fired whenever the TextBox's Text property changes.