The Last Word

In this chapter, you took a closer look at the ItemsControl classes provided by WPF. You started out with the basic ComboBox and ListBox, and then you considered how to use the ListView to create lists with multiple viewing modes and the TreeView to show hierarchical data. Finally, you considered three more specialized list controls: the Menu, ToolBar, and StatusBar.

The most impressive aspect of all these classes is that they derive from a single base class—the ItemsControl—that defines their essential functionality. The fact that all these controls share the same content model, the same data binding ability, and the same styling and templating features is one of WPF's small miracles. Remarkably, the ItemsControl defines all the ...

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.