Back to Devexpress

Palette Class

wpf-devexpress-dot-xpf-dot-charts-941a390e.md

latest5.5 KB
Original Source

Palette Class

Represents a palette (collection of colors) used to draw a chart.

Namespace : DevExpress.Xpf.Charts

Assembly : DevExpress.Xpf.Charts.v25.2.dll

NuGet Package : DevExpress.Wpf.Charts

Declaration

csharp
public abstract class Palette :
    PaletteBase
vb
Public MustInherit Class Palette
    Inherits PaletteBase

The following members return Palette objects:

Remarks

A Palette object is returned by the ChartControlBase.Palette property, which defines colors for series points. It can be set either to one of the standard palettes, or to a CustomPalette object. A custom palette’s colors are stored in the ColorCollection, which is available via the CustomPalette.Colors property.

For more information, see Chart Themes and Palettes.

Example

This example demonstrates how to change the series point colors by using a custom palette. To do this, a CustomPalette is added to the chart’s ChartControlBase.Palette. And, custom colors are specified via the CustomPalette.Colors property.

View Example

xaml
<dxc:ChartControl.Palette>
    <dxc:CustomPalette>
        <dxc:CustomPalette.Colors>
            <Color>Blue</Color>
            <Color>Yellow</Color>
            <Color>Magenta</Color>
        </dxc:CustomPalette.Colors>
    </dxc:CustomPalette>
</dxc:ChartControl.Palette>

Inheritance

Show 36 items

Object DispatcherObject DependencyObject Freezable ChartDependencyObject PaletteBase Palette CustomPalette

PredefinedPalette

InAFogPalette

NatureColorsPalette

VioletPalette

SlipstreamPalette

PastelKitPalette

ChameleonPalette

TerracottaPiePalette

TheTreesPalette

DXChartsPalette

MarqueePalette

OfficePalette

OrangePalette

OrangeRedPalette

VioletIIPalette

RedOrangePalette

RedPalette

RedVioletPalette

NorthernLightsPalette

BlueGreenPalette

BlueIIPalette

BluePalette

BlueWarmPalette

GreenPalette

GreenYellowPalette

Office2013Palette

YellowOrangePalette

YellowPalette

See Also

Palette Members

Palette

CustomPalette

Chart Themes and Palettes

DevExpress.Xpf.Charts Namespace