Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

RepositoryItemColorEdit.ShowColorDialog Property

Gets or sets whether an end-user can select a custom color with a color pick dialog (the “Select Color” dialog).

Namespace: DevExpress.XtraEditors.Repository

Assembly: DevExpress.XtraEditors.v24.2.dll

NuGet Package: DevExpress.Win.Navigation

#Declaration

[DefaultValue(true)]
[DXCategory("Appearance")]
public virtual bool ShowColorDialog { get; set; }

#Property Value

Type Default Description
Boolean true

true if a color pick dialog is enabled; otherwise, false.

#Remarks

#Color Pick Dialog

The color pick dialog (the “Select Color” dialog) allows an end-user to select a custom color. The following image shows the default color pick dialog for the ColorPickEdit control.

ColorPickEdit-RGB.png

Use the RepositoryItemColorEdit.ColorDialogType property to select the color pick dialog type (advanced or simple).

For the ColorPickEdit control, you can customize additional color dialog settings from the RepositoryItemColorPickEdit.ColorDialogOptions property.

#Invoke Color Pick Dialog

In the ColorEdit control, the color pick dialog can be invoked by right-clicking any box in the custom panel, which is initially empty. In code, you can access and modify the panel with the RepositoryItemColorEdit.CustomColors property.

ColorEdit-CustomPanel

In the ColorPickEdit control, the color pick dialog can be opened by clicking the More Colors… button. This button can be hidden with the RepositoryItemColorEdit.ShowMoreColorsButton option.

ColorPickEdit-MoreColorsButton

See Also