Create a reusable Silverlight SplashScreen

By now you can easily share your Silverlight SplashScreen without copy any files but just referencing some assemblies and editing few lines of code.

Here the Eye Open Splash Screen




The steps you need to take to use the EyeOpen Splash Screen are the following:
  • Select your web application\web site project and add reference to EyeOpen.Web and EyeOpen.SplashScreen
  • Open the aspx\html page that contains the Silverlight plugin and add this line of code in the <head> tag.
<script type="text/javascript" src="EyeOpenSplash.js.splash.axd"/>
  • Add these lines of code in the param collection of the plugin
<param name="splashscreensource" value="EyeOpenSplash.xaml.splash.axd"/>
<param name="onSourceDownloadProgressChanged" value="onSourceDownloadProgressChanged"/>
  • Open the web.config of the web application\web site and add this line in the appSettings section
<add key="ResourcesAssembly" value="EyeOpen.SplashScreen" />
  • Add this lines of code int the system.web section only if you are using II6
<httpHandlers>
  <add
      type="EyeOpen.Web.ResourceHandler"
      verb="*"
      path="*.xaml.splash.axd"
   />
   <add
      type="EyeOpen.Web.ResourceHandler"
      verb="*"
      path="*.js.splash.axd"
   />
   <add
      type="EyeOpen.Web.ResourceHandler"
      verb="*"
      path="*.png.splash.axd"
   />
</httpHandlers>
  • Add this lines of code int the system.web section only if you are using II7
  <handlers>
    <add
      name="XamlResourceHandler"
      type="EyeOpen.Web.ResourceHandler"
      verb="*"
      path="*.xaml.splash.axd"
    />
    <add
      name="JsResourceHandler"
      type="EyeOpen.Web.ResourceHandler"
      verb="*"
      path="*.js.splash.axd"
    />
   <add
      name="PngResourceHandler"
      type="EyeOpen.Web.ResourceHandler"
      verb="*"
      path="*.png.splash.axd"
   />
</handlers>

Last edited Feb 25, 2011 at 5:13 PM by teoarch, version 6

Comments

No comments yet.