views:

59

answers:

1

Is it possible to show a splash screen in WPF that has animation. I want my name of the company and the name of the application to fly in and a progress bar that continously animates. I Used this example

http://blogs.lessthandot.com/index.php/DesktopDev/MSTech/wpf-and-the-splashscreen

to try and get me started but the progress bar doesnt animate?

Also I do have on the progress bar the following property set. IsIndeterminate="True"

I am using vb.net.

Thanks, spafa9

+1  A: 

See my answer at the bottom of this question: http://stackoverflow.com/questions/48916/multi-threaded-splash-screen-in-c/3296362#3296362

This is in C#, but it does work with an animated indeterminate progress bar.

Jay
I will see if I can figure it out with VB thanks!
Spafa9
How do I referance the <Application Startup="ApplicationStart" I am getting that it is not apart of the project or its build action is not a resource. StartupUri="Application_Startup"
Spafa9
The part I dont know how to convert to vb is this
Spafa9
var thread = new Thread(() => { Dispatcher.CurrentDispatcher.BeginInvoke ((Action)(() => new MySplashForm().Show())); Dispatcher.Run(); });
Spafa9
OK I got a litte farther. The splash screen never shows up but the mainwindow does? Dim SplashThread As New Thread(AddressOf ShowSplash) SplashThread.SetApartmentState(ApartmentState.STA) SplashThread.IsBackground = True SplashThread.Start() ' call synchronous configuration process ' and declare/get reference to "main form" SplashThread.Abort() MainWindow = New MainWindow() MainWindow.Show() MainWindow.Activate()
Spafa9