O'Reilly logo

Microsoft® Silverlight® Edition: Programming Windows® Phone 7 by Charles Petzold

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

The Mighty Grid

The Grid should be your default choice of panel. It is both flexible and powerful, both simple and versatile. I’m only going to show you one sample program using the Grid in this chapter, but that’s only because the rest of the book has plenty more.

The Grid is somewhat reminiscent of an HTML table, but with several differences: Unlike the HTML table, the Grid doesn’t do formatting. It’s strictly for layout. There’s no concept of headers, for example, or built-in cell dividers. Also, unlike the HTML table, the use of the Grid is actually encouraged.

A Grid has a certain number of rows and columns; rows can be different heights; columns can be different widths. A child of the Grid normally occupies a particular row and column but ...

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