Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

TrackBarControl.CustomLabel Event

Occurs when a label within the current TrackBarControl needs to be displayed.

Namespace: DevExpress.XtraEditors

Assembly: DevExpress.XtraEditors.v24.2.dll

NuGet Package: DevExpress.Win.Navigation

#Declaration

[DXCategory("Events")]
public event EventHandler<CustomLabelEventArgs> CustomLabel

#Event Data

The CustomLabel event's data class is DevExpress.XtraEditors.CustomLabelEventArgs.

#Remarks

You can handle the CustomLabel event and assign labels to a TrackBarControl‘s ticks. Labels can also be assigned to ticks automatically via the TrackBarControl‘s smart tag, and manually via the RepositoryItemTrackBar.Labels collection.

The CustomLabel event occurs as many times as there are ticks within a TrackBarControl. By default, this event is fired once on application start-up, before the TrackBarControl is displayed. You can manually raise the CustomLabel events sequence for all existing ticks at any time via the TrackBarControl.RefreshLabels method.

See Also