The TextBox control allows users to enter a string. It supports highlighting, copy/paste, selection with mouse and keyboard, and CTRL key for performing operations on entire words.
Code Example: Creating a TextBox
The following code creates a TextBox.
var textBox =newTextBox();this.Root.Children.Add(textBox.Visual);textBox.X=50;textBox.Y=50;textBox.Width=200;textBox.Height=34;textBox.Placeholder="Placeholder Text...";var textBox2 =newTextBox();this.Root.Children.Add(textBox2.Visual);textBox2.X=50;textBox2.Y=90;textBox2.Width=200;textBox2.Height=34;textBox2.Placeholder="Placeholder Text...";