Splash Screen in Silverlight Demos

3 posts, 0 answers
  1. Eugene Bykov
    Eugene Bykov avatar
    9 posts
    Member since:
    Sep 2009

    Posted 31 Aug 2009 Link to this post

    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. Miroslav
    Admin
    Miroslav avatar
    922 posts

    Posted 01 Sep 2009 Link to this post

    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.
  3. Eugene Bykov
    Eugene Bykov avatar
    9 posts
    Member since:
    Sep 2009

    Posted 01 Sep 2009 Link to this post

    Hello, Miroslav,

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

    Sincerely,
    Eugene
Back to Top