RepositoryItemTrackBar.ShowValueToolTip Property

Gets or sets whether to show tooltips when hovering over the thumb(s).

Namespace: DevExpress.XtraEditors.Repository

Assembly: DevExpress.XtraEditors.v20.1.dll

Declaration

[DefaultValue(false)]
[DXCategory("Behavior")]
public bool ShowValueToolTip { get; set; }
<DefaultValue(False)>
<DXCategory("Behavior")>
Public Property ShowValueToolTip As Boolean

Property Value

Type Default Description
Boolean

false

true if tooltips are displayed when hovering over the thumb(s); otherwise, false.

Remarks

To provide custom tooltips, use the RepositoryItemTrackBar.BeforeShowValueToolTip event.

Examples

The following code shows how to implement custom tooltips for a TrackBarControl's thumb.

To enable tooltips, the RepositoryItemTrackBar.ShowValueToolTip property is set to true. Custom tooltips are implemented via the TrackBarControl.BeforeShowValueToolTip event. The result is shown below:

TrackBar_CustomTooltips

trackBarControl1.Properties.ShowValueToolTip = true;
//...

private void trackBarControl1_BeforeShowValueToolTip(
object sender, DevExpress.XtraEditors.TrackBarValueToolTipEventArgs e) {
    e.ShowArgs.ToolTip = string.Format("Value = {0}", trackBarControl1.Value);
}
See Also