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

TrackBarContextButton.Middle Property

Gets or sets the value located in the middle of the track.

Namespace: DevExpress.Utils

Assembly: DevExpress.Utils.v24.2.dll

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

#Declaration

[DefaultValue(100)]
[DXCategory("Behavior")]
public int Middle { get; set; }

#Property Value

Type Default Description
Int32 100

An integer value located in the middle of the track.

#Remarks

By default, the TrackBarContextButton does not display the middle tick. To display it, set the TrackBarContextButton.AllowUseMiddleValue property to true. By default, if this option is enabled, the middle tick corresponds to the mean value between the TrackBarContextButton.Maximum and TrackBarContextButton.Minimum property values. You can also set the middle tick to a custom value between the extreme values using the Middle property. For instance, you can set minimum to -273, maximum to 100, and use zero as the middle tick value. In this case, the middle tick does not divide the scale in half, but into two unequal ranges.

See Also