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:
public abstract class TimeBarIntervalContainerBase : TimeIntervalContainerBase, IRangeSelector<DateTime>
Inheritance: objectTimeIntervalContainerBaseTimeBarIntervalContainerBase
Derived Classes:
Implements:
Inherited Members
Constructors
Initializes a new instance of the TimeBarIntervalContainerBase class.
protected TimeBarIntervalContainerBase()
Fields
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
Properties
Gets a value indicating whether the TimeBarIntervalContainerBase has logical focus and mouse capture and the left mouse button is pressed.
protected bool IsDragging { get; }
Gets or sets the selected period.
public SelectionRange<DateTime> Selection { get; set; }
The selected period.
Implements:
Gets or sets the end of the selected period.
public DateTime SelectionEnd { get; set; }
The end of the selected period.
Implements:
Gets or sets the start of the selected period.
public DateTime SelectionStart { get; set; }
The start of the selected period.
Implements:
Methods
Returns the collection of child TimeBarIntervalControlBase elements of the specified UIElement that intersect the Rect defined by the specified start and end Points.
protected virtual IEnumerable<TimeBarIntervalControlBase> GetHoveredChildren(Point dragStartPoint, Point dragEndPoint, UIElement subtree)
The first Point that defines the Rect in which to search for TimeBarIntervalControlBase children.
dragEndPointPointThe second Point that defines the Rect in which to search for TimeBarIntervalControlBase children.
subtreeUIElementThe 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.
protected virtual IEnumerable<TimeBarIntervalControlBase> GetHoveredChildren(Point point, UIElement subtree)
The Point that intersects the TimeBarIntervalControlBase children.
subtreeUIElementThe 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.
protected override void OnMouseLeftButtonDown(MouseButtonEventArgs e)
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.
protected override void OnMouseLeftButtonUp(MouseButtonEventArgs e)
The MouseButtonEventArgs that contains the event data. The event data reports that the left mouse button was released.
Called before the event occurs.
protected override void OnMouseMove(MouseEventArgs e)
The data for the event.
Called when the selection changed.
protected virtual void OnSelectionChanged()
Events
Occurs when the Selection changes.
public event RadRoutedEventHandler SelectionChanged
Implements: