RadTrackBar
Represents a track bar. The trackbar class is essentially a simple wrapper for the RadTrackBarElement. All UI and logic functionality is implemented in the RadTrackBarElement class. The RadTrackBar acts to transfer the events to and from its corresponding RadTrackBarElement instance. The RadTrackBarElement may be nested in other telerik controls.
Definition
Namespace:Telerik.WinControls.UI
Assembly:Telerik.WinControls.UI.dll
Syntax:
[TelerikToolboxCategory("Editors")]
public class RadTrackBar : RadEditorControl, IDropTarget, ISynchronizeInvoke, IWin32Window, IBindableComponent, IComponent, IDisposable, INotifyPropertyChanged, ISupportInitializeNotification, ISupportInitialize, IComponentTreeHandler, ILayoutHandler, IAnalyticsProvider
Inheritance: objectMarshalByRefObjectComponentControlScrollableControlRadControlRadEditorControlRadTrackBar...
Implements:
Inherited Members
Constructors
Initializes a new instance of the RadTrackBar class.
public RadTrackBar()
Properties
Gets or sets whether key navigation is allowed on the trackbar.
[Browsable(true)]
public bool AllowKeyNavigation { get; set; }
Gets or sets whether the control automatically adjusts its size.
[Browsable(true)]
public override bool AutoSize { get; set; }
Overrides:
Gets the default size for the track bar control.
protected override Size DefaultSize { get; }
Overrides:
Gets or sets the label style for the trackbar.
[Browsable(true)]
public TrackBarLabelStyle LabelStyle { get; set; }
Gets or sets the large change value for the trackbar.
[Browsable(true)]
public int LargeChange { get; set; }
Gets or sets the frequency of large tick marks on the trackbar.
[Browsable(true)]
public int LargeTickFrequency { get; set; }
Gets or sets the maximum value for the trackbar position.
[Browsable(true)]
public float Maximum { get; set; }
Gets or sets the minimum value for the trackbar position.
[Browsable(true)]
public float Minimum { get; set; }
Gets or sets the orientation of the trackbar (horizontal or vertical).
[Browsable(true)]
public Orientation Orientation { get; set; }
Gets the collection of ranges defined for the trackbar.
[Browsable(true)]
public TrackBarRangeCollection Ranges { get; }
Gets or sets whether buttons are displayed on the trackbar.
[Browsable(true)]
public bool ShowButtons { get; set; }
Gets or sets whether the slide area is displayed on the trackbar.
[Browsable(true)]
public bool ShowSlideArea { get; set; }
Gets or sets the small change value for the trackbar.
[Browsable(true)]
public int SmallChange { get; set; }
Gets or sets the frequency of small tick marks on the trackbar.
[Browsable(true)]
public int SmallTickFrequency { get; set; }
Gets or sets the frequency of snap points on the trackbar.
[Browsable(true)]
public TrackBarSnapFrequency SnapFrequency { get; set; }
Gets or sets the snap mode for the trackbar.
[Browsable(true)]
public TrackBarSnapModes SnapMode { get; set; }
Gets or sets the orientation of the text displayed on the trackbar.
[Browsable(true)]
public Orientation TextOrientation { get; set; }
Gets or sets the size of the thumb on the trackbar.
[Browsable(true)]
public Size ThumbSize { get; set; }
Gets or sets the style of the tick marks displayed on the trackbar.
[Browsable(true)]
public TickStyles TickStyle { get; set; }
Gets the instance of RadTrackBarElement wrapped by this control. RadTrackBarElement is the main element in the hierarchy tree and encapsulates the actual functionality of RadTrackBar.
[Browsable(false)]
public RadTrackBarElement TrackBarElement { get; }
Gets or sets the mode of the trackbar range.
[Browsable(true)]
public TrackBarRangeMode TrackBarMode { get; set; }
Methods
Creates the child elements for the track bar control.
protected override void CreateChildItems(RadElement parent)
The parent element to which child elements will be added.
Overrides:
Creates the associated RadTrackBarElement.
protected virtual RadTrackBarElement CreateTrackBarElement()
A new instance of RadTrackBarElement.
Releases the unmanaged resources used by the RadTrackBar and optionally releases the managed resources.
protected override void Dispose(bool disposing)
True to release both managed and unmanaged resources; false to release only unmanaged resources.
Overrides:
Initializes the root element with track bar-specific settings.
protected override void InitializeRootElement(RootRadElement rootElement)
The root element to initialize.
Overrides:
Called when the control receives focus and transfers focus to the track bar element.
protected override void OnGotFocus(EventArgs e)
The event arguments.
Overrides:
Raises the LabelFormatting event.
protected virtual void OnLabelFormatting(LabelFormattingEventArgs e)
The label formatting event arguments.
Raises the TickFormatting event.
protected virtual void OnTickFormatting(TickFormattingEventArgs e)
The tick formatting event arguments.
Raises the ValueChanged event.
Processes dialog keys for track bar navigation when AllowKeyNavigation is enabled.
Resets theme overrides for the background color property.
protected override void ResetBackColorThemeOverrides()
Overrides:
Resets theme overrides for the foreground color property.
protected override void ResetForeColorThemeOverrides()
Overrides:
Sets theme overrides for the background color property.
protected override void SetBackColorThemeOverrides()
Overrides:
Sets theme overrides for the foreground color property.
protected override void SetForeColorThemeOverrides()
Overrides:
Unwires event handlers from the track bar element.
protected virtual void UnwireEvents()
Wires up event handlers for the track bar element.
protected virtual void WireEvents()
Events
Occurs when a label needs to be formatted.
public event LabelFormattingEventHandler LabelFormatting
Occurs when a range value is changed.
public event RangeChangedEventHandler RangeValueChanged
Occurs when a tick mark needs to be formatted.
public event TickFormattingEventHandler TickFormatting
Occurs when the Value property changes.
public event EventHandler ValueChanged