Skip to main content

RepositoryItemColorPickEdit.TooltipShowing Event

Allows you to customize tooltips displayed when the mouse cursor hovers over colors in the Custom and Web-Safe palettes.

Namespace: DevExpress.XtraEditors.Repository

Assembly: DevExpress.XtraEditors.v24.1.dll

NuGet Package: DevExpress.Win.Navigation

Declaration

[DXCategory("Events")]
public event EventHandler<ColorPickEditTooltipShowingEventArgs> TooltipShowing

Event Data

The TooltipShowing event's data class is ColorPickEditTooltipShowingEventArgs. The following properties provide information specific to this event:

Property Description
Color Gets the color for which a tooltip will be displayed.
ContentText Gets or sets the content for the current tooltip.
Format Gets the display format of the current color’s value displayed in the tooltip.
TitleText Gets or sets the title for the current tooltip.

Remarks

Tooltips are displayed when you hover over colors in the Custom and Web-Safe palettes (see ShowCustomColors and ShowWebSafeColors):

image

A tooltip displays the value of the hovered color in the format specified by the RepositoryItemColorPickEdit.TooltipFormat property. If you hover over a known color, the tooltip will contain a title specifying the color’s name (painted bold in the image above).

You can handle the TooltipShowing event to customize tooltips. For instance, you can specify a custom title and content text via the TitleText and ContentText event parameters.

See Also