Skip to main content
All docs
V24.1

SvgImageBox.ToolTipIconType Property

Gets or sets a regular tooltip’s icon type.

Namespace: DevExpress.XtraEditors

Assembly: DevExpress.Utils.v24.1.dll

NuGet Packages: DevExpress.Utils, DevExpress.Wpf.Core

Declaration

[DefaultValue(ToolTipIconType.None)]
[DXCategory("ToolTip")]
public ToolTipIconType ToolTipIconType { get; set; }

Property Value

Type Default Description
ToolTipIconType None

A regular tooltip’s icon type.

Available values:

Name Description
Application

A tooltip contains the default application icon.

Asterisk

A tooltip contains the system asterisk icon.

Error

A tooltip contains the system error icon.

Exclamation

A tooltip contains the system exclamation icon.

Hand

A tooltip contains the system hand icon.

Information

A tooltip contains the system information icon.

Question

A tooltip contains the system question icon.

Warning

A tooltip contains the system warning icon.

A tooltip contains the Windows logo icon.

None

A tooltip contains no predefined icon.

Remarks

SvgImageBox supports tooltips (regular hints and super tooltips) if the ShowToolTips property is enabled.

Regular Tooltips

Use the following properties to specify regular tooltips:

Super Tooltips

Use the following properties to specify super tooltips:

  • SvgImageItem.SuperTip—Allows you to assign super tooltips to individual items.
  • SvgImageBox.SuperTip—Allows you to display super tooltips when a user hovers over an empty space, and over items without explicitly assigned tooltips.

Tooltip Controller

The ToolTipController property allows you to assign a stand-alone controller and modify tooltips at runtime. To do that, handle the ToolTipController.BeforeShow event. Read the e.SelectedObject property to identify which item a user’s mouse pointer hovers over, and set the corresponding e.Tooltip or e.SuperTip value. The code sample below illustrates how tooltips are assigned to SvgImageBox items in the DevExpress “SvgImage Box” Demo Center module.

Item tooltips in DevExpress SvgImageBox

svgImageBox.ToolTipController = toolTipController;
toolTipController.BeforeShow += 
    new DevExpress.Utils.ToolTipControllerBeforeShowEventHandler(this.OnBeforeShowToolTip);

void OnBeforeShowToolTip(object sender, Utils.ToolTipControllerShowEventArgs e) {
    var svgImageItem = e.SelectedObject as SvgImageItem;
    if(svgImageItem == null) return;
    e.ToolTip = string.Format(
        e.ToolTip,(svgImageItem.Tag as string).ToUpper(),
        svgImageItem.Selected ? "Reserved" : "Free");
}
See Also