Back to Devexpress

DashboardViewer.CustomPalette Event

dashboard-devexpress-dot-dashboardwin-dot-dashboardviewer-b4da4323.md

latest2.3 KB
Original Source

DashboardViewer.CustomPalette Event

Allows you to substitute the default palette containing colors used to paint dashboard item elements.

Namespace : DevExpress.DashboardWin

Assembly : DevExpress.Dashboard.v25.2.Win.dll

NuGet Package : DevExpress.Win.Dashboard

Declaration

csharp
public event CustomPaletteEventHandler CustomPalette
vb
Public Event CustomPalette As CustomPaletteEventHandler

Event Data

The CustomPalette event's data class is CustomPaletteEventArgs. The following properties provide information specific to this event:

PropertyDescription
PaletteGets or sets a palette used to color dashboard item elements.

Remarks

DevExpress Dashboard colors dashboard item elements (for instance, Chart series points or Pie segments) using a set of 20 unique colors from the default palette. You can access the default palette using the static DashboardPalette.Default field.

Handle the CustomPalette event to create a your own palette providing custom colors. To do this, create and initialize the DashboardPalette class instance and assign the resulting object to the CustomPaletteEventArgs.Palette event parameter.

Implements

CustomPalette

See Also

DashboardViewer Class

DashboardViewer Members

DevExpress.DashboardWin Namespace