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

Content

In the previous chapter you explored the WPF layout system, which lets you arrange a window by placing elements into specialized layout containers. With this system, even a simple window breaks down to a nested series of Grid, StackPanel, and DockPanel containers. Dig deep enough and you'll eventually find the visible elements (widgets such as buttons, labels, and text boxes) inside the various containers.

However, the layout containers aren't the only example of nested elements. In fact, WPF is designed with a new content model that lets you place elements inside other elements that are otherwise ordinary. Using this technique, you can take many simple controls—such as buttons—and place pictures, vector shapes, and even layout containers ...

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