Text Editing Controls

Text editing controls such as TextBox, RichTextBox, AutoCompleteBox, and PasswordBox allow users to input single- and multiple-line simple and rich text.

The TextBoxBase Class

In WPF the TextBox and RichTextBox (covered in the next section) controls derive from the System.Windows.Controls.Primitives.TextBoxBase abstract base class, which provides basic text editing functionality. In Silverlight the TextBox and RichTextBox controls are derived directly from the System.Windows.Controls.Control class.

TextBoxBase provides a common set of properties and events for TextBox and RichTextBox controls, including:

  • AcceptsReturn. A dependency property that defines the behavior of the TextBox and RichTextBox controls when users press the ...

Get XAML Developer Reference now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.