Radical Documentation
View on GitHub
Primary version
Primary version
  • Home
  • Presentation
    • AbstractViewModel
    • Conventions
      • Bootstrap Conventions
      • Runtime Conventions
      • Conventions override
    • Commands and DelegateCommand
    • IViewResolver
      • Default view behaviors
      • view life cycle events
        • Callback expectations
        • notify messages
    • Message broker MVVM built-in messages
    • Application boot process
      • Application configuration
      • Application shutdown
      • Singleton applications
    • AbstractMementoViewModel
      • Simple ViewModel graphs
      • Collections and complex ViewModel graphs
    • Validation and Validation Services
    • Resources
      • Services as resources
      • ViewModels as resources
  • UI Composition
    • UI Composition
      • Region content lifecycle
      • TabControl region
      • Create a custom region
  • Concepts
    • Inversion of Control
      • Third party DI containers
    • Entities
      • Property System
    • Messaging and Message Broker
      • POCO messages
      • Standalone message handlers
    • Observers
      • PropertyObserver
      • MementoObserver
      • BrokerObserver
  • Memento
    • Change Tracking Service
      • MementoEntity and MementoEntityCollection
      • Handling change tracking:
        • Simple model
        • Collections
        • Complex objects graph
      • Atomic operations
      • Change Tracking Service API
      • Property Metadata for the ChangeTrackingService
      • Handling collection sync
      • Property State
  • Behaviors
    • DataGrid Behaviors
    • Password
    • Generic routed event handler to command behavior
    • Overlay adorner
      • Busy status manager
    • TextBox behaviors:
      • Command
      • Auto select
      • DisableUndoManager (.Net 3.5 only)
  • Markup Extensions
    • Editor binding
    • Auto Command binding
  • How to
    • Get the view of a given view model
    • Bi-directional communication between different windows/views
    • Handle the busy status during async/long running operations
    • Implement a customer improvement program
    • Manage focus
    • Create a splash screen
    • Access view model after view is closed
    • Intercept ViewModels before they are used
  • Upgrade guides
    • Radical Presentation 1.x to Radical 2.x for .NET Core
    • Radical 2.0.0 to Radical 2.1.0
Powered by GitBook
On this page
  • Splash screen content
  • Splash screen configuration
  1. How to

Create a splash screen

PreviousManage focusNextAccess view model after view is closed

Last updated 3 years ago

Radical utilizes its own internal engine to add support for splash screens at application startup:

class App : Application
{
   public App()
   {
      this.AddRadicalApplication<MainView>(configuration => 
      {
         configuration.EnableSplashScreen();
      });
   }
}

Enabling splash screen support is as easy as calling the EnableSplashScreen method on the application configuration.

Splash screen content

Splash screen content is managed using the UI Composition engine. To add content to the splash screen is enough to define a named SplashScreenContent:

.Presentation
  .Partial
     .SplashScreenContent

The 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 is WidthAndHeight;

  • WindowStartupLocation: The splash screen startup location, the default value is CenterScreen;

  • WindowStyle: The splash screen window style, the default value is None.

  • 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 the SizeToContent value is Manual or Width; otherwise is ignored;

  • Width: Defines the Width of the splash screen window if the SizeToContent value is Manual or Height; otherwise is ignored;

  • MinWidth: The Minimum Width of the splash screen window. The default value is 585;

  • MinHeight: The Minimum Height of the splash screen window. The default value is 335;

  • MinimumDelay: Represents the minimum time, in milliseconds, the splash screen will be shown;

  • SplashScreenViewType: Defines the default view that Radical uses to host the splash screen content;

UI Composition
partial view