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

A base class for RadTimeBar and RadTimeline.

Definition

Namespace:Telerik.Windows.Controls

Assembly:Telerik.Windows.Controls.DataVisualization.dll

Syntax:

C#
[TelerikToolboxCategory("Data Visualization")]
public abstract class TimeBarBase : ContentControl, ISupportInitialize

Inheritance: objectTimeBarBase

Derived Classes: RadTimeBarRadTimeline

Implements: ISupportInitialize

Constructors

Initializes a new instance of the TimeBarBase class.

C#
protected TimeBarBase()

Fields

ActualMinZoomRangeProperty

DependencyProperty

Identifies the ActualMinZoomRange dependency property.

C#
public static readonly DependencyProperty ActualMinZoomRangeProperty

Identifies the ActualVisiblePeriodRange dependency property.

C#
public static readonly DependencyProperty ActualVisiblePeriodRangeProperty

Identifies the CurrentGroupInterval dependency property.

C#
public static readonly DependencyProperty CurrentGroupIntervalProperty

CurrentItemIntervalProperty

DependencyProperty

Identifies the CurrentItemInterval dependency property.

C#
public static readonly DependencyProperty CurrentItemIntervalProperty

Identifies the GroupIntervalChanged routed event.

C#
public static readonly RoutedEvent GroupIntervalChangedEvent

Identifies the GroupPeriodHeaderStyle dependency property.

C#
public static readonly DependencyProperty GroupPeriodHeaderStyleProperty

IntervalGroupsProperty

DependencyProperty

Identifies the IntervalGroups dependency property.

C#
public static readonly DependencyProperty IntervalGroupsProperty

IntervalItemsProperty

DependencyProperty

Identifies the IntervalItems dependency property.

C#
public static readonly DependencyProperty IntervalItemsProperty

IntervalsProperty

DependencyProperty

Identifies the Intervals dependency property.

C#
public static readonly DependencyProperty IntervalsProperty

Identifies the ItemIntervalChanged routed event.

C#
public static readonly RoutedEvent ItemIntervalChangedEvent

LargeChangeProperty

DependencyProperty

Identifies the LargeChange dependency property.

C#
public static readonly DependencyProperty LargeChangeProperty

MaxZoomRangeProperty

DependencyProperty

Identifies the MaxZoomRange dependency property.

C#
public static readonly DependencyProperty MaxZoomRangeProperty

MinZoomRangeProperty

DependencyProperty

Identifies the MinZoomRange dependency property.

C#
public static readonly DependencyProperty MinZoomRangeProperty

PeriodEndProperty

DependencyProperty

Identifies the PeriodEnd dependency property.

C#
public static readonly DependencyProperty PeriodEndProperty

PeriodHeaderStyleProperty

DependencyProperty

Identifies the PeriodHeaderStyle dependency property.

C#
public static readonly DependencyProperty PeriodHeaderStyleProperty

PeriodStartProperty

DependencyProperty

Identifies the PeriodStart dependency property.

C#
public static readonly DependencyProperty PeriodStartProperty

ScrollModeProperty

DependencyProperty

Identifies the ScrollMode dependency property.

C#
public static readonly DependencyProperty ScrollModeProperty

SliderStyleProperty

DependencyProperty

Identifies the SliderStyle dependency property.

C#
public static readonly DependencyProperty SliderStyleProperty

SmallChangeProperty

DependencyProperty

Identifies the SmallChange dependency property.

C#
public static readonly DependencyProperty SmallChangeProperty

Identifies the SpecialSlotsGenerator dependency property.

C#
public static readonly DependencyProperty SpecialSlotsGeneratorProperty

SpecialSlotsProperty

DependencyProperty

Identifies the SpecialSlots dependency property.

C#
public static readonly DependencyProperty SpecialSlotsProperty

Identifies the VisiblePeriodChanged routed event.

C#
public static readonly RoutedEvent VisiblePeriodChangedEvent

VisiblePeriodEndProperty

DependencyProperty

Identifies the VisiblePeriodEnd dependency property.

C#
public static readonly DependencyProperty VisiblePeriodEndProperty

VisiblePeriodProperty

DependencyProperty

Identifies the VisiblePeriod dependency property.

C#
public static readonly DependencyProperty VisiblePeriodProperty

VisiblePeriodStartProperty

DependencyProperty

Identifies the VisiblePeriodStart dependency property.

C#
public static readonly DependencyProperty VisiblePeriodStartProperty

Properties

Gets the actual visible period range.

C#
[Browsable(false)]
public SelectionRange<DateTime> ActualVisiblePeriodRange { get; }
Property Value:

The actual visible period range.

Remarks:

When the user is dragging one of the slider thumbs, the VisiblePeriodStart and VisiblePeriodEnd properties are updated once the user releases the slider thumb. On the other hand, the ActualVisiblePeriodRange property is updated while the slider thumbs are moving.

Gets the current group interval.

C#
public IntervalBase CurrentGroupInterval { get; }
Property Value:

The current group interval.

Gets the current item interval.

C#
public IntervalBase CurrentItemInterval { get; }
Property Value:

The current item interval.

Gets or sets the HeaderStyle for every group period item.

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

The HeaderStyle for every group period item.

Gets a collection of intervals used by the control.

C#
public IntervalCollection Intervals { get; }
Property Value:

A collection of intervals used by the control.

Gets or sets the maximum TimeSpan that the control can zoom out to.

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

The maximum TimeSpan that the control can zoom out to.

Remarks:

The MaxZoomRange value must be greater than or equal to the value of MinZoomRange.

Gets or sets the minimum TimeSpan that the control can zoom in to.

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

The minimum TimeSpan that the control can zoom in to.

Remarks:

By default, the size of the content element is restricted to 30000 pixels. This restriction is enforced by specifying a minimum zoom range using the ActualMinZoomRange property. In case MinZoomRange is specified, that is, its value is not Zero, its value is set to the ActualMinZoomRange property and the default behavior is overwritten. However, in Silverlight, due to a limitation in the framework, the 30000 pixel restriction is respected even in case a small value is specified for the MinZoomRange property.

Gets or sets the end of the period that the control visualizes. The PeriodEnd value itself is excluded from the period.

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

The end of the period that the control visualizes.

Remarks:

The PeriodStart value must be less than or equal to the value of PeriodEnd.

Gets or sets the HeaderStyle for every period item.

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

The HeaderStyle for every period item.

Gets or sets the start of the period that the control visualizes.

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

The start of the period that the control visualizes.

Remarks:

The PeriodStart value must be less than or equal to the value of PeriodEnd.

Gets or sets a value that determines how manipulation input influences the horizontal scrolling and zooming behavior of the control.

C#
public ScrollMode ScrollMode { get; set; }
Property Value:

A value that determines how manipulation input influences the horizontal scrolling and zooming behavior of the control. The default is .

Gets or sets the of the RadSlider.

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

The of the RadSlider.

Gets or sets an ITimeRangeGenerator instance that generates special IPeriodSpan slots for the current VisiblePeriod.

C#
public ITimeRangeGenerator SpecialSlotsGenerator { get; set; }
Property Value:

An ITimeRangeGenerator instance that generates the special IPeriodSpan slots for the current VisiblePeriod. By default, no special slots are generated.

Gets or sets the visible period.

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

The visible period.

Gets or sets the end of the visible period.

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

The end of the visible period.

Remarks:

The VisiblePeriodStart value must be less than or equal to the value of VisiblePeriodEnd. Additionally, both VisiblePeriodStart and VisiblePeriodEnd must be within the period, defined by the PeriodStart and PeriodEnd properties.

Gets or sets the start of the visible period.

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

The start of the visible period.

Remarks:

The VisiblePeriodStart value must be less than or equal to the value of VisiblePeriodEnd. Additionally, both VisiblePeriodStart and VisiblePeriodEnd must be within the period, defined by the PeriodStart and PeriodEnd properties.

Methods

Converts a point inside the control to a DateTime value relative to the timeline.

C#
public DateTime ConvertPointToDateTime(Point coordinates)
Parameters:coordinatesPoint

Position inside the control.

Returns:

DateTime

The DateTime value relative to the timeline.

Indicates that the initialization process for the element is complete.

C#
public override void EndInit()
Exceptions:

InvalidOperationException

was called without having previously been called on the element.

Implements: ISupportInitialize.EndInit()

When overridden in a derived class, is invoked whenever application code or internal processes call .

C#
public override void OnApplyTemplate()

Called when the CurrentGroupInterval changes.

C#
protected virtual void OnGroupIntervalChanged(IntervalBase oldInterval, IntervalBase newInterval)
Parameters:oldIntervalIntervalBase

The old interval.

newIntervalIntervalBase

The new interval.

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.

Called when the CurrentItemInterval changes.

C#
protected virtual void OnItemIntervalChanged(IntervalBase oldInterval, IntervalBase newInterval)
Parameters:oldIntervalIntervalBase

The old interval.

newIntervalIntervalBase

The new interval.

Raises the event.

C#
protected override void OnMouseWheel(MouseWheelEventArgs e)
Parameters:eMouseWheelEventArgs

The MouseWheelEventArgs instance containing the event data.

Called when the Selection of the RadSlider changes.

C#
protected virtual void OnSliderSelectionChanged(object sender, RadRoutedEventArgs e)
Parameters:senderobject

The RadSlider instance.

eRadRoutedEventArgs

The RadRoutedEventArgs instance containing the event data.

Called when the VisiblePeriodStart or the VisiblePeriodEnd change.

C#
protected virtual void OnVisiblePeriodChanged()

Registers an ICommand with the TimeBarBase type.

C#
protected static void RegisterCommand(ICommand command, ExecutedRoutedEventHandler executed, CanExecuteRoutedEventHandler canExecute)
Parameters:commandICommand

The ICommand to register.

executedExecutedRoutedEventHandler

The handler for the event on the new RoutedCommand.

canExecuteCanExecuteRoutedEventHandler

The handler for the event on the new RoutedCommand.

Events

Occurs when the actual visible period range changes.

C#
public event EventHandler ActualVisiblePeriodRangeChanged

Occurs when the CurrentGroupInterval changes.

C#
public event EventHandler<DrillEventArgs> GroupIntervalChanged

Occurs when the CurrentItemInterval changes.

C#
public event EventHandler<DrillEventArgs> ItemIntervalChanged

Occurs when the VisiblePeriodStart or the VisiblePeriodEnd change.

C#
public event RadRoutedEventHandler VisiblePeriodChanged