RepositoryItemTrackBar.ShowValueToolTip Property
Gets or sets whether to show tooltips when hovering over the thumb(s).
Namespace: DevExpress.XtraEditors.Repository
Assembly: DevExpress.XtraEditors.v19.1.dll
Declaration
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.
Example
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:
trackBarControl1.Properties.ShowValueToolTip = true;
//...
private void trackBarControl1_BeforeShowValueToolTip(
object sender, DevExpress.XtraEditors.TrackBarValueToolTipEventArgs e) {
e.ShowArgs.ToolTip = string.Format("Value = {0}", trackBarControl1.Value);
}
Related GitHub Examples
The following code snippet (auto-collected from DevExpress Examples) contains a reference to the ShowValueToolTip property.
Note
The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.