Vista Forums
Vista Forums Home Join Vista Forums Donate Vista Tutorials Store Tags

Welcome to Vista Forums we are your forum to discuss Windows Vista x64 and x86 systems.

Go Back   Vista Forums > Vista technology newsgroups > Avalon

WPF Splash?

Reply
 
Thread Tools Display Modes
Old 01-28-2008   #1 (permalink)
john
Guest
 
Posts: n/a

WPF Splash?

All:

It is possible to display a splash screen in WPF, wait for an
animation to finish, and then display the application's main window?

I've tried a variety of things, e.g., putting splash->animation->main
window sequence in the App() constructor, overriding OnStartup, trying
to use Thread.Sleep() --- all to no avail.

What I want is: splash->animation fades splash to transparent->main
window launches when animation finishes.

Any help appreciated.

Thanks,
John


  Reply With Quote

Old 02-14-2008   #2 (permalink)
BladeWise
Guest
 
Posts: n/a

Re: WPF Splash?

Hi John, I'm trying to accomplish almost the same thing, and getting a
strange behaviour.
Please, have a look at the post here
http://forums.microsoft.com/MSDN/Sho...38249&SiteID=1
there is some sample code to display a splash screen and show the main
window on splash closed.
In the example I use a simple RotationTransform as animation, but you
can define easily a fade-in/fade-out
animation and start/begin it from code-behind.
I have a splash that fades in, load some data and then closes showing
the main window, so the method in the post
can be applied to your scenario too... the only issue is with the
window closing before animation timeline has finished, but
you should not have this problem (and can read about it in the
previous cited post).
  Reply With Quote
 
Reply

Thread Tools
Display Modes









Vistax64.com is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media 2005-2008

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46