TrackBarPrimitive
Represents a primitive element that renders track bar controls with slider functionality and tick mark support.
TrackBarPrimitive extends FillPrimitive to provide comprehensive track bar rendering capabilities, including horizontal and vertical orientations, customizable tick marks, slider area styling, and thumb positioning. It supports both visual and functional aspects of track bar controls.
The primitive supports various tick styles (top, bottom, both, none), customizable slider areas, gradient backgrounds, and precise thumb positioning. It handles minimum/maximum range values and tick frequency settings for precise value selection interfaces.
TrackBarPrimitive is commonly used in slider controls, volume controls, range selectors, and any UI element requiring value selection through sliding interaction.
Definition
Namespace:Telerik.WinControls.Primitives
Assembly:Telerik.WinControls.dll
Syntax:
public class TrackBarPrimitive : FillPrimitive, IDisposable, INotifyPropertyChanged, ICustomTypeDescriptor, ISupportSystemSkin, IStylableNode, IPrimitive, IFillElement, IPrimitiveElement, IShapedElement
Inheritance: objectDisposableObjectRadObjectRadElementVisualElementBasePrimitiveFillPrimitiveTrackBarPrimitive...
Implements:
Inherited Members
Constructors
public TrackBarPrimitive()
Fields
Identifies the first color stop used to paint the slider track.
public static RadProperty BackColor5Property
Identifies the second color stop used to paint the slider track.
public static RadProperty BackColor6Property
Identifies whether tick marks are suppressed by the fit-to-available-size setting.
public static RadProperty FitToAvailableSizeProperty
Identifies the upper bound of the track bar's selectable range.
public static RadProperty MaximumProperty
Identifies the lower bound of the track bar's selectable range.
public static RadProperty MinimumProperty
Identifies whether the slider track is rendered.
public static RadProperty ShowSlideAreaProperty
Identifies whether tick marks are rendered.
public static RadProperty ShowTicksProperty
Identifies the thickness of the track line.
public static RadProperty SlideAreaWidthProperty
Identifies the gradient angle used to paint the slider track.
public static RadProperty SliderAreaGradientAngleProperty
Identifies the width reserved for the slider thumb when positioning ticks along the track.
public static RadProperty ThumbWidthProperty
Identifies the color used to draw tick marks.
public static RadProperty TickColorProperty
Identifies the interval between tick marks in selectable values.
public static RadProperty TickFrequencyProperty
Identifies the property that controls which sides of the track display tick marks.
public static RadProperty TickStyleProperty
Identifies whether the slider track and tick positions are laid out horizontally or vertically.
public static RadProperty TrackBarOrientationProperty
Properties
Gets or sets background color. This property is applicable to radial, glass, office glass, and vista gradients.
[TypeConverter(typeof(RadColorEditorConverter))]
public virtual Color BackColor5 { get; set; }
Gets or sets background color. This property is applicable to radial, glass, office glass, and vista gradients.
[TypeConverter(typeof(RadColorEditorConverter))]
public virtual Color BackColor6 { get; set; }
Gets or Sets whether the TrackBar should fit to available size
public virtual bool FitToAvailableSize { get; set; }
Gets or sets a maximum int value for the trackbar position.
public virtual int Maximum { get; set; }
Gets or sets a minimum int value for the trackbar position.
public virtual int Minimum { get; set; }
Gets or Sets whether the SlideArea should be visible
public virtual bool ShowSlideArea { get; set; }
Gets or Sets the width of TrackBar's SlideArea
public virtual int SlideAreaWidth { get; set; }
Gets or Sets the gradient angle of the SliderArea
public virtual float SliderAreaGradientAngle { get; set; }
Gets or Sets TrackBar's thumbWidth
public virtual int ThumbWidth { get; set; }
Gets or Sets RadTrackBar's ticks color
public virtual Color TickColor { get; set; }
The number of positions between tick marks
public virtual int TickFrequency { get; set; }
Indicates the tick style of the progress bar. Possible values are members of TickStyles: None, TopLeft, BottomRight and Both.
public virtual TickStyles TickStyle { get; set; }
Gets or Sets TrackBar's Orientation
public virtual Orientation TrackBarOrientation { get; set; }
Methods
Paints the base fill and then draws the track fill in the configured orientation.