翻譯|使用教程|編輯:龔雪|2022-02-23 11:04:30.630|閱讀 257 次
概述:本文主要介紹如何使用標準DevExpress服務的Window Service,歡迎下載最新版體驗!
# 界面/圖表報表/文檔/IDE等千款熱門軟控件火熱銷售中 >>
相關鏈接:
DevExpress Services將命令從ViewModel傳遞到View中的控件,這允許您在不分離應用程序層的情況下修改 UI。
允許您將視圖顯示為獨立的窗口(窗體),并從 ViewModel 層管理這些窗口。
接口
托管控件
全局注冊
C#
MVVMContext.RegisterXtraFormService(); MVVMContext.RegisterFlyoutWindowService(); MVVMContext.RegisterRibbonWindowService();
VB.NET
MVVMContext.RegisterXtraFormService() MVVMContext.RegisterFlyoutWindowService() MVVMContext.RegisterRibbonWindowService()
本地注冊
C#
mvvmContext1.RegisterService(WindowService.Create(this, DefaultWindowServiceType.RibbonForm, "Window Title")); mvvmContext1.RegisterService(WindowService.CreateXtraFormService(this, "Window Title")); mvvmContext1.RegisterService(WindowService.CreateRibbonWindowService(this, "Window Title")); mvvmContext1.RegisterService(WindowService.CreateFlyoutWindowService(this, "Window Title"));
VB.NET
mvvmContext1.RegisterService(WindowService.Create(Me, DefaultWindowServiceType.RibbonForm, "Window Title")) mvvmContext1.RegisterService(WindowService.CreateXtraFormService(Me, "Window Title")) mvvmContext1.RegisterService(WindowService.CreateRibbonWindowService(Me, "Window Title")) mvvmContext1.RegisterService(WindowService.CreateFlyoutWindowService(Me, "Window Title"))
Create() 方法
公共服務方法
DevExpress WinForm擁有180+組件和UI庫,能為Windows Forms平臺創建具有影響力的業務解決方案。DevExpress WinForms能完美構建流暢、美觀且易于使用的應用程序,無論是Office風格的界面,還是分析處理大批量的業務數據,它都能輕松勝任!
更多產品正版授權詳情及優惠,歡迎咨詢
DevExpress技術交流群5:742234706 歡迎一起進群討論
本站文章除注明轉載外,均為本站原創或翻譯。歡迎任何形式的轉載,但請務必注明出處、不得修改原文相關鏈接,如果存在內容上的異議請郵件反饋至chenjj@fc6vip.cn
文章轉載自:慧都網