O'Reilly logo

Essential Silverlight 3 by Ashraf Michail

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

7. Layout

THIS CHAPTER DESCRIBES how to use the layout system to automatically size and position elements in your application. In particular, this chapter discusses the following:

• The Silverlight layout design principles

• How to use the Canvas, StackPanel, Grid, and Border elements

• How to build custom layout elements

• How the layout system works “under the hood”

Layout Principles

The layout system determines the size and position of the elements in your application. The design goals include

• Automatic sizing and positioning of graphical elements and controls in your application

• Automatic response to display area size changes—for example, by resizing the browser window

• Providing a resolution-independent layout that will have the same ...

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