SelectionThumb
Allows selection of a time span in the RadTimeBar control. It is positioned according to the SelectionStart and SelectionEnd properties of the RadTimeBar.
Definition
Namespace:Telerik.Windows.Controls.TimeBar
Assembly:Telerik.Windows.Controls.DataVisualization.dll
Syntax:
public class SelectionThumb : PeriodSpanControlAdapter, IPeriodSpan, IRangeSelector<DateTime>
Inheritance: objectPeriodSpanControlAdapterSelectionThumb
Implements:
Inherited Members
Constructors
Initializes a new instance of the SelectionThumb class.
public SelectionThumb()
Fields
IntervalGroupsProperty
DependencyProperty
Identifies the IntervalGroups dependency property.
public static readonly DependencyProperty IntervalGroupsProperty
IntervalItemsProperty
DependencyProperty
Identifies the IntervalItems dependency property.
public static readonly DependencyProperty IntervalItemsProperty
IsSnapToIntervalEnabledProperty
DependencyProperty
Identifies the IsSnapToIntervalEnabled dependency property.
public static readonly DependencyProperty IsSnapToIntervalEnabledProperty
MaxSelectionRangeProperty
DependencyProperty
Identifies the MaxSelectionRange dependency property.
public static readonly DependencyProperty MaxSelectionRangeProperty
MinSelectionRangeProperty
DependencyProperty
Identifies the MinSelectionRange dependency property.
public static readonly DependencyProperty MinSelectionRangeProperty
PeriodEndProperty
DependencyProperty
Identifies the PeriodEnd dependency property.
public static readonly DependencyProperty PeriodEndProperty
PeriodStartProperty
DependencyProperty
Identifies the PeriodStart dependency property.
public static readonly DependencyProperty PeriodStartProperty
ScrollCompletedEvent
RoutedEvent
Identifies the ScrollCompleted routed event.
public static readonly RoutedEvent ScrollCompletedEvent
ScrollStartedEvent
RoutedEvent
Identifies the ScrollStarted routed event.
public static readonly RoutedEvent ScrollStartedEvent
SelectionChangedEvent
RoutedEvent
Identifies the SelectionChanged routed event.
public static readonly RoutedEvent SelectionChangedEvent
SelectionEndProperty
DependencyProperty
Identifies the SelectionEnd dependency property.
public static readonly DependencyProperty SelectionEndProperty
SelectionPreviewControlProperty
DependencyProperty
Identifies the SelectionPreviewControl dependency property.
public static readonly DependencyProperty SelectionPreviewControlProperty
SelectionProperty
DependencyProperty
Identifies the Selection dependency property.
public static readonly DependencyProperty SelectionProperty
SelectionStartProperty
DependencyProperty
Identifies the SelectionStart dependency property.
public static readonly DependencyProperty SelectionStartProperty
TitleFormatStringProperty
DependencyProperty
Identifies the TitleFormatString dependency property.
public static readonly DependencyProperty TitleFormatStringProperty
TitleProperty
DependencyProperty
Identifies the Title dependency property.
public static readonly DependencyProperty TitleProperty
VisiblePeriodRangeProperty
DependencyProperty
Identifies the VisiblePeriodRange dependency property.
public static readonly DependencyProperty VisiblePeriodRangeProperty
Properties
Gets or sets a collection of PeriodSpans used to generate the group period items.
public IEnumerable<PeriodSpan> IntervalGroups { get; set; }
A collection of PeriodSpans used to generate the group period items.
This property is for internal use only.
Gets or sets a collection of PeriodSpans used to generate the period items.
public IEnumerable<PeriodSpan> IntervalItems { get; set; }
A collection of PeriodSpans used to generate the period items.
This property is for internal use only.
Gets or sets a value that indicates whether snapping to intervals is enabled.
public bool IsSnapToIntervalEnabled { get; set; }
A value that indicates whether snapping to intervals is enabled.
Gets or sets the maximum possible Selection of the RadTimeBar.
public TimeSpan MaxSelectionRange { get; set; }
The maximum possible Selection of the RadTimeBar. The default value is Zero
Gets or sets the minimum possible Selection of the RadTimeBar.
public TimeSpan MinSelectionRange { get; set; }
The minimum possible Selection of the RadTimeBar. The default value is Zero
Gets or sets the end of the period that the RadTimeBar control visualizes. The PeriodEnd value itself is excluded from the period.
public DateTime PeriodEnd { get; set; }
The end of the period that the control visualizes.
The PeriodStart value must be less than or equal to the value of PeriodEnd.
Gets or sets the start of the period that the RadTimeBar control visualizes.
public DateTime PeriodStart { get; set; }
The start of the period that the control visualizes.
The PeriodStart value must be less than or equal to the value of PeriodEnd.
Gets or sets the selected period in the RadTimeBar.
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 SelectionThumbPreview control.
public SelectionThumbPreview SelectionPreviewControl { get; set; }
The SelectionThumbPreview control.
Gets or sets the start of the selected period.
public DateTime SelectionStart { get; set; }
The start of the selected period.
Implements:
Gets the title of the selection.
public string Title { get; }
The title of the selection.
Gets or sets the format string for the selection title.
public string TitleFormatString { get; set; }
The format string for the selection title.
Gets or sets the visible period range.
public SelectionRange<DateTime> VisiblePeriodRange { get; set; }
The visible period range.
Methods
When overridden in a derived class, is invoked whenever application code or internal processes call .
public override void OnApplyTemplate()
Called when the center selection control loses mouse capture.
protected void OnCenterHandleDragCompleted(object sender, DragCompletedEventArgs e)
The sender.
eDragCompletedEventArgsThe DragCompletedEventArgs instance containing the event data.
Called one or more times as the mouse changes position when the center selection has logical focus and mouse capture.
protected virtual void OnCenterHandleDragDelta(object sender, DragDeltaEventArgs e)
The sender.
eDragDeltaEventArgsThe DragDeltaEventArgs instance containing the event data.
Called when the center selection receives logical focus and mouse capture.
protected void OnCenterHandleDragStarted(object sender, DragStartedEventArgs e)
The sender.
eDragStartedEventArgsThe DragStartedEventArgs instance containing the event data.
Raises the event. This method is invoked whenever is set to true internally.
protected override void OnInitialized(EventArgs e)
The RoutedEventArgs that contains the event data.
Called when the Interval changes.
protected override void OnIntervalChanged()
Overrides:
Called when the left selection control loses mouse capture.
protected void OnLeftHandleDragCompleted(object sender, DragCompletedEventArgs e)
The sender.
eDragCompletedEventArgsThe DragCompletedEventArgs instance containing the event data.
Called one or more times as the mouse changes position when the left selection has logical focus and mouse capture.
protected virtual void OnLeftHandleDragDelta(object sender, DragDeltaEventArgs e)
The sender.
eDragDeltaEventArgsThe DragDeltaEventArgs instance containing the event data.
Called when the left selection receives logical focus and mouse capture.
protected void OnLeftHandleDragStarted(object sender, DragStartedEventArgs e)
The sender.
eDragStartedEventArgsThe DragStartedEventArgs instance containing the event data.
Invoked when an unhandled attached event is raised on this element. Implement this method to add class handling for this event.
protected override void OnMouseLeave(MouseEventArgs e)
The MouseEventArgs that contains the event data.
Invoked when an unhandled attached 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 OnMouseMove(MouseEventArgs e)
The MouseEventArgs that contains the event data.
Called when the right selection control loses mouse capture.
protected void OnRightHandleDragCompleted(object sender, DragCompletedEventArgs e)
The sender.
eDragCompletedEventArgsThe DragCompletedEventArgs instance containing the event data.
Called one or more times as the mouse changes position when the center selection has logical focus and mouse capture.
protected virtual void OnRightHandleDragDelta(object sender, DragDeltaEventArgs e)
The sender.
eDragDeltaEventArgsThe DragDeltaEventArgs instance containing the event data.
Called when the right selection receives logical focus and mouse capture.
protected void OnRightHandleDragStarted(object sender, DragStartedEventArgs e)
The sender.
eDragStartedEventArgsThe DragStartedEventArgs instance containing the event data.
Called when the SelectionThumb stops moving.
protected virtual void OnScrollCompleted()
Called when the SelectionThumb starts moving.
protected virtual void OnScrollStarted()
Called when the Selection changes.
protected virtual void OnSelectionChanged()
Events
Occurs when the SelectionThumb stops moving.
public event RadRoutedEventHandler ScrollCompleted
Occurs when the SelectionThumb starts moving.
public event RadRoutedEventHandler ScrollStarted
Occurs when the Selection changes.
public event RadRoutedEventHandler SelectionChanged
Implements:
This event occurs whenever there is a change to the selection. The selection can be changed not only by user interaction but also by binding as well as other set values.