O'Reilly logo

XAML Developer Reference by Ashish Ghoda, Mamta Dalal

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required