I am using PRISM 4.1 with UNITY for my application. I want to display a nice splash screen which will be a xaml window that will show a progress bar. Once all modules are loaded (one of the modules does lengthy database access operation on startup) splash screen should close and shell is shown. I cannot find any sample for this, all samples online use in-built SplashScreen which just points to static image. I want my splash screen to be xaml not just a static image or animated gif.
2 Answers
To start your own XAML based Splash screen via the Bootstrapper (in this example he refers to "his own" SplashScreen.xaml based on Window....don't confuse with the in-built SplashScreen class):
- http://www.thejoyofcode.com/Showing_a_Splash_Screen_whilst_initializing_a_WPF_Prism_application.aspx
To start your own XAML based Splash screen Window defined in a Module:
To use the in-built SplashScreen class which references a static image as the splash (be aware the splash image is NOT set to Build Type=SplashScreen...it's set to Built Type=Resource....because the resource is referred to in the constructor):
Try this example : Prism Splash Screen Module
This project is intended to demonstrade a neat way for developers to add splash screen to their Prism based applications. The main features are:1. The splash screen is encapsulated in a Prism module, which can be loaded explicitly by bootstraper code or implicitly loaded fro...