Content Controls

Controls that are derived from ContentControl are able to host a single object. ContentControls include Buttons, ListBoxItems, and containers such as the PhoneApplicationFrame and the ScrollViewer control (see Figure 5.3).

Image

FIGURE 5.3 Content controls (excludes some mapping related types).

This chapter does not cover the Frame and its derived classes. For information on the Frame class see Chapter 3, “Understanding the Application Execution Model.” Nor does this chapter cover the PanoramaItem and PivotItem classes, which are discussed in Chapter 11.

ContentControl has a Content property, whose value can be of any type. The way ...

Get Windows® Phone 8 Unleashed 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.