Chapter 3. Layout

Half the battle in user interface design is organizing the content in a way that's attractive, practical, and flexible. In a browser-hosted application, this is a particularly tricky task, because your application may be used on a wide range of different computers and devices (all with different display hardware), and you have no control over the size of the browser window in which your Silverlight content is placed.

Fortunately, Silverlight inherits the most important part of WPF's extremely flexible layout model. Using the layout model, you organize your content in a set of different layout containers. Each container has its own layout logic—one stacks elements, another arranges them in a grid of invisible cells, and another ...

Get Pro Silverlight 4 in C# 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.