• DevExpress v16.1.5图表、Dashboard等多个控件API发生变化


    Dashboard

    # BC3835: WinForms Dashboard Designer - ChartSeriesTypeGalleryItem bar item停用

    在v16.1.5之前,Dashboard Designer不能修改ribbon gallery items的图片和标题。为了修复这个问题,更改了Ribbon控件的序列化逻辑,所以ChartSeriesTypeGalleryItem class弃用。会影响仪表盘的这些功能:

    • A Chart dashboard item - The legend position and Series Type galleries.
    • Map dashboard items - The legend and weighted legend position galleries.
    • Scatter dashboard item - The legend position gallery
    • The Range Filter dashboard item - The Series Type gallery.

    要解决这个问题,用DashboardDesigner的智能标签Update Ribbon命令重新创建Ribbon。注意,如果ribbon是在运行时用DashboardDesigner.CreateRibbon方法生成的,就不会出现这个问题。

    DXGrid for WPF

    # BC3829: TableViewThemeKeys.SearchPanelWidth key停用

    TableViewThemeKeys.SearchPanelWidth 无法正常定义 Search Panel 和按钮的宽度,Search Panel的宽度是根据按钮的宽度变化的,所以从v16.1.5开始,停用TableViewThemeKeys.SearchPanelWidth key,新增一个TableViewThemeKeys.SearchPanelTextBoxMinWidth属性专门定义SearchPanel中文 本框的宽度。

    MVC Data Editors

    # BC3836: ContentResult方法从ComboBoxExtension、 ListBoxExtension 和 TokenBoxExtension classes中移除

    XtraCharts Suite

    # BC3834: Chart.DefaultPalette 操作发生变化

    在之前的版本中,当form里面有两个图表,并且应用了默认的图表主题和调色板,其中一个图表的颜色就会出错。为了修复这个问题,v16.1.5做了以下修改:

    • Palettes class的Default字段弃用;
    • 图表没有应用调色板的时候,Palettes.GetPalette方法返回为null;
    • 每个图表控件都有自己的默认调色板。

    如果用 GetPalette 方法加载默认调色板,必须把图表作为这个方法的第二级参数。

    [C#]
    List<Palette> GetAllPredefinedPalettes(ChartControl chart) {
        List<Palette> allPredefinedChartPalettes = new List<Palette>();
        string[] allPredefinedPaletteNames = Palettes.GetNames();
        foreach (string predefinedName in allPredefinedPaletteNames) {
            Palette palette = Palettes.GetPalette(predefinedName, chart);
            allPredefinedChartPalettes.Add(palette);
        }
        return allPredefinedChartPalettes;
    }
    [VB.NET]
    Private Function GetAllPredefinedPalettes(chart As ChartControl) As List(Of Palette)
        Dim allPredefinedChartPalettes As New List(Of Palette)()
        Dim allPredefinedPaletteNames As String() = Palettes.GetNames()
        For Each predefinedName As String In allPredefinedPaletteNames
            Dim palette As Palette = Palettes.GetPalette(predefinedName, chart)
            allPredefinedChartPalettes.Add(palette)
        Next
        Return allPredefinedChartPalettes
    End Function

    DevExpress v16.1.5全部更新内容(英文)

    原文:http://www.devexpresscn.com/post/713.html

  • 相关阅读:
    方法
    Go中的OOP
    GO 结构体
    指针
    闭包
    回调函数
    匿名函数
    函数的数据类型及本质
    defer语句
    递归函数
  • 原文地址:https://www.cnblogs.com/icebing/p/5761839.html
Copyright © 2020-2023  润新知