O'Reilly logo

WPF in Action with Visual Studio 2008 by Maxx Daymon, Arlen Feldman

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

Chapter 4. Working with Layouts

This chapter covers:

  • Laying out controls with Panels
  • The different layout panels in WPF
  • The FlowDocument
  • Things named poorly in order to confuse and confound

Starting in the next chapter, we’re going to build a calculator. We know it’s boring and all, but it demonstrates a lot of concepts relative to WPF, and is a simple enough example that the implementation details won’t get too much in the way of what we’re doing. As with any application, one of the key elements is figuring out how to handle the layout of the various controls. Unlike in previous MS frameworks, the idea of layout is a concrete concept in WPF, and there are a number of predefined layouts.

The most powerful layout is the Grid layout, which is ...

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