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

Declaration

[DXCategory("Appearance")]
[DefaultValue(true)]
public virtual bool ShowColorDialog { get; set; }
<DXCategory("Appearance")>
<DefaultValue(True)>
Public Overridable Property ShowColorDialog As Boolean

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