20.3. List Controls

String formatting and value converters are all you need to apply flexible formatting to individual bound values. But bound lists need a bit more. Fortunately, WPF provides no shortage of formatting choices. Most of these built into the base ItemsControl class from which all list controls derive, so this is where your list-formatting exploration should start.

As you know, the ItemsControl class defines the basic functionality for controls that wrap a list of items. Those items can be entries in a list, nodes in a tree, commands in a menu, buttons in a toolbar, and so on. Figure 20-4 provides an at-a-glance overview of all the ItemsControl classes in WPF.

Figure 20.4. Classes that derive from ItemsControl

NOTE

You'll notice ...

Get Pro WPF in C# 2010: Windows Presentation Foundation in .NET 4 now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.