Class
RadTimeBar

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:

cs-api-definition
[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

RadTimeBar()

Initializes a new instance of the RadTimeBar class.

Declaration

cs-api-definition
public RadTimeBar()

Fields

ActualSelectionEndProperty

Identifies the ActualSelectionEnd dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty ActualSelectionEndProperty

Field Value

DependencyProperty

ActualSelectionStartProperty

Identifies the ActualSelectionStart dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty ActualSelectionStartProperty

Field Value

DependencyProperty

EnableSparklineVirtualizationProperty

Identifies the EnableSparklineVirtualization dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty EnableSparklineVirtualizationProperty

Field Value

DependencyProperty

HoveredPeriodChangedEvent

Identifies the HoveredPeriodChanged routed event.

Declaration

cs-api-definition
public static readonly RoutedEvent HoveredPeriodChangedEvent

Field Value

RoutedEvent

HoveredPeriodProperty

Identifies the HoveredPeriod dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty HoveredPeriodProperty

Field Value

DependencyProperty

IsSnapToIntervalEnabledProperty

Identifies the IsSnapToIntervalEnabled dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty IsSnapToIntervalEnabledProperty

Field Value

DependencyProperty

LeftSelectionIndicatorVisibilityProperty

Identifies the LeftSelectionIndicatorVisibility dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty LeftSelectionIndicatorVisibilityProperty

Field Value

DependencyProperty

MaxSelectionRangeProperty

Identifies the MaxSelectionRange dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty MaxSelectionRangeProperty

Field Value

DependencyProperty

MinSelectionRangeProperty

Identifies the MinSelectionRange dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty MinSelectionRangeProperty

Field Value

DependencyProperty

RightSelectionIndicatorVisibilityProperty

Identifies the RightSelectionIndicatorVisibility dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty RightSelectionIndicatorVisibilityProperty

Field Value

DependencyProperty

SelectionChangedEvent

Identifies the SelectionChanged routed event.

Declaration

cs-api-definition
public static readonly RoutedEvent SelectionChangedEvent

Field Value

RoutedEvent

SelectionEndProperty

Identifies the SelectionEnd dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty SelectionEndProperty

Field Value

DependencyProperty

SelectionProperty

Identifies the Selection dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty SelectionProperty

Field Value

DependencyProperty

SelectionStartProperty

Identifies the SelectionStart dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty SelectionStartProperty

Field Value

DependencyProperty

SelectionThumbStyleProperty

Identifies the SelectionThumbStyle dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty SelectionThumbStyleProperty

Field Value

DependencyProperty

SelectionTitleFormatStringProperty

Identifies the SelectionTitleFormatString dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty SelectionTitleFormatStringProperty

Field Value

DependencyProperty

SelectionVisibilityIndicatorStyleProperty

Identifies the SelectionVisibilityIndicatorStyle dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty SelectionVisibilityIndicatorStyleProperty

Field Value

DependencyProperty

Properties

ActualSelectionEnd

Gets the actual SelectionEnd.

Declaration

cs-api-definition
[Browsable(false)]
public DateTime ActualSelectionEnd { get; }

Property Value

DateTime

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.

ActualSelectionStart

Gets the actual SelectionStart.

Declaration

cs-api-definition
[Browsable(false)]
public DateTime ActualSelectionStart { get; }

Property Value

DateTime

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.

EnableSparklineVirtualization

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.

Declaration

cs-api-definition
public bool EnableSparklineVirtualization { get; set; }

Property Value

bool

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

HoveredPeriod

Gets the hovered period in the RadTimeBar.

Declaration

cs-api-definition
public SelectionRange<DateTime>? HoveredPeriod { get; }

Property Value

SelectionRange<DateTime>?

The hovered period. The default value is null.

IsSnapToIntervalEnabled

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

Declaration

cs-api-definition
public bool IsSnapToIntervalEnabled { get; set; }

Property Value

bool

A value that indicates whether snapping to intervals is enabled.

MaxSelectionRange

Gets or sets the maximum possible Selection of the RadTimeBar.

Declaration

cs-api-definition
public TimeSpan MaxSelectionRange { get; set; }

Property Value

TimeSpan

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

Remarks

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

MinSelectionRange

Gets or sets the minimum possible Selection of the RadTimeBar.

Declaration

cs-api-definition
public TimeSpan MinSelectionRange { get; set; }

Property Value

TimeSpan

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

Selection

Gets or sets the selected period in the RadTimeBar.

Declaration

cs-api-definition
public SelectionRange<DateTime> Selection { get; set; }

Property Value

SelectionRange<DateTime>

The selected period.

Implements IRangeSelector<DateTime>.Selection

SelectionEnd

Gets or sets the end of the selected period.

Declaration

cs-api-definition
[TypeConverter(typeof(DateTimeTypeConverter))]
public DateTime SelectionEnd { get; set; }

Property Value

DateTime

The end of the selected period.

Implements IRangeSelector<DateTime>.SelectionEnd

SelectionStart

Gets or sets the start of the selected period.

Declaration

cs-api-definition
[TypeConverter(typeof(DateTimeTypeConverter))]
public DateTime SelectionStart { get; set; }

Property Value

DateTime

The start of the selected period.

Implements IRangeSelector<DateTime>.SelectionStart

SelectionThumbStyle

Gets or sets the of the SelectionThumb.

Declaration

cs-api-definition
public Style SelectionThumbStyle { get; set; }

Property Value

Style

The of the SelectionThumb.

SelectionTitleFormatString

Gets or sets the format string for the selection title.

Declaration

cs-api-definition
public string SelectionTitleFormatString { get; set; }

Property Value

string

The format string for the selection title.

SelectionVisibilityIndicatorStyle

Gets or sets the of both SelectionVisibilityIndicators.

Declaration

cs-api-definition
public Style SelectionVisibilityIndicatorStyle { get; set; }

Property Value

Style

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

OnContentChanged(object, object)

Called when the property changes.

Declaration

cs-api-definition
protected override void OnContentChanged(object oldContent, object newContent)

Parameters

oldContent

object

The old value of the property.

newContent

object

The new value of the property.

OnCreateAutomationPeer()

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

Declaration

cs-api-definition
protected override AutomationPeer OnCreateAutomationPeer()

Returns

AutomationPeer

The type-specific AutomationPeer implementation.

OnHoveredPeriodChanged(SelectionRange<DateTime>?)

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

Declaration

cs-api-definition
protected virtual void OnHoveredPeriodChanged(SelectionRange<DateTime>? hoveredPeriod)

Parameters

hoveredPeriod

SelectionRange<DateTime>?

The new value of HoveredPeriod.

OnInitialized(EventArgs)

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

Declaration

cs-api-definition
protected override void OnInitialized(EventArgs e)

Parameters

e

EventArgs

The RoutedEventArgs that contains the event data.

Overrides TimeBarBase.OnInitialized(EventArgs)

OnSelectionChanged()

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

Declaration

cs-api-definition
protected virtual void OnSelectionChanged()

Events

ActualSelectionChanged

Occurs when the ActualSelectionStart or the ActualSelectionEnd change.

Declaration

cs-api-definition
public event EventHandler ActualSelectionChanged

Event Value

EventHandler

HoveredPeriodChanged

Occurs when the HoveredPeriod changes.

Declaration

cs-api-definition
public event EventHandler<HoveredPeriodEventArgs> HoveredPeriodChanged

Event Value

EventHandler<HoveredPeriodEventArgs>

SelectionChanged

Occurs when the Selection changes.

Declaration

cs-api-definition
public event RadRoutedEventHandler SelectionChanged

Event Value

RadRoutedEventHandler

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.