ClassTimeBarIntervalContainerBase
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
TimeBarIntervalContainerBase()
Initializes a new instance of the TimeBarIntervalContainerBase class.
Declaration
protected TimeBarIntervalContainerBase()
Fields
SelectionChangedEvent
Identifies the SelectionChanged routed event.
Declaration
public static readonly RoutedEvent SelectionChangedEvent
Field Value
RoutedEvent
SelectionEndProperty
Identifies the SelectionEnd dependency property.
Declaration
public static readonly DependencyProperty SelectionEndProperty
Field Value
DependencyProperty
SelectionProperty
Identifies the Selection dependency property.
Declaration
public static readonly DependencyProperty SelectionProperty
Field Value
DependencyProperty
SelectionStartProperty
Identifies the SelectionStart dependency property.
Declaration
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.
Selection
Gets or sets the selected period.
Declaration
public SelectionRange<DateTime> Selection { get; set; }
Property Value
The selected period.
Implements
SelectionEnd
Gets or sets the end of the selected period.
Declaration
public DateTime SelectionEnd { get; set; }
Property Value
The end of the selected period.
Implements
SelectionStart
Gets or sets the start of the selected period.
Declaration
public DateTime SelectionStart { get; set; }
Property Value
The start of the selected period.
Implements
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
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
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
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
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
protected override void OnMouseMove(MouseEventArgs e)
Parameters
e
MouseEventArgs
The data for the event.
OnSelectionChanged()
Called when the selection changed.
Declaration
protected virtual void OnSelectionChanged()
Events
SelectionChanged
Occurs when the Selection changes.
Declaration
public event RadRoutedEventHandler SelectionChanged
Event Value
Implements