DevExpress控件使用交流,DevExpress中国社区Dev联系电话 联系电话:023-68661681

DevExpress 13.2.8发布

来源:慧都控件网   发布时间:2014-03-19   浏览:4344次

DXperience Universal Suite 是全球使用最多的.NET用户界面控件套包。它主要的特点是:高效率和高实用性,拥有大量丰富的示例和帮助文档,开发者能够快速上手。在国内,DevExpress也拥有大量用户,资料比较完善,相互交流方便。现在更新至v13.2.8,下面让我们一起来看看更新详情内容。

点击下载DevExpress 13.2.8完整安装包

ASP.NET MVC 导航、布局和多用途扩展。

ClientEnabled 和 ClientVisible 字段已经被从MenuItemState、NavBarItemState 和 TreeViewNodeState 类中移除。

ASP.NET 导航、布局和多用途控件。

相关于ASPxMenu gutter的属性行为已经被改变。

现在,gutter不再影响项目图像和文本位置,如下属性被废弃:

  • ASPxMenuBase.GutterImageSpacing;
  • MenuStyle.GutterImageSpacing;
  • ASPxMenuBase.GutterColor;
  • MenuStyle.GutterColor.
Coded UI

CodedUIExtension.DXTestControls.AppearanceObject 类已经被移动到DevExpress.CodedUIExtension.DXTestControls.v13_2 namespace。

该变化避免当在一个项目上使用几个DevExpress Coded UI扩展程序集产生类型冲突。

为了能够编译一些项目,有必要手动在现有测试中指定新的命名空间。

Dashboard

  • 被运用于导出的目标元素的过滤值不再包含于元素命名中。
  • ASPxDashboardViewer.ExportOptions.DashboardItemOptions 和 DashboardViewer.PrintingOptions.DashboardItemOptions 属性已经被标示为废弃。
  • DashboardDesigner.ConfirmSaveOnClose 属性已经废弃。当关闭控制面板而定制设计的过程会有较大提升。
  • DashboardDesigner.ShowSaveConfirmationDialog 方法已经废弃,取而代之地,使用 DashboardDesigner.CloseDashboard 方法。当Dashboard Designer 的父表单关闭时,该方法被自动调用。但是,如果在一个可以由终端用户关闭的容器内使用Designer,则需要在容器关闭之前手动调用CloseDashboard()方法。
    如果Designer可以被关闭,则CloseDashboard方法返回true;如果终端用户取消关闭控制面板,则该方法返回false。
DXControls for WPF

IDocumentViewModel.Close 方法已经改变,即使IDocument.DestroyOnClose 属性被禁用,它也会被调用。

为回到以前的行为,你可以手动用 IDocumentManagerService对象检查IDocument.DestroyOnClose 属性值,如以下代码所示:

用POCO视图模式:

[C#]
[POCOViewModel]

              public class MainViewModel : IDocumentViewModel {

                 bool IDocumentViewModel.Close() {

                     if(!DocumentManagerService.FindDocument(this).DestroyOnClose) return true;

                     // ...

                     return true;

                 }

                 protected virtual IDocumentManagerService DocumentManagerService { get { return null; } }

              } 

[VB.NET]
<POCOViewModel> _

              Public Class MainViewModel

                 Implements IDocumentViewModel

                 Private Function IDocumentViewModel_Close() As Boolean Implements IDocumentViewModel.Close

                     If Not DocumentManagerService.FindDocument(Me).DestroyOnClose Then

                         Return True

                     End If

                     ' ...

                     Return True

                 End Function

                 Protected Overridable ReadOnly Property DocumentManagerService() As IDocumentManagerService

                     Get

                         Return Nothing

                     End Get

                 End Property

              End Class


Without a POCO View Model:

[C#]
public class MainViewModel : ViewModelBase, IDocumentViewModel {

                 bool IDocumentViewModel.Close() {

                     if(!ServiceContainer.GetService<IDocumentManagerService>().FindDocument(this).DestroyOnClose) return true;

                     // ...

                     return true;

                 }

              }

[VB.NET]
Public Class MainViewModel

                 Inherits ViewModelBase

                 Implements IDocumentViewModel

                 Private Function IDocumentViewModel_Close() As Boolean Implements IDocumentViewModel.Close

                     If Not ServiceContainer.GetService(Of IDocumentManagerService)().FindDocument(Me).DestroyOnClose Then

                         Return True

                     End If

                     ' ...

                     Return True

                 End Function

              End Class 

DXSpreadsheet for WPF

SpreadsheetControl.Options 属性已经改变,返回的是DevExpress.Xpf.Spreadsheet.SpreadsheetControlOptions 对象,而非DevExpress.Spreadsheet.DocumentOptions 类实例。

XtraSpreadsheet

DevExpress.Spreadsheet命名空间——ConditionalFormattingExtremumValue、ConditionalFormattingInsideValue 和 ConditionalFormattingIconSetInsideValue 界面已经被废弃。

ConditionalFormattingCollection 集的CreateExtremumValue/CreateInsideValue 和CreateIconSetInsideValue 方法已经被废弃。

从前:

[C#]
ConditionalFormattingExtremumValue CreateExtremumValue(ConditionalFormattingValueType valueType, string value);

          ConditionalFormattingExtremumValue CreateExtremumValue();

          ConditionalFormattingInsideValue CreateInsideValue(ConditionalFormattingValueType valueType, string value);

          ConditionalFormattingIconSetInsideValue CreateIconSetInsideValue(ConditionalFormattingValueType valueType,

             string value, ConditionalFormattingValueOperator comparisonOperator); 

现在:

[C#]
ConditionalFormattingValue CreateValue(ConditionalFormattingValueType valueType, string value);

          ConditionalFormattingValue CreateValue(ConditionalFormattingValueType valueType);

          ConditionalFormattingIconSetValue CreateIconSetValue(ConditionalFormattingValueType valueType,

             string value, ConditionalFormattingValueOperator comparisonOperator); 

ConditionalFormattingCollection 集的AddColorScale2ConditionalFormatting、AddColorScale3ConditionalFormatting、AddDataBarConditionalFormatting 和 AddIconSetConditionalFormatting 方法已经被改变。

从前:

[C#]
ColorScale2ConditionalFormatting AddColorScale2ConditionalFormatting(Range range,

             ConditionalFormattingExtremumValue minPoint, Color minPointColor, ConditionalFormattingExtremumValue maxPoint, Color maxPointColor);

          ColorScale3ConditionalFormatting AddColorScale3ConditionalFormatting(Range range,

             ConditionalFormattingExtremumValue minPoint, Color minPointColor, ConditionalFormattingInsideValue midPoint,

             Color midPointColor, ConditionalFormattingExtremumValue maxPoint, Color maxPointColor);

          DataBarConditionalFormatting AddDataBarConditionalFormatting(Range range, ConditionalFormattingExtremumValue lowBound,

             ConditionalFormattingExtremumValue highBound, Color color);

          IconSetConditionalFormatting AddIconSetConditionalFormatting(Range range, IconSetType iconSet,

             ConditionalFormattingIconSetInsideValue[] points); 

现在:

[C#]
ColorScale2ConditionalFormatting AddColorScale2ConditionalFormatting(Range range, ConditionalFormattingValue minPoint,

             Color minPointColor, ConditionalFormattingValue maxPoint, Color maxPointColor);

          ColorScale3ConditionalFormatting AddColorScale3ConditionalFormatting(Range range, ConditionalFormattingValue minPoint,

             Color minPointColor, ConditionalFormattingValue midPoint, Color midPointColor, ConditionalFormattingValue maxPoint, Color maxPointColor);

          DataBarConditionalFormatting AddDataBarConditionalFormatting(Range range, ConditionalFormattingValue lowBound,

             ConditionalFormattingValue highBound, Color color);

          IconSetConditionalFormatting AddIconSetConditionalFormatting(Range range, IconSetType iconSet, ConditionalFormattingIconSetValue[] points); 

SpreadsheetBehaviorOptions.Printing 属性已经被 SpreadsheetBehaviorOptions.Print 属性取代。

带有Bar UI的标准打印预览窗口已经被带Ribbon UI的窗口取代。

默认情况下,当终端用户在SpreadsheetControl的UI中点击Print Preview按钮时,Ribbon Print Preview 被调用。

为了让带有Bar UI的打印预览窗口对于终端用户可用,禁用 SpreadsheetPrintOptions.RibbonPreview 属性。

为了在代码中调用Ribbon Print Preview形式,需使用SpreadsheetControl.ShowRibbonPrintPreview 方法。

附:DevExpress 13.2.8安装与注册视频教程

本站文章除注明转载外,均为本站原创或翻译
欢迎任何形式的转载,但请务必注明出处,尊重他人劳动成果
转载请注明:文章转载自:DevExpress控件中文网 [https://www.devexpresscn.com/]
本文地址:https://www.devexpresscn.com/post/510.html
在线
客服
微信
QQ 电话
023-68661681
返回
顶部