The ItemsControl Class

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 18-1 provides an at-a-glance overview of all the ItemsControl classes in WPF.

Classes that derive from ItemsControl

NOTE

You'll notice that some item wrappers appear in the class hierarchy of classes that derive from ItemsControl. For example, you'll not only see the expected Menu and TreeView classes, but you'll also see MenuItem and TreeViewItem. That's because these classes have the ability to contain ...

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.