| Subject: WPF Splash? |
| Group: microsoft.public.windows.developer.winfx.avalon |
| Date: 1/28/2008 2:59:46 PM |
| From: john [Email Address Protection] |
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 |
| Back |
| Subject: Re: WPF Splash? |
| Group: microsoft.public.windows.developer.winfx.avalon |
| Date: 2/14/2008 2:49:40 AM |
| From: BladeWise [Email Address Protection] |
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/ShowPost.aspx?PostID=2838249&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). |
| Back |