彩票走势图

logo DevExpress WinForm中文手册

皮肤启动界面


立即下载DevExpress WinForms

具有皮肤感知功能的启动界面。

DevExpress WinForms帮助文档
  • 颜色和字体设置取决于皮肤。
  • 您可以自定义并在代码中显示此启动界面。

显示并关闭启动界面

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

DevExpress WinForms帮助文档

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

C#:

using DevExpress.XtraSplashScreen;

// Logo image.
Image myLogoImage = Resources.Logo;

// Show a splashscreen.
SplashScreenManager.ShowSkinSplashScreen(
logoImage: myLogoImage,
title: "When Only The Best Will Do",
subtitle: "DevExpress WinForms Controls",
footer: "Copyright © 2000 - 2020 Developer Express Inc." + Environment.NewLine + "All Rights reserved.",
loading: "Starting...",
parentForm: this
);

//Do an operation
//...

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

VB.NET :

Imports DevExpress.XtraSplashScreen

' Logo image.
Dim myLogoImage As Image = My.Resources.Logo

' Show a splashscreen.
DevExpress.XtraSplashScreen.SplashScreenManager.ShowSkinSplashScreen(
logoImage:=myLogoImage,
title:="When Only The Best Will Do",
subtitle:="DevExpress WinForms Controls",
footer:="Copyright © 2000 - 2020 Developer Express Inc." & Environment.NewLine & "All Rights reserved.",
loading:="Starting...",
parentForm:=Me
)

'Do an operation
'...

'Close the splashscreen
DevExpress.XtraSplashScreen.SplashScreenManager.CloseForm()

动态更新启动界面

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

C#:

SplashScreenManager.Default.SendCommand(SkinSplashScreenCommand.UpdateLoadingText, "Done");

VB.NET:

SplashScreenManager.Default.SendCommand(SkinSplashScreenCommand.UpdateLoadingText, "Done")

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

C#:

public enum SkinSplashScreenCommand {
UpdateTitle,
UpdateSubtitle,
UpdateFooter,
UpdateLoadingText,
UpdateLogoImage,
UpdateSvgImageSize
}

VB.NET:

Public Enum SkinSplashScreenCommand
UpdateTitle = 0
UpdateSubtitle = 1
UpdateFooter = 2
UpdateLoadingText = 3
UpdateLogoImage = 4
UpdateSvgImageSize = 5
End Enum
扫码咨询


添加微信 立即咨询

电话咨询

客服热线
023-68661681

TOP