PopupColorEdit Class
In This Article
Represents a color editor displayed within a dropdown window.
Namespace: DevExpress.Xpf.Editors
Assembly: DevExpress.Xpf.Core.v14.2.dll
#Declaration
[DXToolboxBrowsable(DXToolboxItemKind.Free)]
public class PopupColorEdit :
PopupBaseEdit,
IColorEdit
#Returned By
The PopupColorEdit.GetOwnerPopupEdit(DependencyObject) method returns an instance of PopupColorEdit.
#Remarks
The PopupColorEdit editor allows an end-user to choose colors from the RGBA color space.
Its features include:
- 20 Preset Palettes - Apex, Civic, Grayscale, Office, etc.
- Recent Colors Palette - includes custom colors which can be added via the 'More Colors' dialog.
- Unlimited Number of Custom Color Palettes - by default, the editor displays three color palettes: Theme Colors, Gradient Theme Colors and Standard Colors. 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. Use the ColorPalette.CreateGradientPalette static method to create a palette with gradient colors. To display a custom palette within the editor, add it to the PopupColorEdit.Palettes collection.
- Configurable Palette Layout - you can manually specify the number of color columns using the PopupColorEdit.ColumnCount property. Alternatively, the number of columns is automatically calculated.
- Customizable Default Color - you can specify the default color, which is applied by clicking the Automatic button. To do this, use the ColorEdit.DefaultColor property.
- Optional Empty Color - to allow an end-user to select an empty color (ColorEdit.EmptyColor), set the PopupColorEdit.ShowNoColorButton property to true. This shows the 'No Color' button within the editor.
- Localizable UI
#Inheritance
#Extension Methods
See Also