翻譯|使用教程|編輯:龔雪|2021-04-15 10:14:46.037|閱讀 229 次
概述:DevExpress SplashScreenManager組件的序列化取決于所選的Active Splash Form(SplashScreenManager.ActiveSplashFormTypeInfo屬性),歡迎下載最新版DevExpress體驗(yàn)!
# 界面/圖表報(bào)表/文檔/IDE等千款熱門軟控件火熱銷售中 >>
相關(guān)鏈接:
組件的序列化取決于所選的Active Splash Form(屬性)。
類的實(shí)例在主窗體的InitializeComponent方法中聲明為局部變量,這種序列化方法可確保在所有其他組件之前初始化啟動(dòng)畫面管理器,并在您的表單開始的第一刻啟動(dòng)選定的啟動(dòng)畫面。 但是請(qǐng)注意,您將無(wú)法處理在InitializeComponent方法中聲明SplashScreenManager組件的本地實(shí)例。
這里是在這種情況下可以使用的方法。
C#
// Display a Wait Form SplashScreenManager.ShowForm(typeof(WaitForm2)); //... //Change its caption SplashScreenManager.Default.SetWaitFormCaption("new caption"); //... //Close the Wait Form SplashScreenManager.CloseForm();
VB.NET
' Display a Wait Form SplashScreenManager.ShowForm(GetType(WaitForm2)) '... 'Change its caption SplashScreenManager.Default.SetWaitFormCaption("new caption") '... 'Close the Wait Form SplashScreenManager.CloseForm()
SplashScreenManager類的實(shí)例被聲明為表單的局部變量,而不是InitializeComponent方法。 在這種情況下,您可以使用SplashScreenManager的非靜態(tài)方法(可通過(guò)SplashScreenManager實(shí)例訪問(wèn))打開,關(guān)閉所選的等待表單并與之交互。 這些方法是:, , , and 。
DevExpress技術(shù)交流群3:700924826 歡迎一起進(jìn)群討論
本站文章除注明轉(zhuǎn)載外,均為本站原創(chuàng)或翻譯。歡迎任何形式的轉(zhuǎn)載,但請(qǐng)務(wù)必注明出處、不得修改原文相關(guān)鏈接,如果存在內(nèi)容上的異議請(qǐng)郵件反饋至chenjj@fc6vip.cn
文章轉(zhuǎn)載自:慧都網(wǎng)