Creating Custom Content Loaders

Out of the box, the navigation framework simply loads XAML files from your project or from a referenced assembly into a Frame control. However, perhaps you want to add some custom logic to this process, such as dynamically downloading XAPs from the server or checking that the users are authorized to access the view they've navigated to. Silverlight 4 introduced the concept of content loaders into the navigation framework. A custom content loader enables you to add your own logic to the process of loading content into a Frame control.

The navigation framework comes with a default content loader named PageResourceContentLoader, but it only allows you to load views existing in the current XAP file. However, perhaps ...

Get Pro Business Applications with Silverlight 5 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.