You've now seen several containers that are designed to help you manage other bits of content, including the ScrollViewer, GroupBox, and Expander. That makes this a good point to pause and consider another branch of container-like elements that aren't content controls. These are decorators, and they're typically used to add some sort of graphical embellishment around an object.

All decorators derive from System.Windows.Controls.Decorator. Most decorators are designed for use with specific controls. For example, the Button uses a ButtonChrome decorator to get its trademark rounded corner and shaded background, while the ListBox uses the ListBoxChrome decorator. Changing the appearance of these controls involves replacing their decorator ...

Get Pro WPF in C# 2008: Windows Presentation Foundation with .NET 3.5, Second Edition now with O’Reilly online learning.

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