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:
[TelerikToolboxCategory("Data Visualization")]
public class RadTimeBar : TimeBarBase, ISupportInitialize, IRangeSelector<DateTime>
Inheritance: objectTimeBarBaseRadTimeBar
Implements:
Inherited Members
Constructors
Initializes a new instance of the RadTimeBar class.
public RadTimeBar()
Fields
ActualSelectionEndProperty
DependencyProperty
Identifies the ActualSelectionEnd dependency property.
public static readonly DependencyProperty ActualSelectionEndProperty
ActualSelectionStartProperty
DependencyProperty
Identifies the ActualSelectionStart dependency property.
public static readonly DependencyProperty ActualSelectionStartProperty
EnableSparklineVirtualizationProperty
DependencyProperty
Identifies the EnableSparklineVirtualization dependency property.
public static readonly DependencyProperty EnableSparklineVirtualizationProperty
HoveredPeriodChangedEvent
RoutedEvent
Identifies the HoveredPeriodChanged routed event.
public static readonly RoutedEvent HoveredPeriodChangedEvent
HoveredPeriodProperty
DependencyProperty
Identifies the HoveredPeriod dependency property.
public static readonly DependencyProperty HoveredPeriodProperty
IsSnapToIntervalEnabledProperty
DependencyProperty
Identifies the IsSnapToIntervalEnabled dependency property.
public static readonly DependencyProperty IsSnapToIntervalEnabledProperty
LeftSelectionIndicatorVisibilityProperty
DependencyProperty
Identifies the LeftSelectionIndicatorVisibility dependency property.
public static readonly DependencyProperty LeftSelectionIndicatorVisibilityProperty
MaxSelectionRangeProperty
DependencyProperty
Identifies the MaxSelectionRange dependency property.
public static readonly DependencyProperty MaxSelectionRangeProperty
MinSelectionRangeProperty
DependencyProperty
Identifies the MinSelectionRange dependency property.
public static readonly DependencyProperty MinSelectionRangeProperty
RightSelectionIndicatorVisibilityProperty
DependencyProperty
Identifies the RightSelectionIndicatorVisibility dependency property.
public static readonly DependencyProperty RightSelectionIndicatorVisibilityProperty
SelectionChangedEvent
RoutedEvent
Identifies the SelectionChanged routed event.
public static readonly RoutedEvent SelectionChangedEvent
SelectionEndProperty
DependencyProperty
Identifies the SelectionEnd dependency property.
public static readonly DependencyProperty SelectionEndProperty
SelectionProperty
DependencyProperty
Identifies the Selection dependency property.
public static readonly DependencyProperty SelectionProperty
SelectionStartProperty
DependencyProperty
Identifies the SelectionStart dependency property.
public static readonly DependencyProperty SelectionStartProperty
SelectionThumbStyleProperty
DependencyProperty
Identifies the SelectionThumbStyle dependency property.
public static readonly DependencyProperty SelectionThumbStyleProperty
SelectionTitleFormatStringProperty
DependencyProperty
Identifies the SelectionTitleFormatString dependency property.
public static readonly DependencyProperty SelectionTitleFormatStringProperty
SelectionVisibilityIndicatorStyleProperty
DependencyProperty
Identifies the SelectionVisibilityIndicatorStyle dependency property.
public static readonly DependencyProperty SelectionVisibilityIndicatorStyleProperty
Properties
Gets the actual SelectionEnd.
[Browsable(false)]
public DateTime ActualSelectionEnd { get; }
The actual SelectionEnd. The default value is MinValue.
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.
[Browsable(false)]
public DateTime ActualSelectionStart { get; }
The actual SelectionStart. The default value is MinValue.
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.
public bool EnableSparklineVirtualization { get; set; }
A value that indicates whether data virtualization is enabled for the child sparkline.
Gets the hovered period in the RadTimeBar.
public SelectionRange<DateTime>? HoveredPeriod { get; }
The hovered period. The default value is null.
Gets or sets a value that indicates whether snapping to intervals is enabled.
public bool IsSnapToIntervalEnabled { get; set; }
A value that indicates whether snapping to intervals is enabled.
Gets or sets the maximum possible Selection of the RadTimeBar.
public TimeSpan MaxSelectionRange { get; set; }
The maximum possible Selection of the RadTimeBar. The default value is Zero
Gets or sets the minimum possible Selection of the RadTimeBar.
public TimeSpan MinSelectionRange { get; set; }
The minimum possible Selection of the RadTimeBar. The default value is Zero
Gets or sets the selected period in the RadTimeBar.
public SelectionRange<DateTime> Selection { get; set; }
The selected period.
Implements:
Gets or sets the end of the selected period.
[TypeConverter(typeof(DateTimeTypeConverter))]
public DateTime SelectionEnd { get; set; }
The end of the selected period.
Implements:
Gets or sets the start of the selected period.
[TypeConverter(typeof(DateTimeTypeConverter))]
public DateTime SelectionStart { get; set; }
The start of the selected period.
Implements:
SelectionThumbStyle
Style
Gets or sets the of the SelectionThumb.
Gets or sets the format string for the selection title.
public string SelectionTitleFormatString { get; set; }
The format string for the selection title.
Gets or sets the of both SelectionVisibilityIndicators.
public Style SelectionVisibilityIndicatorStyle { get; set; }
The of both SelectionVisibilityIndicators.
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
OnCreateAutomationPeer()
AutomationPeer
Returns class-specific AutomationPeer implementations for the Windows Presentation Foundation (WPF) infrastructure.
protected override AutomationPeer OnCreateAutomationPeer()
AutomationPeer
The type-specific AutomationPeer implementation.
Raises the HoveredPeriodChangedEvent. This method is invoked whenever HoveredPeriod changes.
protected virtual void OnHoveredPeriodChanged(SelectionRange<DateTime>? hoveredPeriod)
The new value of HoveredPeriod.
Raises the event. This method is invoked whenever is set to true internally.
protected override void OnInitialized(EventArgs e)
The RoutedEventArgs that contains the event data.
Overrides:
Raises the SelectionChangedEvent. This method is invoked whenever Selection changes.
protected virtual void OnSelectionChanged()
Events
Occurs when the ActualSelectionStart or the ActualSelectionEnd change.
public event EventHandler ActualSelectionChanged
Occurs when the HoveredPeriod changes.
public event EventHandler<HoveredPeriodEventArgs> HoveredPeriodChanged
Occurs when the Selection changes.
public event RadRoutedEventHandler SelectionChanged
Implements:
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.