Class
TimeBarIntervalContainerBase

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:

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

TimeBarIntervalContainerBase()

Initializes a new instance of the TimeBarIntervalContainerBase class.

Declaration

cs-api-definition
protected TimeBarIntervalContainerBase()

Fields

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

Properties

IsDragging

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

Declaration

cs-api-definition
protected bool IsDragging { get; }

Property Value

bool

Selection

Gets or sets the selected period.

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

Property Value

DateTime

The start of the selected period.

Implements IRangeSelector<DateTime>.SelectionStart

Methods

GetHoveredChildren(Point, Point, UIElement)

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

Declaration

cs-api-definition
protected virtual IEnumerable<TimeBarIntervalControlBase> GetHoveredChildren(Point dragStartPoint, Point dragEndPoint, UIElement subtree)

Parameters

dragStartPoint

Point

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

dragEndPoint

Point

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

subtree

UIElement

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.

GetHoveredChildren(Point, UIElement)

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

Declaration

cs-api-definition
protected virtual IEnumerable<TimeBarIntervalControlBase> GetHoveredChildren(Point point, UIElement subtree)

Parameters

point

Point

The Point that intersects the TimeBarIntervalControlBase children.

subtree

UIElement

The UIElement subtree to traverse.

Returns

IEnumerable<TimeBarIntervalControlBase>

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

OnMouseLeftButtonDown(MouseButtonEventArgs)

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

Declaration

cs-api-definition
protected override void OnMouseLeftButtonDown(MouseButtonEventArgs e)

Parameters

e

MouseButtonEventArgs

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

OnMouseLeftButtonUp(MouseButtonEventArgs)

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.

Declaration

cs-api-definition
protected override void OnMouseLeftButtonUp(MouseButtonEventArgs e)

Parameters

e

MouseButtonEventArgs

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

OnMouseMove(MouseEventArgs)

Called before the event occurs.

Declaration

cs-api-definition
protected override void OnMouseMove(MouseEventArgs e)

Parameters

e

MouseEventArgs

The data for the event.

OnSelectionChanged()

Called when the selection changed.

Declaration

cs-api-definition
protected virtual void OnSelectionChanged()

Events

SelectionChanged

Occurs when the Selection changes.

Declaration

cs-api-definition
public event RadRoutedEventHandler SelectionChanged

Event Value

RadRoutedEventHandler

Implements IRangeSelector<DateTime>.SelectionChanged