This is a migrated thread and some comments may be shown as answers.

Splash Screen in Silverlight Demos

2 Answers 111 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Eugene Bykov
Top achievements
Rank 1
Eugene Bykov asked on 01 Sep 2009, 04:54 AM
Hello,
I'm studying techniques and practices in the Silverlight demos. Found an interesting problem I cannot understand. When you first load the demos you see a progressbar and four icons that fade out after data has been loaded, revealing the demos home.
I found two images in examples source folder ExamplesWeb\SplashScreen: backgrounf.jpg and splash-loading.png, corresponding to the screen background and these four icons respectively.
I modify these files, changing the background color to red so I could easily see where these files are used. What I get is that background and icons really change to red, but only until the progressbar is filled. All changes when the icons start to fade out.
I cannot understand, why when these icons fade out, still the original blue background and blue icons are used. I cannot find any more copies of these image files in any Examples folder.
Could you please, explain, how this works and where the original images are loaded from? I refresh the page with Ctrl+F5, so any images from cache should be reloaded anyway.
Thank you,
Sincerely,
Eugene

2 Answers, 1 is accepted

Sort by
0
Miroslav
Telerik team
answered on 01 Sep 2009, 05:06 PM
Hello Eugene,

The progressbar you see is a splash screen that is assigned as a xaml file to the Silverlight object object in the web page. It is essentially Silverlight 1.0 and it is loaded before the Silverlight 2/3 application. It is controlled though JavaScript.

The images that you are probably changing are part of the Silverlight project. They are there just for consistency - so that the change between the loading screen and the application will not be that sudden.

This MSDN article describes the splash screens in more detail:

http://msdn.microsoft.com/en-us/library/cc903962(VS.95).aspx

All the best,
Miroslav
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
Eugene Bykov
Top achievements
Rank 1
answered on 01 Sep 2009, 05:14 PM
Hello, Miroslav,

Thanks for the reply, I'll investigate the link.

Sincerely,
Eugene
Tags
General Discussions
Asked by
Eugene Bykov
Top achievements
Rank 1
Answers by
Miroslav
Telerik team
Eugene Bykov
Top achievements
Rank 1
Share this question
or