Displaying a Splash Screen

Topics: Bootstrappers & IoC
Dec 1, 2011 at 6:18 AM

I'm using Caliburn Micro v1.3 with WPF. I would like to display a splash screen while my app loads.

I have overriden OnStartup as below but can't see how to close my splash when the base.OnStartup completes. My splash screen stays open until the app closes.

        protected override void OnStartup(object sender, System.Windows.StartupEventArgs e)
            var wm = new WindowManager();
            var vm = new StatusReporterViewModel("TEST", "information", null);


                base.OnStartup(sender, e);



Any ideas?



Dec 4, 2011 at 10:01 PM

You can close the SplashScreen in the OnInitialize() Method of your ShellViewModel. To get a reference to the SplashScreen in your Shell either inject it or make it a singleton