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

RepositoryItemTrackBar.ShowLabels Property

Gets or sets whether the current TrackBarControl‘s labels are visible.

Namespace: DevExpress.XtraEditors.Repository

Assembly: DevExpress.XtraEditors.v24.2.dll

NuGet Package: DevExpress.Win.Navigation

#Declaration

[DefaultValue(false)]
[DXCategory("Behavior")]
public virtual bool ShowLabels { get; set; }

#Property Value

Type Default Description
Boolean false

true if the current TrackBarControl‘s labels are visible; otherwise, false.

#Remarks

You can display labels in the TrackBarControl by adding them to the RepositoryItemTrackBar.Labels collection and enabling the ShowLabels property.

Use the RepositoryItemTrackBar.ShowLabelsForHiddenTicks property to set the visibility for the labels whose ticks are invisible due to the RepositoryItemTrackBar.TickFrequency property value.

When a RepositoryItemTrackBar object is used as an in-place editor in a column within a container control (e.g., Grid Control and XtraTreeList), the TrackBarControl’s labels are not visible in row auto height mode. To make labels visible, disable the row auto height mode (via the GridOptionsView.RowAutoHeight or TreeListOptionsBehavior.AutoNodeHeight property) and manually set a custom row height (via the GridView.RowHeight or TreeList.RowHeight property) to accommodate a TrackBarControl with labels.

See Also