Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

disable silverlight loading screen

Does anyone know how I could not show the default Silverlight loading blue balls and percentage.

It only shows up for a split second and I don't think I really need it as I am hiding my Silverlight under a jQuery slider. By the time the user knows what happened it is loaded and ready to go.

One other problem is I believe my jQuery waits for the Silverlight to load before it runs. Anyone know a way around this. Is Silverlight a part of what it is looking for when it is checking $(document).ready()?

Edit: Just thought I would add that I seemed to have answered my second question by implementing what AnthonyWJones suggested. Seems as though my jQuery doesn't wait or hang on Silverlight loading now and kicks off quickly and smoothly.

like image 477
theDawckta Avatar asked Aug 03 '11 03:08

theDawckta


1 Answers

To disable the default "loading screen" (its called the Splash screen in silverlight parlance) provide your own Xaml for the splash screen.

Create a "EmptySplash.xaml" in Visual Studio. Place it as content in the Web project in the ClientBin folder.

Now add in the object element add the parameter:-

 <param name="splashscreensource" value="clientbin/EmptySplash.xaml" />
like image 63
AnthonyWJones Avatar answered Nov 06 '22 14:11

AnthonyWJones