翻譯|使用教程|編輯:龔雪|2022-02-23 11:04:30.630|閱讀 257 次
概述:本文主要介紹如何使用標(biāo)準(zhǔn)DevExpress服務(wù)的Window Service,歡迎下載最新版體驗(yàn)!
# 界面/圖表報(bào)表/文檔/IDE等千款熱門(mén)軟控件火熱銷(xiāo)售中 >>
相關(guān)鏈接:
DevExpress Services將命令從ViewModel傳遞到View中的控件,這允許您在不分離應(yīng)用程序?qū)拥那闆r下修改 UI。
允許您將視圖顯示為獨(dú)立的窗口(窗體),并從 ViewModel 層管理這些窗口。
接口
托管控件
全局注冊(cè)
C#
MVVMContext.RegisterXtraFormService(); MVVMContext.RegisterFlyoutWindowService(); MVVMContext.RegisterRibbonWindowService();
VB.NET
MVVMContext.RegisterXtraFormService() MVVMContext.RegisterFlyoutWindowService() MVVMContext.RegisterRibbonWindowService()
本地注冊(cè)
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() 方法
公共服務(wù)方法
DevExpress WinForm擁有180+組件和UI庫(kù),能為Windows Forms平臺(tái)創(chuàng)建具有影響力的業(yè)務(wù)解決方案。DevExpress WinForms能完美構(gòu)建流暢、美觀且易于使用的應(yīng)用程序,無(wú)論是Office風(fēng)格的界面,還是分析處理大批量的業(yè)務(wù)數(shù)據(jù),它都能輕松勝任!
更多產(chǎn)品正版授權(quán)詳情及優(yōu)惠,歡迎咨詢
DevExpress技術(shù)交流群5:742234706 歡迎一起進(jìn)群討論
本站文章除注明轉(zhuǎn)載外,均為本站原創(chuàng)或翻譯。歡迎任何形式的轉(zhuǎn)載,但請(qǐng)務(wù)必注明出處、不得修改原文相關(guān)鏈接,如果存在內(nèi)容上的異議請(qǐng)郵件反饋至chenjj@fc6vip.cn
文章轉(zhuǎn)載自:慧都網(wǎng)