文章出處
文章列表
DevExpress下的.NET界面組件 DXperience Universal Suite 最新發布13.1.7版,多個屬性的定義方式發生變化,另外還有大量的bug修復。使用DevExpress朋友一定要注意以下更新:
>>下載
DXControls for WPF
IDialogService.ShowDialog 方法的定義方式變化,之前的定義是:
1
|
MessageBoxResult ShowDialog(MessageBoxButton button, string title, string documentType, object parameter, object parentViewModel, bool useParameterAsViewModel); |
新的定義方式:
1
|
UICommand ShowDialog(IList<UICommand> dialogCommands, MessageBoxButton? dialogButtons, string title, string documentType, object viewModel, object parameter, object parentViewModel); |
建議不直接調用IDialogService.ShowDialog,用DialogServiceExtensions類提供的擴展方法代替。下面是這個類以前提供的方法定義:
1
2
3
|
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) |
當前新定義:
1
2
3
4
5
6
|
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方法,以前的定義方式:
1
|
IDocument CreateDocument( string documentType, object parameter = null , object parentViewModel = null , bool useParameterAsViewModel = false ); |
新的定義方式:
1
|
IDocument CreateDocument( string documentType, object viewModel, object parameter, object parentViewModel); |
DocumentManagerServiceExtensions類包含一個擴展 CreateDocument,以前的定義方式:
1
|
public static IDocument CreateDocument( this IDocumentManagerService service, object viewModel) |
在13.1.7,定義方式改為:
1
2
3
4
|
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) |
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下運行
文章列表
全站熱搜