Sizing Pages
So far, you've taken an extensive look at the different layout containers Silverlight offers and how you can use them to arrange groups of elements. However, there's one important part of the equation that you haven't considered yet—the top-level page that holds your entire user interface.
As you've already seen, the top-level container for each Silverlight page is a custom class that derives from UserControl. The UserControl class adds a single property, named Content, to Silverlight's basic element infrastructure. The Content property accepts a single element, which becomes the content of that user control.
User controls don't include any special functionality—they're simply a convenient way to group together a block of related ...
Get Pro Silverlight 5 in VB 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.