AABBbaby

导航

< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5

统计

现代应用的启动屏幕如何更美观?这款第三方控件你使用了吗?

点击获取DevExpress完整版下载

DevExpress技术交流群3:700924826      欢迎一起进群讨论

具有皮肤感知功能的初始屏幕。

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

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

DevExpress WinForms帮助文档

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

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

上DevExpress中文网,获取第一手最新产品资讯!

 

posted on   AABBbaby  阅读(101)  评论(0编辑  收藏  举报

编辑推荐:
· SQL Server 2025 AI相关能力初探
· Linux系列:如何用 C#调用 C方法造成内存泄露
· AI与.NET技术实操系列(二):开始使用ML.NET
· 记一次.NET内存居高不下排查解决与启示
· 探究高空视频全景AR技术的实现原理
阅读排行:
· 阿里最新开源QwQ-32B,效果媲美deepseek-r1满血版,部署成本又又又降低了!
· 单线程的Redis速度为什么快?
· SQL Server 2025 AI相关能力初探
· AI编程工具终极对决:字节Trae VS Cursor,谁才是开发者新宠?
· 展开说说关于C#中ORM框架的用法!
历史上的今天:
2018-03-16 用MyEclipse JPA创建项目(三)
点击右上角即可分享
微信分享提示