Controls

Abstract

Now that you’ve learned the fundamentals of layout, content, and event handling, you’re ready to take a closer look at WPF’s family of elements. In this chapter, you’ll consider controls—elements that derive from the System. Windows. Control class. You’ll begin by examining the base Control class, and learning how it supports brushes and fonts. Then you’ll explore the full catalog of WPF controls, including the following:

Headered content controls: These are content controls that allow you to add a main section of content and a separate title portion. They are usually intended to wrap larger blocks of user interface. They include the Tab Item, Group Box, and Expander classes.

Text controls: This is the small set of controls that allow users to enter input. The text controls support ordinary text (the Text Box), passwords (the Password Box), and formatted text (the Rich Text Box, which is discussed in Chapter 28).

List controls: These controls show collections of items in a list. They include the List Box and Combo Box classes.

Range-based controls: These controls have just one thing in common: a Value property that can be set to any number in a prescribed range. Examples include the Slider and Progress Bar classes.

Date controls: This category includes two controls that allow users to select dates: the Calendar and Date Picker.

Keywords

Control Class Content Control Content Property Radio Button Placement Property

These keywords were added by machine and not by the authors. This process is experimental and the keywords may be updated as the learning algorithm improves.