原創|產品更新|編輯:郝浩|2013-09-22 09:52:59.000|閱讀 449 次
概述:.NET界面組件DXperience Universal Suite最新發布13.1.7版,多個屬性的定義方式發生變化,另外還有大量bug修復。
# 界面/圖表報表/文檔/IDE等千款熱門軟控件火熱銷售中 >>
好消息!DevExpress下的.NET界面組件 DXperience Universal Suite 最新發布13.1.7版,多個屬性的定義方式發生變化,另外還有大量的bug修復。使用DevExpress朋友一定要注意以下更新:
>>DXperience Universal Suite13.1.7下載
IDialogService.ShowDialog 方法的定義方式變化,之前的定義是:
MessageBoxResult ShowDialog(MessageBoxButton button, string title, string documentType, object parameter, object parentViewModel, bool useParameterAsViewModel);
新的定義方式:
UICommand ShowDialog(IList<UICommand> dialogCommands, MessageBoxButton? dialogButtons, string title, string documentType, object viewModel, object parameter, object parentViewModel);
建議不直接調用IDialogService.ShowDialog,用DialogServiceExtensions類提供的擴展方法代替。下面是這個類以前提供的方法定義:
public static MessageBoxResult ShowDialog(this IDialogService service, MessageBoxButton button, string title, object viewModel) public static MessageBoxResult ShowDialog(this IDialogService service, MessageBoxButton button, string title, string documentType, object viewModel) public static MessageBoxResult ShowDialog(this IDialogService service, MessageBoxButton button, string title, string documentType, object parameter, object parentViewModel)
當前新定義:
public static MessageBoxResult ShowDialog(this IDialogService service, MessageBoxButton dialogButtons, string title, object viewModel) public static MessageBoxResult ShowDialog(this IDialogService service, MessageBoxButton dialogButtons, string title, string documentType, object viewModel) public static MessageBoxResult ShowDialog(this IDialogService service, MessageBoxButton dialogButtons, string title, string documentType, object parameter, object parentViewModel) public static UICommand ShowDialog(this IDialogService service, IList<UICommand> dialogCommands, string title, object viewModel) public static UICommand ShowDialog(this IDialogService service, IList<UICommand> dialogCommands, string title, string documentType, object viewModel) public static UICommand ShowDialog(this IDialogService service, IList<UICommand> dialogCommands, string title, string documentType, object parameter, object parentViewModel)
IDocumentManagerService 提供的CreateDocument方法,以前的定義方式:
IDocument CreateDocument(string documentType, object parameter = null, object parentViewModel = null, bool useParameterAsViewModel = false);
新的定義方式:
IDocument CreateDocument(string documentType, object viewModel, object parameter, object parentViewModel);
DocumentManagerServiceExtensions類包含一個擴展 CreateDocument,以前的定義方式:
public static IDocument CreateDocument(this IDocumentManagerService service, object viewModel)
在13.1.7,定義方式改為:
public static IDocument CreateDocument(this IDocumentManagerService service, object viewModel) public static IDocument CreateDocument(this IDocumentManagerService service, string documentType, object viewModel) public static IDocument CreateDocument(this IDocumentManagerService service, string documentType, object parameter, object parentViewModel) public static IDocument CreateDocument(this IDocumentManagerService service, string documentType, object parameter, object parentViewModel, bool useParameterAsViewModel)
Workbook類的以下事件被刪除:
另外,提醒大家注意一下DevExpress發現的一個問題。這個bug將會在下一個版本中修復:
>>
本站文章除注明轉載外,均為本站原創或翻譯。歡迎任何形式的轉載,但請務必注明出處、不得修改原文相關鏈接,如果存在內容上的異議請郵件反饋至chenjj@fc6vip.cn
文章轉載自:慧都控件