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

【更新】DevExpress Universal Subscription v15.2.7发布[附下载]

来源:慧都控件网   发布时间:2016-03-07   浏览:3378次

以下是 DevExpress 15.2.7 API重大变化,请注意更新相应代码,欢迎下载试用最新版:

| DevExpress 15.2.7下载

DXBars & DXRibbon Common (WPF)

  • # BC3431: ILinksHolder 接口 和 LinksControl 内部结构发生了变化

新增以下元素:

  • the ILinksHolder.ActualLinksChanged event
  • the ILinksHolder.MergedChildren property

已删除以下元素:

  • the ILinksHolder.MergedLinks property; merged links can now be obtained from the ILinksHolder.MergedChildren collection.
  • the ILinksHolder.IsMergedState property; state can be obtained by checking the ILinksHolder.MergedChildren collection count.

几个负责更新LinksControl.ItemsSource属性值的方法从LinksControl类和子类中移除了。

DXDiagram for WPF

  • # BC3424: DiagramControl connectors API发生变化

1) The ConnectorPointsCollection class 更名为 DiagramPointCollection.

2) The DiagramItem.ConnectionPoints 属性类型从 System.Windows.Media.PointCollection 更改为 DiagramPointCollection.

  • # BC3428: DiagramDesignerControl API 发生变化

- The PropertiesPanelVisibility 属性类型从 System.Windows.Visibility 更改为 DevExpress.Diagram.Core.PropertiesPanelVisibility.
- The ToolboxViewMode property 更名为 ToolboxVisibility.
- ToolboxVisibility属性的 'Normal' 和 'Collapsed' 状态分别更名为 'Full' 和 'Closed' .
- PropertiesPanelVisibility属性的 "Hidden" 和 "Collapsed" 状态分别更名为 'Collapsed' 和 'Closed'.

  • # BC3421: DiagramOrgChartBehavior.Margin 属性更名为 PageMargin,更名后能更好的编译代码.

Report Server

  • # BC3417: Report Server API - 存储进程参数的名称应包含DataSourceName.StoredProcedureName前缀

在以前的版本中,添加一个新的存储进程如果与已存在的参数名冲突会抛出一个异常"An item with the same key has already been added".从v15.2.7开始,指定已存在的参数名称使用以下模式:

"DataSourceName.StoredProcedureName.ParameterName"
( DataSourceName 是一个报表数据源对象的名称 )

示例:

[C#]
ReportParameter[] reportParameters = new ReportParameter[] {
new ReportParameter {
Path = "Northwind.CustOrderHist.@CustomerID",
Value = "ALFKI"
}};
var bytes = Task.Factory.ExportReportAsync(client, new ReportNameIdentity(reportsList.SelectedItem.Text), new PdfExportOptions

(), reportParameters, null).Result;

XtraDiagram

  • # BC3425: DiagramControl 连接器的 API 发生变化

- DiagramConnector.IntermediatePoints 属性更名为 DiagramConnector.Points .
- DiagramConnector.Points 属性类型更改为 DiagramPointCollection.
- DiagramConnector.Points 集合变为只读类型.

  • # BC3423: CalcHitInfo 方法的签名发生变化

CalcHitInfo方法现在只接受带点的参数,DiagramHitInfo对象集合的所有图形元素放在点后面。这个方法可以用于复杂的场景,比如需要放置一个图形的内部元素(如selector box),或者删除重叠的图形。请看示例:

[C#]
// determine if there is a connector point at this position and if there is, assign a corresponding connector to the 'connector'

field
var connector = diagram
.CalcHitInfo(e.ControlMousePosition)
.Select(x => x.MatchHitInfo<DiagramConnector>(connectorPoint : (c, type) => c))
.FirstOrDefault();

 

对于比较简单的情况,用CalcHitItem方法返回最上面的 diagram 项:

 

[C#]
var item = diagram.CalcHitItem(e.ControlMousePosition);
  • # BC3434: DiagramControl.OptionsLayout 属性已删除
  • # BC3430: The DiagramControl.RunDesigner 方法已删除

如果你想编辑一个在DiagramControl单独对话框中的图形,用DiagramDesignerForm类:

[C#]
using DevExpress.XtraDiagram.Designer;

...

using (var form = new DiagramDesignerForm()) {
form.ShowDialog();
}

 

  • # BC3429: DiagramDesignerFormBase 类已删除,用 DiagramDesignerForm 类代替.

XtraReports Suite

  • # BC3414: The DevExpress.CodeParser 库现在可以用DevExpress.DataAccess.Sql.SqlDataSource组件部署应用程序。

XtraSpreadsheet

  • # BC3422:DevExpress.XtraSpreadsheet.SpreadsheetChartsViewOptions类的AutoLayout 和 AutoLayoutAllowed属性已删除。

XtraTreeList Suite

  • # BC3418: RepositoryItemTreeListLookUpEdit.ExportMode 属性默认值操作发生变化。

从15.2.7开始, RepositoryItemTreeListLookUpEdit.ExportMode默认值主要视为 DisplayText,类似于查找编辑器。此外,还新增了一个静态属性RepositoryItemTreeListLookUpEdit.DefaultExportMode用于控制TreeListLookUp的当前输出模式。

DevExpress v15.2.7完整更新信息请看这里:https://www.devexpress.com/Support/WhatsNew/DXperience/files/15.2.7.xml

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