Specialized Containers

In Chapter 7, you'll consider all the control basics and look at simple content controls such as the Label and Button in more detail. But first, it's worth taking a detour to consider a few more sophisticated content controls: 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 only hold a single element, you'll usually use them in conjunction with a layout container.

The ScrollViewer

In the previous chapter, you tried out several containers. However, none of them provided support for scrolling, which is a key feature if you want to fit large amounts of content in a limited amount of space. In WPF, ...

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.