6.3. Specialized Containers

Content controls aren't just for basics like labels, buttons, and tooltips. They also include specialized containers that allow you to shape large portions of your user interface. In the following sections, you'll meet some of these more ambitious content controls: the ScrollViewer, GroupBox, TabItem, and Expander. All of these controls are designed to help you shape large portions of your user interface. However, because these controls can hold only a single element, you'll usually use them in conjunction with a layout container.

6.3.1. The ScrollViewer

Scrolling is a key feature if you want to fit large amounts of content in a limited amount of space. In order to get scrolling support in WPF, you need to wrap the ...

Get Pro WPF in C# 2010: Windows Presentation Foundation in .NET 4 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.