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

Loading User Controls

The basic idea of do-it-yourself navigation is to programmatically change the content that's shown in the Silverlight page, usually by manipulating layout containers or content controls. Of course, you don't want to be forced to create and configure huge batches of controls in code—that task is easier to complete using XAML. Instead, you need a way to create and load distinct user controls, each of which represents a page, and each of which is prepared at design time as a separate XAML file.

In the following sections, you'll see two related variations of this technique. First, you'll see an example that loads user controls into an existing page. This approach is best suited to user interfaces that need to keep some common ...

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