SplashScreen

For defining the information to display in the SplashScreen, the SplashScreenContent class is used. See the API documentation below for the available properties

To show a splash screen, the DialogService is used. The DialogService is a singleton service that can be injected into any page/component. It exposes the following methods to show a splash screen dialog:

  • ShowSplashScreen / ShowSplashScreenAsync (uses the FluentSplashScreen to show the dialog)
  • ShowSplashScreen<T> / ShowSplashScreenAsync<T> where T is a custom component which inherits the FluentSplashScreen component and implements IDialogContentComponent<SplashScreenContent> .

Internally, the ShowSplashScreen methods call the ShowDialog methods. If is possible to directly call these methods and thereby have access to all of the parameters. The ShowSplashScreen variants are just convenience methods that make ite easier to work with panels.

Examples

Default splash screen

This example shows the standard splash screen. Its content can be altered by means of the SplashScreenContent class. In this example, we simulate a startup process that takes 4 seconds.
Example
Open splash screen Open splash screen (async)
Download: 

Custom splash screen

The custom example shows a splash screen that uses a customized layout. See the CustomSplashScreen razor file to see how that can be done.
Example
Open splash screen Open splash screen (async)
Download: 

Documentation

SplashScreenContent Class

Properties

Name
Type
Default
Description
DisplayTimeint
4000
Gets or sets the delay to wait before to close the dialog (in milliseconds).
Default is 4000 milliseconds.
LoadingTextstring?
Gets or sets the text to indicate something is happening.
Logostring?
Gets or sets the logo to show on the splash screen.
Can be a URL or a base64 encoded string or an SVG.
MessageMarkupString?
Gets or sets an extra message. Can contain HTML.
SubTitlestring?
Gets or sets the subtitle.
Typically used to show the name of the suite the product belongs to.
Titlestring?
Gets or sets the title.
Typically used to show the name of the product.

Methods

Name
Parameters
Type
Description
UpdateLabelsstring loadingText
MarkupString? message
void
Updates the labels of the splash screen.

FluentSplashScreen Class

Parameters

Name
Type
Default
Description
ContentSplashScreenContent
DialogFluentDialog
An error has occurred. This application may no longer respond until reloaded. Reload 🗙