DevExpress更新至13.1.7

来源:互联网 发布:拦截导弹算法 编辑:程序博客网 时间:2024/05/02 02:33
DevExpress下的.NET界面组件 DXperience Universal Suite 最新发布13.1.7版,多个属性的定义方式发生变化,另外还有大量的bug修复。使用DevExpress朋友一定要注意以下更新:

>>DXperience Universal Suite13.1.7下载

DXControls for WPF

IDialogService.ShowDialog 方法的定义方式变化,之前的定义是:

1
MessageBoxResult ShowDialog(MessageBoxButton button,stringtitle,stringdocumentType,objectparameter,objectparentViewModel,booluseParameterAsViewModel);

新的定义方式:

1
UICommand ShowDialog(IList<UICommand> dialogCommands, MessageBoxButton? dialogButtons,stringtitle,stringdocumentType,objectviewModel,objectparameter,objectparentViewModel);

建议不直接调用IDialogService.ShowDialog,用DialogServiceExtensions类提供的扩展方法代替。下面是这个类以前提供的方法定义:

1
2
3
public static MessageBoxResult ShowDialog(thisIDialogService service, MessageBoxButton button,string title,object viewModel)
          publicstaticMessageBoxResult ShowDialog(thisIDialogService service, MessageBoxButton button,string title,string documentType,objectviewModel)
          publicstaticMessageBoxResult ShowDialog(thisIDialogService service, MessageBoxButton button,string title,string documentType,objectparameter,objectparentViewModel)

当前新定义:

1
2
3
4
5
6
public static MessageBoxResult ShowDialog(thisIDialogService service, MessageBoxButton dialogButtons,stringtitle,objectviewModel)
          publicstaticMessageBoxResult ShowDialog(thisIDialogService service, MessageBoxButton dialogButtons,stringtitle,stringdocumentType,objectviewModel)
          publicstaticMessageBoxResult ShowDialog(thisIDialogService service, MessageBoxButton dialogButtons,stringtitle,stringdocumentType,objectparameter,objectparentViewModel)
          publicstaticUICommand ShowDialog(thisIDialogService service, IList<UICommand> dialogCommands,stringtitle,objectviewModel)
          publicstaticUICommand ShowDialog(thisIDialogService service, IList<UICommand> dialogCommands,stringtitle,stringdocumentType,objectviewModel)
          publicstaticUICommand ShowDialog(thisIDialogService service, IList<UICommand> dialogCommands,stringtitle,stringdocumentType,objectparameter,objectparentViewModel)

IDocumentManagerService 提供的CreateDocument方法,以前的定义方式:

1
IDocument CreateDocument(stringdocumentType,objectparameter =null,objectparentViewModel =null,bool useParameterAsViewModel =false);

新的定义方式:

1
IDocument CreateDocument(stringdocumentType,objectviewModel,objectparameter,objectparentViewModel);

DocumentManagerServiceExtensions类包含一个扩展 CreateDocument,以前的定义方式:

1
public static IDocument CreateDocument(thisIDocumentManagerService service,objectviewModel)

在13.1.7,定义方式改为:

1
2
3
4
public static IDocument CreateDocument(thisIDocumentManagerService service,objectviewModel)
          publicstaticIDocument CreateDocument(thisIDocumentManagerService service,stringdocumentType,objectviewModel)
          publicstaticIDocument CreateDocument(thisIDocumentManagerService service,stringdocumentType,objectparameter,objectparentViewModel)
          publicstaticIDocument CreateDocument(thisIDocumentManagerService service,stringdocumentType,objectparameter,objectparentViewModel,booluseParameterAsViewModel)

DXMap for WPF

  • 自定义地图颜色的MapColorizer现在需要重载 MapColorizer.GetItemColor(以前是MapColorizer.ColorizeElement)

Map for Windows 8 XAML

  • 自定义地图颜色的MapColorizer现在需要重载 MapColorizer.GetItemColor(以前是MapColorizer.ColorizeElement)

Spreadsheet Document Server

Workbook类的以下事件被删除:

  • ActiveSheetChanging;
  • ActiveSheetChanged;
  • ColumnsRemoved;
  • ColumnsInserted.
  • SelectionChanged;
  • SheetRenaming;
  • SheetRenamed;
  • SheetInserted;
  • SheetRemoved;
  • RowsRemoved;
  • RowsInserted;

另外,提醒大家注意一下DevExpress发现的一个问题。这个bug将会在下一个版本中修复:

  • 如果CopyLocal属性被禁用,XtraReports LightSwitch demo无法在VS2013下运行

DXperience Universal Suite 13.1.7更多详细更新请移步>>

转自慧都控件

原创粉丝点击