翻譯|使用教程|編輯:龔雪|2021-03-15 10:54:00.613|閱讀 304 次
概述:本節將為大家介紹DevExpress WinForms具有皮膚感知功能的初始屏幕。
# 界面/圖表報表/文檔/IDE等千款熱門軟控件火熱銷售中 >>
相關鏈接:
具有皮膚感知功能的初始屏幕。
您可以使用靜態方法手動創建并顯示皮膚啟動屏幕(例如可以在應用程序啟動時調用它),該方法的參數允許您指定預定義區域、屏幕位置、淡入淡出動畫效果等的內容,下圖演示了您可以自定義的初始屏幕區域。
要關閉啟動畫面,請使用靜態方法。
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技術交流群3:700924826 歡迎一起進群討論
本站文章除注明轉載外,均為本站原創或翻譯。歡迎任何形式的轉載,但請務必注明出處、不得修改原文相關鏈接,如果存在內容上的異議請郵件反饋至chenjj@fc6vip.cn
文章轉載自:慧都網