In this article we will discuss about the Splash Screen in Silverlight 3.
If a Silverlight application is small, it will be downloaded quickly and appear in the browser. If a Silverlight application is large, it may take a few seconds to download. As long as your application takes longer than 500 milliseconds to download, Silverlight will show an animated splash screen.
Splash Screens can be used for the following purposes:
Crating Silverlight Project
- To show the Progress of downloading the xap file. (By Default)
- Copyright Information
- Custom Animation.
Fire up Visual Studio 2008 and create a Silverlight Application. Name it as SplashScreenInSL3.
The built in Splash Screen is not that exciting. It simply displays a ring of blinking circles and the percentage of the application that's been downloaded so far.
Add a new XAML file to your ASP.NET website (not the Silverlight project).
Choose the Silverlight JScript page template, enter a name, and click Add. This XAML file will hold the markup for your splash screen.
Add the following xaml code into it.
That's it run your application to test your Splash Screen. If you still don't see your Splash Screen that is because your page is loading in 500 milli seconds. To see the splash screen build your sample application and this time you will be able to see it.
Remember this is a sample Splash Screen. You can make your own Splash Screen.