O'Reilly logo

Pro WPF in C# 2008: Windows Presentation Foundation with .NET 3.5, Second Edition by Matthew MacDonald

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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, ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required