彩票走势图

logo DevExpress WinForm中文手册

流畅启动界面


立即下载DevExpress WinForms

受Windows 10启发的启动界面。

DevExpress WinForms帮助文档
  • 具有Acrylic material effect — a partially 透明的纹理,仅当应用程序在Windows 10 Version 1803 (OS build 17134)或更高版本下运行时,此效果才可用。
  • 您可以自定义并在代码中显示此启动界面。

显示并关闭启动界面

您可以使用静态SplashScreenManager.ShowFluentSplashScreen方法手动创建并显示流畅的启动界面(例如,可以在应用程序启动时调用它),该方法的参数允许指定预定义区域、界面位置、淡入淡出动画效果等的内容,下图演示了可以自定义的启动界面区域。

DevExpress WinForms帮助文档

要关闭启动界面,请使用静态SplashScreenManager.CloseForm方法。

C#:

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();

VB.NET :

' 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()

动态更新启动界面

启动界面显示在单独的线程中,您可以使用SplashScreenManager.SendCommand 方法发送的命令动态更新当前启动界面的内容。

C# :

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

VB.NET :

Dim op As New FluentSplashScreenOptions()
op.RightFooter = "Done"
SplashScreenManager.Default.SendCommand(FluentSplashScreenCommand.UpdateOptions, op)

DevExpress.XtraSplashScreen.FluentSplashScreenCommand类型枚举支持的命令。

C# :

public enum FluentSplashScreenCommand {
UpdateOptions,
SubscribeToCustomDrawEvent
}

VB.NET:

Public Enum FluentSplashScreenCommand
UpdateOptions = 0
SubscribeToCustomDrawEvent = 1
End Enum
扫码咨询


添加微信 立即咨询

电话咨询

客服热线
023-68661681

TOP