Welcome to MSDN Blogs Sign in | Join | Help

You had me at "Hello World!"

XAML, WPF, Silverlight, .NET, Office 2007, Windows code samples and other interesting things

Syndication

Cool Silverlight Splash Screen Concept Demo (including Source Code)

In this tutorial: 

  • Creating a cool (and easy) Vista-like "ray of light" effect in Silverlight
  • Creating images for splash screens

The demo below shows a "core" that emits rays of light as a hypothetical download progresses.

Download source code

 

Images used to create this sample:

Bottom:

Bottom image

Top:

Top image

Just right-click, save them and they are yours! Since I created them myself from scratch, you are free to use them in your projects!

One requirement if you use them: please send me an e-mail at nokola@nokola.com. I appreciate it a lot! Please also link to this site somewhere in the app credits or from your site.

Structure of the Sample

The sample displays 2 images. The bottom image is the “rays” view and the top image contains the “core”.

Having the rays be more intense in the center and less intense at the end is nice for 2 reasons:

·         The image is visually appealing

·        If we animate the Opacity of the rays from 0 to 1 it would look as if the rays “shine out” gradually

I use the second fact to make my life easier. The sample initially displays the rays image with Opacity=0 and the core image on top with Opacity=1.

When the user clicks the Opacity of the rays is animated using this simple XAML animation:

        <Storyboard x:Name="coolStartup" Completed="coolStartup_Completed">

            <DoubleAnimation Storyboard.TargetName="imgAnim" Storyboard.TargetProperty="Opacity"

                             To="1" Duration="00:00:03.00" />

        </Storyboard>

 

Creating the Images

Another challenging part when making this sample is creating the actual images from scratch. Fortunately there are a bunch of good tutorials that you can use.

For example, check this tutorial: http://www.gimptalk.com/tutorial/abstract-art-(-good-for-background-)-33124-1.html. Then on the last step separate the rays image from the core image.

Make sure to convert the black (or white) background to transparency (Colors | Color To Aplha in this case).

I hope you like this sample! I enjoy it a lot!

 

Published Thursday, August 14, 2008 12:19 AM by nikola

Comment Notification

If you would like to receive an email when updates are made to this post, please register here

Subscribe to this post's comments using RSS

Comments

# car insurance &raquo; Cool Silverlight Splash Screen Concept Demo (including Source Code) @ Thursday, August 14, 2008 3:54 AM

PingBack from http://hoursfunnywallpaper.cn/?p=1393

car insurance &raquo; Cool Silverlight Splash Screen Concept Demo (including Source Code)

# Cool Silverlight Splash Screen Concept Demo (including Source Code) @ Thursday, August 14, 2008 7:45 AM

You've been kicked (a good thing) - Trackback from DotNetKicks.com

DotNetKicks.com

# re: Cool Silverlight Splash Screen Concept Demo (including Source Code) @ Thursday, September 11, 2008 8:18 AM

adding a animated clip to this may increase the effect.

               <Canvas.Clip>

                   <EllipseGeometry x:Name="Cliplogo" Center="250,180" RadiusX="0" RadiusY="0" />

               </Canvas.Clip>

                      <DoubleAnimation Storyboard.TargetName="Cliplogo" Storyboard.TargetProperty="(RadiusX)" From="0" To="500" Duration="0:0:4"   />

                       <DoubleAnimation Storyboard.TargetName="Cliplogo" Storyboard.TargetProperty="(RadiusY)" From="0" To="500" Duration="0:0:4"   />

memals

# re: Cool Silverlight Splash Screen Concept Demo (including Source Code) @ Thursday, September 11, 2008 10:54 AM

thanks, this is a nice idea!

nikola

Leave a Comment

(required) 
required 
(required) 

  
Enter Code Here: Required
Page view tracker