Create a splash screen
Radical utilizes its own internal UI Composition engine to add support to splash screens at application startup:
var bootstrapper = new WindsorApplicationBootstrapper<Presentation.MainView>()
.EnableSplashScreen()Enabling splash screen support is as easy as calling the EnableSplashScreen method on the application bootstrapper instance.
Splash screen content
Since the splash screen content is managed using the UI Composition engine in order to add a content to the splash screen is enough to define a partial view named SplashScreenContent:
Presentation
.Partial
.SplashScreenContentThe View, along with its ViewModel if any, defined in the Presentation.Partial.SplashScreenContent namespace will be used to populate the splash screen.
Splash screen configuration
It is possible to use the SplashScreenConfiguration class to define some splash screen settings:
SizeToContent: Determines the way the splash screen hosting window is dimensioned, the default value isWidthAndHeight;WindowStartupLocation: The splash screen startup location, the default value isCenterScreen;WindowStyle: The splash screen window style, the default value isNone.StartupAsyncWork: Defines the work that should be executed asynchronously while the splash screen is running;Height: Defines the Height of the splash screen window if theSizeToContentvalue isManualorWidth; otherwise is ignored;Width: Defines the Width of the splash screen window if theSizeToContentvalue isManualorHeight; otherwise is ignored;MinWidth: The Minimum Width of the splash screen window. The default value is585;MinHeight: The Minimum Height of the splash screen window. The default value is335;MinimumDelay: Represents the minimum time, in milliseconds, the splash screen will be shown;SplashScreenViewType: Defines the default view thatRadicaluses to host the splash screen content;
Available in Radical.Windows.Presentation starting from version 1.10.3, Democracy milestone.
Last updated