Silverlight TV Episode 6: Creating Custom Pre-Loaders
- Posted: Feb 04, 2010 at 7:39 AM
- 49,906 Views
- 21 Comments
Download
How do I download the videos?
- To download, right click the file type you would like and pick “Save target as…” or “Save link as…”
Why should I download videos from Channel9?
- It's an easy way to save the videos you like locally.
- You can save the videos in order to watch them offline.
- If all you want is to hear the audio, you can download the MP3!
Which version should I choose?
- If you want to view the video on your PC, Xbox or Media Center, download the High Quality WMV file (this is the highest quality version we have available).
- If you'd like a lower bitrate version, to reduce the download time or cost, then choose the Medium Quality WMV file.
- If you have a Zune, WP7, iPhone, iPad, or iPod device, choose the low or medium MP4 file.
- If you just want to hear the audio of the video, choose the MP3 file.
Right click “Save as…”
- High Quality WMV (PC, Xbox, MCE)
- MP3 (Audio only)
- MP4 (iPod, Zune HD)
- Mid Quality WMV (Lo-band, Mobile)
Silverlight MVP John Stockton of Ascentium appears on the show to explain how to create a custom pre-loader (sometimes called a splash screen) for Silverlight applications. He demonstrates how to create a custom preloading animation and progress indicator
while a Silverlight application loads. He also discusses what you can and cannot do when creating a pre-loader since the pre-loader runs using script and XAML prior to the Silverlight application being fully loaded. Lots of code in this episode!
You can download the source code for the demo from this episode by clicking on this link. John Stockton has more links on his post here.
You can download the source code for the demo from this episode by clicking on this link. John Stockton has more links on his post here.
Follow @SilverlightTV on Twitter for the latest updates.
Comments Closed
Comments have been closed since this content was published more than 30 days ago, but if you'd like to continue the conversation,
please create a new thread in our Forums,
or
Contact Us and let us know.
Follow the Discussion
Always a useful feature. Thanks for all the how-to on this subject. I'll be sure to take advantage of this "feature" from now on.
Real nice and helpful Johns[0], Johns[1]
..Ben
Great presentation John(s)
Cool explanation of Splash Screen feature!
Great topic. I hadn't given this much thought until now and really appreciate your demo.
Thanks for all the great comments guys! I'm glad you found it useful and hopefully I can show off some more items like this.
Not until you upload a custom avatar...
I've tried twice. It would seem that the site doesn't like me
For anyone trying this with vs2010 and getting an error : "Project file must include the .NET Framework assembly 'WindowsBase, PresentationCore, PresentationFramework'". You need to set the build action of the splash page xaml to 'Content' as per this link: http://forums.silverlight.net/forums/t/154070.aspx.
Awesome show John(s)!
Now my users wont bug me about those "swirling blue balls" anymore
John S - You are looking pretty pale in your avatar photo
Hey guys! There's a better way of simulating loading process. I use this java utility http://www.dallaway.com/sloppy/ which acts as a slow proxy. Much handier than using a heavy file for me
Nice work Johnny S... and of course John P. I've had to bag splash screens on two different SL projects because it caused my Xap to not load occasionally (http://forums.silverlight.net/forums/p/138003/332140.aspx). Have you guys seen this?
Hi Gavin!
I haven't had that happen that I'm aware of. If you see it again you might try hook up a JavaScript onload function to check to see if the Silverlight app is loaded and if the pre-loader is running. If neither is true then you may want to kick-start something via JavaScript, basically load the xap dynamiclly at that point.
Does that make sense?
That does make sense John. I haven't had a chance to try a JS workaround, but did notice that the Xap downloads by using an HTTP watch. Unfortunately the decision is usually to just remove it based on time - I'm know you understand how project schedules can make those decisions quickly! Hopefully I can give that a try next cycle.
I do wonder if this has been acknowledged as a bug within the plugin, or if these are just isolated cases..
I do understand that
I hope to get a post on my blog (I'll link from here) within the next week or so detailing the workaround I described. With sample code and everything
.
John S ... thanks. We'd love to see the workaround to that issue that you are using!
John Papa ,
It would be great if you could address the problem with this slapsh page code metioned on John Stockton Blog http://riathoughts.com/blog/silverlight/silverlight-splash-page/
will the solution mentioned really work? If not, then what?
Thanks for the great explainations
Mike Greenway
All,
I've written a follow-up post that addresses the non-loading issue that some of you have described. Check it out and let me know if it fixes your issue.
http://riathoughts.com/blog/silverlight/addressing-the-pre-loader-issue/
Great blog, Good stuff.
Hi John,
I'm trying to create a splash screen where the loading process is essentially depicted by a filling logo(the website logo changing colour bottom-up and completely changes colour at 100%; if you know what I mean). How can I achieve this?
Remove this comment
Remove this thread
close