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

Base class for all interval containers. Allows visual selection of items and label string measurement.

Definition

Namespace:Telerik.Windows.Controls.TimeBar

Assembly:Telerik.Windows.Controls.DataVisualization.dll

Syntax:

C#
public abstract class TimeBarIntervalContainerBase : TimeIntervalContainerBase, IRangeSelector<DateTime>

Inheritance: objectTimeIntervalContainerBaseTimeBarIntervalContainerBase

Derived Classes: GroupContainerItemContainer

Implements: IRangeSelector<DateTime>

Inherited Members TimeIntervalContainerBase.ItemHeaderStylePropertyTimeIntervalContainerBase.OnApplyTemplate()TimeIntervalContainerBase.PrepareContainerForItemOverride(DependencyObject, object)TimeIntervalContainerBase.ItemHeaderStyle

Constructors

Initializes a new instance of the TimeBarIntervalContainerBase class.

C#
protected TimeBarIntervalContainerBase()

Fields

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

Properties

Gets a value indicating whether the TimeBarIntervalContainerBase has logical focus and mouse capture and the left mouse button is pressed.

C#
protected bool IsDragging { get; }

Gets or sets the selected period.

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#
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#
public DateTime SelectionStart { get; set; }
Property Value:

The start of the selected period.

Implements: IRangeSelector<DateTime>.SelectionStart

Methods

Returns the collection of child TimeBarIntervalControlBase elements of the specified UIElement that intersect the Rect defined by the specified start and end Points.

C#
protected virtual IEnumerable<TimeBarIntervalControlBase> GetHoveredChildren(Point dragStartPoint, Point dragEndPoint, UIElement subtree)
Parameters:dragStartPointPoint

The first Point that defines the Rect in which to search for TimeBarIntervalControlBase children.

dragEndPointPoint

The second Point that defines the Rect in which to search for TimeBarIntervalControlBase children.

subtreeUIElement

The UIElement subtree to traverse.

Returns:

IEnumerable<TimeBarIntervalControlBase>

A list of child TimeBarIntervalControlBase elements of the specified UIElement that intersect the Rect defined by the specified start and end Points.

Returns the collection of child TimeBarIntervalControlBase elements of the specified UIElement that intersect the specified Point.

C#
protected virtual IEnumerable<TimeBarIntervalControlBase> GetHoveredChildren(Point point, UIElement subtree)
Parameters:pointPoint

The Point that intersects the TimeBarIntervalControlBase children.

subtreeUIElement

The UIElement subtree to traverse.

Returns:

IEnumerable<TimeBarIntervalControlBase>

A list of child TimeBarIntervalControlBase elements of the specified UIElement that intersect the specified Point.

Invoked when an unhandled routed event is raised on this element. Implement this method to add class handling for this event.

C#
protected override void OnMouseLeftButtonDown(MouseButtonEventArgs e)
Parameters:eMouseButtonEventArgs

The MouseButtonEventArgs that contains the event data. The event data reports that the left mouse button was pressed.

Invoked when an unhandled routed event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event.

C#
protected override void OnMouseLeftButtonUp(MouseButtonEventArgs e)
Parameters:eMouseButtonEventArgs

The MouseButtonEventArgs that contains the event data. The event data reports that the left mouse button was released.

Called before the event occurs.

C#
protected override void OnMouseMove(MouseEventArgs e)
Parameters:eMouseEventArgs

The data for the event.

Called when the selection changed.

C#
protected virtual void OnSelectionChanged()

Events

Occurs when the Selection changes.

C#
public event RadRoutedEventHandler SelectionChanged

Implements: IRangeSelector<DateTime>.SelectionChanged