Class TrackBarPrimitive
Represents a primitive element that renders track bar controls with slider functionality and tick mark support.
Inheritance
Inherited Members
Namespace: Telerik.WinControls.Primitives
Assembly: Telerik.WinControls.dll
Syntax
public class TrackBarPrimitive : FillPrimitive, IDisposable, INotifyPropertyChanged, ICustomTypeDescriptor, ISupportSystemSkin, IStylableNode, IPrimitive, IFillElement, IPrimitiveElement, IShapedElement
Remarks
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.
Constructors
TrackBarPrimitive()
Declaration
public TrackBarPrimitive()
Fields
BackColor5Property
BackColor6Property
FitToAvailableSizeProperty
MaximumProperty
MinimumProperty
ShowSlideAreaProperty
ShowTicksProperty
SlideAreaWidthProperty
SliderAreaGradientAngleProperty
ThumbWidthProperty
TickColorProperty
TickFrequencyProperty
TickStyleProperty
TrackBarOrientationProperty
Properties
BackColor5
Gets or sets background color. This property is applicable to radial, glass, office glass, and vista gradients.
Declaration
[RadPropertyDefaultValue("BackColor5", typeof(TrackBarPrimitive))]
public virtual Color BackColor5 { get; set; }
Property Value
|
System.Drawing.Color
|
BackColor6
Gets or sets background color. This property is applicable to radial, glass, office glass, and vista gradients.
Declaration
[RadPropertyDefaultValue("BackColor6", typeof(TrackBarPrimitive))]
public virtual Color BackColor6 { get; set; }
Property Value
|
System.Drawing.Color
|
FitToAvailableSize
Gets or Sets whether the TrackBar should fit to available size
Declaration
public virtual bool FitToAvailableSize { get; set; }
Property Value
|
System.Boolean
|
Maximum
Gets or sets a maximum int value for the trackbar position.
Declaration
public virtual int Maximum { get; set; }
Property Value
|
System.Int32
|
Minimum
Gets or sets a minimum int value for the trackbar position.
Declaration
public virtual int Minimum { get; set; }
Property Value
|
System.Int32
|
ShowSlideArea
Gets or Sets whether the SlideArea should be visible
Declaration
public virtual bool ShowSlideArea { get; set; }
Property Value
|
System.Boolean
|
ShowTicks
Gets or Sets Ticks Visibility
Declaration
public virtual bool ShowTicks { get; set; }
Property Value
|
System.Boolean
|
SlideAreaWidth
Gets or Sets the width of TrackBar's SlideArea
Declaration
public virtual int SlideAreaWidth { get; set; }
Property Value
|
System.Int32
|
SliderAreaGradientAngle
Gets or Sets the gradient angle of the SliderArea
Declaration
public virtual float SliderAreaGradientAngle { get; set; }
Property Value
|
System.Single
|
ThumbWidth
Gets or Sets TrackBar's thumbWidth
Declaration
public virtual int ThumbWidth { get; set; }
Property Value
|
System.Int32
|
TickColor
Gets or Sets RadTrackBar's ticks color
Declaration
public virtual Color TickColor { get; set; }
Property Value
|
System.Drawing.Color
|
TickFrequency
The number of positions between tick marks
Declaration
public virtual int TickFrequency { get; set; }
Property Value
|
System.Int32
|
TickStyle
Indicates the tick style of the progress bar. Possible values are members of TickStyles: None, TopLeft, BottomRight and Both.
Declaration
public virtual TickStyles TickStyle { get; set; }
Property Value
|
TickStyles
|
TrackBarOrientation
Gets or Sets TrackBar's Orientation
Declaration
public virtual Orientation TrackBarOrientation { get; set; }
Property Value
|
System.Windows.Forms.Orientation
|
Methods
PaintElement(IGraphics, Single, SizeF)
Declaration
protected override void PaintElement(IGraphics graphics, float angle, SizeF scale)
Parameters
|
IGraphics
graphics
|
|
System.Single
angle
|
|
System.Drawing.SizeF
scale
|