Skip to main content

CustomPalette Class

Represents a custom color palette.

Namespace: DevExpress.Xpf.Editors

Assembly: DevExpress.Xpf.Core.v14.2.dll

#Declaration

public class CustomPalette :
    ColorPalette

#Remarks

The ColorEdit and PopupColorEdit controls store their palettes within the Palettes collection. This collection provides methods that allow you to add new palettes and remove existing ones. Individual palettes are represented by ColorPalette descendants.

By default, an editor displays three color palettes: Theme Colors, Gradient Theme Colors and Standard Colors. The Recent Colors palette is automatically created, when an end-user selects a custom color from the 'More Colors' dialog.

ColorEdit-ColorPalette

You can replace default palettes or add any number of custom color palettes. To create a color palette, create a new instance of the CustomPalette class, and define the colors using the ColorPalette.Colors property. Finally, add the palette to the editor's Palettes collection.

#Examples

#Inheritance

Object
ColorPalette
CustomPalette
See Also