Skip to main content

Fluent Splash Screen

  • 2 minutes to read

A Windows 10-inspired splash screen.

image

  • Features an Acrylic material effect - a partially transparent texture. This effect is only available if the application runs under Windows 10 Version 1803 (OS build 17134) or newer.
  • You can customize and show this splash screen in code.

Show and Close Splash Screen

You can manually create and show a fluent splash screen with the static SplashScreenManager.ShowFluentSplashScreen method (for instance, you can call it on the application startup). The method’s arguments allow you to specify the content for predefined regions, screen positions, fade animation effects, etc. The image below demonstrates splash screen regions you can customize.

image

To close the splash screen, use the static SplashScreenManager.CloseForm method.

using DevExpress.XtraSplashScreen;

// Show a splashscreen.
FluentSplashScreenOptions op = new FluentSplashScreenOptions();
op.Title = "When Only The Best Will Do";
op.Subtitle = "DevExpress WinForms Controls";
op.RightFooter = "Starting...";
op.LeftFooter = "Copyright © 2000 - 2020 Developer Express Inc." + Environment.NewLine + "All Rights reserved.";
op.LoadingIndicatorType = FluentLoadingIndicatorType.Dots;
op.OpacityColor = Color.Gray;
op.Opacity = 130;
op.LogoImageOptions.SvgImage = Resources.Logo;

DevExpress.XtraSplashScreen.SplashScreenManager.ShowFluentSplashScreen(
    op,
    parentForm: this,
    useFadeIn: true,
    useFadeOut: true
);

//Do an operation
//...

//Close the splashscreen
DevExpress.XtraSplashScreen.SplashScreenManager.CloseForm();

Update Splash Screen Dynamically

Splash screens are displayed in a separate thread. You can dynamically update the contents of the current splash screen with a command sent by the SplashScreenManager.SendCommand method.

FluentSplashScreenOptions op = new FluentSplashScreenOptions();
op.RightFooter = "Done";
SplashScreenManager.Default.SendCommand(FluentSplashScreenCommand.UpdateOptions, op);

The DevExpress.XtraSplashScreen.FluentSplashScreenCommand type enumerates the supported commands.

public enum FluentSplashScreenCommand {
    UpdateOptions,
    SubscribeToCustomDrawEvent
}
See Also