New to Telerik UI for WPFStart a free 30-day trial

The RadTimeBar is a time bound DataVisualization control. Its chief purpose is to allow lightweight scrolling and navigation through large periods of time.

Definition

Namespace:Telerik.Windows.Controls

Assembly:Telerik.Windows.Controls.DataVisualization.dll

Syntax:

C#
[TelerikToolboxCategory("Data Visualization")]
public class RadTimeBar : TimeBarBase, ISupportInitialize, IRangeSelector<DateTime>

Inheritance: objectTimeBarBaseRadTimeBar

Implements: IRangeSelector<DateTime>ISupportInitialize

Inherited Members TimeBarBase.VisiblePeriodChangedEventTimeBarBase.GroupIntervalChangedEventTimeBarBase.ItemIntervalChangedEventTimeBarBase.ActualVisiblePeriodRangePropertyTimeBarBase.ActualMinZoomRangePropertyTimeBarBase.PeriodEndPropertyTimeBarBase.PeriodStartPropertyTimeBarBase.VisiblePeriodPropertyTimeBarBase.VisiblePeriodEndPropertyTimeBarBase.VisiblePeriodStartPropertyTimeBarBase.LargeChangePropertyTimeBarBase.SmallChangePropertyTimeBarBase.MinZoomRangePropertyTimeBarBase.MaxZoomRangePropertyTimeBarBase.ScrollModePropertyTimeBarBase.SpecialSlotsGeneratorPropertyTimeBarBase.SliderStylePropertyTimeBarBase.PeriodHeaderStylePropertyTimeBarBase.GroupPeriodHeaderStylePropertyTimeBarBase.IntervalsPropertyTimeBarBase.IntervalGroupsPropertyTimeBarBase.IntervalItemsPropertyTimeBarBase.CurrentGroupIntervalPropertyTimeBarBase.CurrentItemIntervalPropertyTimeBarBase.SpecialSlotsPropertyTimeBarBase.OnApplyTemplate()TimeBarBase.EndInit()TimeBarBase.ConvertPointToDateTime(Point)TimeBarBase.RegisterCommand(ICommand, ExecutedRoutedEventHandler, CanExecuteRoutedEventHandler)TimeBarBase.OnMouseWheel(MouseWheelEventArgs)TimeBarBase.OnVisiblePeriodChanged()TimeBarBase.OnGroupIntervalChanged(IntervalBase, IntervalBase)TimeBarBase.OnItemIntervalChanged(IntervalBase, IntervalBase)TimeBarBase.OnSliderSelectionChanged(object, RadRoutedEventArgs)TimeBarBase.ActualVisiblePeriodRangeTimeBarBase.PeriodEndTimeBarBase.PeriodStartTimeBarBase.VisiblePeriodTimeBarBase.VisiblePeriodEndTimeBarBase.VisiblePeriodStartTimeBarBase.MinZoomRangeTimeBarBase.MaxZoomRangeTimeBarBase.ScrollModeTimeBarBase.SpecialSlotsGeneratorTimeBarBase.SliderStyleTimeBarBase.PeriodHeaderStyleTimeBarBase.GroupPeriodHeaderStyleTimeBarBase.IntervalsTimeBarBase.CurrentGroupIntervalTimeBarBase.CurrentItemIntervalTimeBarBase.VisiblePeriodChangedTimeBarBase.ActualVisiblePeriodRangeChangedTimeBarBase.GroupIntervalChangedTimeBarBase.ItemIntervalChanged...

Constructors

Initializes a new instance of the RadTimeBar class.

C#
public RadTimeBar()

Fields

ActualSelectionEndProperty

DependencyProperty

Identifies the ActualSelectionEnd dependency property.

C#
public static readonly DependencyProperty ActualSelectionEndProperty

Identifies the ActualSelectionStart dependency property.

C#
public static readonly DependencyProperty ActualSelectionStartProperty

Identifies the EnableSparklineVirtualization dependency property.

C#
public static readonly DependencyProperty EnableSparklineVirtualizationProperty

Identifies the HoveredPeriodChanged routed event.

C#
public static readonly RoutedEvent HoveredPeriodChangedEvent

HoveredPeriodProperty

DependencyProperty

Identifies the HoveredPeriod dependency property.

C#
public static readonly DependencyProperty HoveredPeriodProperty

Identifies the IsSnapToIntervalEnabled dependency property.

C#
public static readonly DependencyProperty IsSnapToIntervalEnabledProperty

Identifies the LeftSelectionIndicatorVisibility dependency property.

C#
public static readonly DependencyProperty LeftSelectionIndicatorVisibilityProperty

MaxSelectionRangeProperty

DependencyProperty

Identifies the MaxSelectionRange dependency property.

C#
public static readonly DependencyProperty MaxSelectionRangeProperty

MinSelectionRangeProperty

DependencyProperty

Identifies the MinSelectionRange dependency property.

C#
public static readonly DependencyProperty MinSelectionRangeProperty

Identifies the RightSelectionIndicatorVisibility dependency property.

C#
public static readonly DependencyProperty RightSelectionIndicatorVisibilityProperty

Identifies the SelectionChanged routed event.

C#
public static readonly RoutedEvent SelectionChangedEvent

SelectionEndProperty

DependencyProperty

Identifies the SelectionEnd dependency property.

C#
public static readonly DependencyProperty SelectionEndProperty

SelectionProperty

DependencyProperty

Identifies the Selection dependency property.

C#
public static readonly DependencyProperty SelectionProperty

SelectionStartProperty

DependencyProperty

Identifies the SelectionStart dependency property.

C#
public static readonly DependencyProperty SelectionStartProperty

SelectionThumbStyleProperty

DependencyProperty

Identifies the SelectionThumbStyle dependency property.

C#
public static readonly DependencyProperty SelectionThumbStyleProperty

Identifies the SelectionTitleFormatString dependency property.

C#
public static readonly DependencyProperty SelectionTitleFormatStringProperty

Identifies the SelectionVisibilityIndicatorStyle dependency property.

C#
public static readonly DependencyProperty SelectionVisibilityIndicatorStyleProperty

Properties

Gets the actual SelectionEnd.

C#
[Browsable(false)]
public DateTime ActualSelectionEnd { get; }
Property Value:

The actual SelectionEnd. The default value is MinValue.

Remarks:

When the user is dragging one of the selection thumbs, the SelectionStart and SelectionEnd properties are updated once the user releases the selection thumb. On the other hand, the ActualSelectionStart and ActualSelectionEnd properties are updated while the selection thumbs are moving.

Gets the actual SelectionStart.

C#
[Browsable(false)]
public DateTime ActualSelectionStart { get; }
Property Value:

The actual SelectionStart. The default value is MinValue.

Remarks:

When the user is dragging one of the selection thumbs, the SelectionStart and SelectionEnd properties are updated once the user releases the selection thumb. On the other hand, the ActualSelectionStart and ActualSelectionEnd properties are updated while the selection thumbs are moving.

Gets or sets a value indicating whether data virtualization is enabled for the child sparkline, provided the RadTimeBar has a single sparkline child and that child sparkline has data points with values on the x-axis of type DateTime. Data virtualization requires the data for the sparkline to be chronologically sorted.

C#
public bool EnableSparklineVirtualization { get; set; }
Property Value:

A value that indicates whether data virtualization is enabled for the child sparkline.

Gets the hovered period in the RadTimeBar.

C#
public SelectionRange<DateTime>? HoveredPeriod { get; }
Property Value:

The hovered period. The default value is null.

Gets or sets a value that indicates whether snapping to intervals is enabled.

C#
public bool IsSnapToIntervalEnabled { get; set; }
Property Value:

A value that indicates whether snapping to intervals is enabled.

Gets or sets the maximum possible Selection of the RadTimeBar.

C#
public TimeSpan MaxSelectionRange { get; set; }
Property Value:

The maximum possible Selection of the RadTimeBar. The default value is Zero

Remarks:

The Zero value indicates that there is no maximum Selection constraint.

Gets or sets the minimum possible Selection of the RadTimeBar.

C#
public TimeSpan MinSelectionRange { get; set; }
Property Value:

The minimum possible Selection of the RadTimeBar. The default value is Zero

Gets or sets the selected period in the RadTimeBar.

C#
public SelectionRange<DateTime> Selection { get; set; }
Property Value:

The selected period.

Implements: IRangeSelector<DateTime>.Selection

Gets or sets the end of the selected period.

C#
[TypeConverter(typeof(DateTimeTypeConverter))]
public DateTime SelectionEnd { get; set; }
Property Value:

The end of the selected period.

Implements: IRangeSelector<DateTime>.SelectionEnd

Gets or sets the start of the selected period.

C#
[TypeConverter(typeof(DateTimeTypeConverter))]
public DateTime SelectionStart { get; set; }
Property Value:

The start of the selected period.

Implements: IRangeSelector<DateTime>.SelectionStart

Gets or sets the of the SelectionThumb.

C#
public Style SelectionThumbStyle { get; set; }
Property Value:

The of the SelectionThumb.

Gets or sets the format string for the selection title.

C#
public string SelectionTitleFormatString { get; set; }
Property Value:

The format string for the selection title.

Gets or sets the of both SelectionVisibilityIndicators.

C#
public Style SelectionVisibilityIndicatorStyle { get; set; }
Property Value:

The of both SelectionVisibilityIndicators.

Remarks:

The SelectionVisibilityIndicatorStyle is applied both to the right and left SelectionVisibilityIndicators. However, by default, the left SelectionVisibilityIndicator is rotated by an angle of 180 degrees about its center point.

Methods

Called when the property changes.

C#
protected override void OnContentChanged(object oldContent, object newContent)
Parameters:oldContentobject

The old value of the property.

newContentobject

The new value of the property.

Returns class-specific AutomationPeer implementations for the Windows Presentation Foundation (WPF) infrastructure.

C#
protected override AutomationPeer OnCreateAutomationPeer()
Returns:

AutomationPeer

The type-specific AutomationPeer implementation.

Raises the HoveredPeriodChangedEvent. This method is invoked whenever HoveredPeriod changes.

C#
protected virtual void OnHoveredPeriodChanged(SelectionRange<DateTime>? hoveredPeriod)
Parameters:hoveredPeriodSelectionRange<DateTime>?

The new value of HoveredPeriod.

Raises the event. This method is invoked whenever is set to true internally.

C#
protected override void OnInitialized(EventArgs e)
Parameters:eEventArgs

The RoutedEventArgs that contains the event data.

Overrides: TimeBarBase.OnInitialized(EventArgs)

Raises the SelectionChangedEvent. This method is invoked whenever Selection changes.

C#
protected virtual void OnSelectionChanged()

Events

Occurs when the ActualSelectionStart or the ActualSelectionEnd change.

C#
public event EventHandler ActualSelectionChanged

Occurs when the HoveredPeriod changes.

C#
public event EventHandler<HoveredPeriodEventArgs> HoveredPeriodChanged

Occurs when the Selection changes.

C#
public event RadRoutedEventHandler SelectionChanged

Implements: IRangeSelector<DateTime>.SelectionChanged

Remarks:

This event occurs whenever there is a change to the selection. The selection can be changed not only by user interaction but also by binding as well as other set values.