Skip to main content

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.1.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