Back to Devexpress

PopupColorEditSettings.Palettes Property

wpf-devexpress-dot-xpf-dot-editors-dot-settings-dot-popupcoloreditsettings-f93f913a.md

latest2.7 KB
Original Source

PopupColorEditSettings.Palettes Property

Gets or sets the collection of palettes. This is a dependency property.

Namespace : DevExpress.Xpf.Editors.Settings

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

NuGet Package : DevExpress.Wpf.Core

Declaration

csharp
public PaletteCollection Palettes { get; set; }
vb
Public Property Palettes As PaletteCollection

Property Value

TypeDescription
PaletteCollection

A PaletteCollection object that represents a collection of palettes.

|

Remarks

The in-place PopupColorEdit control stores its 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, and can be accessed using indexed notation or the name (ColorPalette.Name).

By default, the 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.

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. To create a palette with gradient colors, use the static ColorPalette.CreateGradientPalette method.

See Also

PopupColorEditSettings Class

PopupColorEditSettings Members

DevExpress.Xpf.Editors.Settings Namespace