Chapter 5. The Grid panel

This chapter covers:

  • The Grid layout
  • Localizing with the Grid
  • The UniformGrid
  • Turning your $2000 computer into a $5 pocket calculator

So far we’ve spent a lot of time talking about all the different layout controls available—except the one that you’re likely to use much of the time! The Grid panel control is the most powerful and, except for the Canvas which has no real rules, the most flexible. The Grid can be used to emulate the behavior of many of the other layout options, but it’s easier to use the more appropriate layout panel.

Aside from being the default layout used by Visual Studio, the Grid is a good layout for things like dialogs with a number of interactive controls (text boxes, radio buttons, and so on). ...

Get WPF in Action with Visual Studio 2008 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.