O'Reilly logo

Pro Silverlight 5 in VB by Matthew MacDonald

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

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 ...

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