BlackWaspTM

This web site uses cookies. By using the site you accept the cookie policy.This message is for compliance with the UK ICO law.

Windows Presentation Foundation
.NET 4.0+

WPF Text Input Controls Class Hierarchy

The fifty-fourth part of the Windows Presentation Foundation Fundamentals tutorial looks at the base classes of the WPF text input controls. This article includes the inheritance hierarchy of all of the WPF controls seen so far.

Text Input Controls

In recent articles in the WPF tutorial we've examined some controls that permit the user to enter text. These were the TextBox, PasswordBox and RichTextBox controls. The TextBox control is useful for accepting small amounts of plain text. PasswordBox is ideal for passwords and other secure data. The RichTextBox control allows for much more complex text, including entire documents, with formatting and inserted images.

As with the WPF layout controls and WPF information controls, let's now add these controls and their base classes to the the inheritance hierarchy of the WPF controls. Understanding this hierarchy is important to fully appreciate the use of the controls and their methods, properties and events.

Class Hierarchy

The updated type hierarchy is as follows:

In the following articles we'll examine the newly added base class, TextBoxBase. As with earlier articles, the examination of this class will not be exhaustive. We'll concentrate on the more commonly used members of the type.

26 March 2014