How the Silverlight loader works

Microsoft's documentation on Silverlight Splash Screens offers the following insight into how one should go about creating an alternative type of loader:

"

  1. Load an initial Source XAML page that is the "splash screen".
  2. Initiate the download of the main source XAML page and any initial resources such as images or videos that the page requires, using Downloader.
  3. As soon as each Downloader raises Completed for all content, change the actual Source value at the HTML DOM level, which unloads the "splash screen" and loads your primary content. The transition is instant at this point because each required element is already preloaded into the browser cache.

"

Taking the above idea and transitioning it to the managed world could translate to something along the lines of:

1. Load an initial small XAP file a.k.a. the loader.

2. Initiate the download of the XAP/s and other resource/s in the managed code loader (downloaded in step 1) using a managed code downloader.

3. As soon as the Managed code downloader raises a complete event for all the XAP's and resources, change the source at the HTML DOM level to the new primary XAP source, which unloads the loader and loads your primary content. The transition is instant at this point because each required element is already preloaded into the browser cache.

This is basically how the Silverlight loader framework works.

Check out the Silverlight Loader class diagram and the Silverlight Loader getting started guide for more information.

Powered by BlogEngine.NET 1.2.0.0
Theme by Mads Kristensen

About the author

Name of author

My name is Bacon…James Bacon.

I am an API wars veteran I was wounded by x86 assembly, recovered and moved on to C. I am currently stuck in C++ and sniffing .NET.

I am mainly here to ramble about coding, various API’s, Junkies(me especially) and everything else that happens between coders and their significant other.

E-mail me Send mail


Calendar

<<  January 2009  >>
MoTuWeThFrSaSu
2930311234
567891011
12131415161718
19202122232425
2627282930311
2345678

View posts in large calendar

Recent comments

Authors

Disclaimer

The opinions expressed herein are my own personal opinions and do not represent my employer's view in anyway.

© Copyright 2009

Sign in