DevExpress WinForms帮助文档:表单和用户控件 – 初始屏幕管理器序列化细节

DevExpress SplashScreenManager组件的序列化取决于所选的Active Splash Form(SplashScreenManager.ActiveSplashFormTypeInfo属性),欢迎下载最新版DevExpress体验!

SplashScreenManager 组件的序列化取决于所选的Active Splash Form(SplashScreenManager.ActiveSplashFormTypeInfo属性)。

激活启动表单是Splash Screen或None

SplashScreenManager类的实例在主窗体的InitializeComponent方法中声明为局部变量,这种序列化方法可确保在所有其他组件之前初始化启动画面管理器,并在您的表单开始的第一刻启动选定的启动画面。 但是请注意,您将无法处理在InitializeComponent方法中声明SplashScreenManager组件的本地实例。

这里是在这种情况下可以使用的方法。

  • 若要手动打开和关闭启动窗体,请使用SplashScreenManager类提供的静态方法。
  • 要与当前显示的初始窗体交互,请使用SplashScreenManager.Default对象提供的非静态方法。

C#

// Display a Wait FormSplashScreenManager.ShowForm(typeof(WaitForm2));//...//Change its captionSplashScreenManager.Default.SetWaitFormCaption("new caption");//...//Close the Wait FormSplashScreenManager.CloseForm();

VB.NET

' Display a Wait FormSplashScreenManager.ShowForm(GetType(WaitForm2))'...'Change its captionSplashScreenManager.Default.SetWaitFormCaption("new caption")'...'Close the Wait FormSplashScreenManager.CloseForm()
激活启动表单是一个等待表单

SplashScreenManager类的实例被声明为表单的局部变量,而不是InitializeComponent方法。 在这种情况下,您可以使用SplashScreenManager的非静态方法(可通过SplashScreenManager实例访问)打开,关闭所选的等待表单并与之交互。 这些方法是:SplashScreenManager.ShowWaitForm, SplashScreenManager.CloseWaitForm, SplashScreenManager.SetWaitFormCaption, SplashScreenManager.SetWaitFormDescription and SplashScreenManager.SendCommand。


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

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

高端UI界面开发
标签:

来源:慧都网

声明:本站部分文章及图片转载于互联网,内容版权归原作者所有,如本站任何资料有侵权请您尽早请联系jinwei@zod.com.cn进行处理,非常感谢!

上一篇 2021年3月12日
下一篇 2021年3月12日

相关推荐

发表回复

登录后才能评论