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 ...
Get Essential Silverlight 3 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.