windowsforms-401719-controls-and-libraries-forms-and-user-controls-splash-screen-manager-fluent-splash-screen.md
A Windows 10-inspired 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.
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();
' Show a splashscreen.
Dim op As FluentSplashScreenOptions = 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 = My.Resources.Logo
DevExpress.XtraSplashScreen.SplashScreenManager.ShowFluentSplashScreen(op, parentForm:=Me, useFadeIn:=True, useFadeOut:=True)
'Do an operation
'...
'Close the splashscreen
DevExpress.XtraSplashScreen.SplashScreenManager.CloseForm()
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);
Dim op As 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
}
Public Enum FluentSplashScreenCommand
UpdateOptions = 0
SubscribeToCustomDrawEvent = 1
End Enum
See Also