Scale Settings
- 2 minutes to read
TrackBar supports full scale customization. You can customize value selection look-and-feel, the scale layout and appearance.
#Value Selection Look-And-Feel
Value selection look-and-feel scale settings include:
- TrackBarSettings.Properties.MinValue (TrackBarProperties.MinValue) and TrackBarSettings.Properties.MaxValue (TrackBarProperties.MaxValue). Limit a value span visualized by the scale.
- TrackBarSettings.Properties.LargeTickInterval (TrackBarProperties.LargeTickInterval). Specifies the large ticks placing interval.
- TrackBarSettings.Properties.SmallTickFrequency (TrackBarProperties.SmallTickFrequency). Defines how frequently small ticks should fill a single interval between large ticks.
- TrackBarSettings.Properties.LargeTickStartValue (TrackBarProperties.LargeTickStartValue) and TrackBarSettings.Properties.LargeTickEndValue (TrackBarProperties.LargeTickEndValue). Define the span where large tick marks should be placed.
The table below demonstrates how different properties affect scale appearance.
Scale View | Affected Properties |
---|---|
Min Max Large Large Small Large | |
Min Max Large Large Small Large | |
Min Max Large Large Small Large | |
Min Max Large Large Small Large |
The TrackBarSettings.Properties.Step (TrackBarProperties.Step) property defines the minimal value (increment/decrement) by which end-users can change the drag handle position.
#Scale Layout And Appearance
TrackBar supports scale layout customization. Here are the properties that affect it:
- TrackBarSettings.Properties.ScalePosition (TrackBarProperties.ScalePosition). Specifies where the scale is displayed: on one or both sides along the track.
- TrackBarSettings.Properties.ScaleLabelHighlightMode (TrackBarProperties.ScaleLabelHighlightMode). Allows you to define how the scale labels should be highlighted.
- TrackBarSettings.Properties.ValueToolTipPosition (TrackBarProperties.ValueToolTipPosition). Defines the place where a value tooltip will appear when an end-user changes the drag handle position.
The table below demonstrates how different properties affect a scale layout.
Scale Layout | Affected Properties |
---|---|
Scale Value Scale | |
Scale Value Scale | |
Scale Value Scale |
Note that the scale style can be flexibly customized with the TrackBarSettings.Properties.ScaleStyle (TrackBarProperties.ScaleStyle) property.