The Last Word

As you've seen, WPF supports more than one content model. In the previous chapter, you learned about panels, which can wrap multiple elements and apply layout logic. In this chapter you considered content controls, which hold a single element and can range from basics (labels and buttons) to specialized containers that create scrollable and collapsible regions. You also took a quick detour to consider decorators, which allow you to add borders and provide dynamic scaling.

WPF still has more in store. In later chapters, you'll learn about items controls that have yet another content model—they can hold multiple items, each of which is displayed in a specific way (in a list box, a tree, a menu, and so on). But first, in the next ...

Get Pro WPF in C# 2008: Windows Presentation Foundation with .NET 3.5, Second Edition 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.