SmartTextBoxAdapter
Adds suggestions, inline translation and auto-correction to a plain TextBox.
Attaches to TextBox
The text box stays the text box — users type as they always have — but the adapter layers language intelligence on top. As content is entered it can offer completions, correct mistakes and translate on the fly.
It is the lightest-touch way to make a form field feel assisted without changing how the rest of the screen works.
Each capability can be switched on per field through the hub's AI properties, so a notes box can complete sentences while a reference field only corrects spelling. The endpoint does the language work; the control just feels smarter.
What it gives you
- Context-aware suggestions while typing.
- Inline translation between languages.
- Automatic correction of spelling and phrasing.
Use it for
- Notes and description fields that complete themselves
- International data entry with on-the-fly translation
- Cleaner free-text input through automatic correction
Like every adapter, it runs through a SmartHub and inherits its SmartEndpoint — switching the model or provider never changes this code.
var hub = new SmartHub(this) { Endpoint = endpoint };
var smartText = new SmartTextBoxAdapter {
TextBox = notesTextBox
};
// Suggestions, correction and translation now apply as the user types.