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

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:

C#
public class SelectionThumb : PeriodSpanControlAdapter, IPeriodSpan, IRangeSelector<DateTime>

Inheritance: objectPeriodSpanControlAdapterSelectionThumb

Implements: IPeriodSpanIRangeSelector<DateTime>

Inherited Members PeriodSpanControlAdapter.EndDatePropertyPeriodSpanControlAdapter.StartDatePropertyPeriodSpanControlAdapter.EndDatePeriodSpanControlAdapter.StartDatePeriodSpanControlAdapter.Interval

Constructors

Initializes a new instance of the SelectionThumb class.

C#
public SelectionThumb()

Fields

IntervalGroupsProperty

DependencyProperty

Identifies the IntervalGroups dependency property.

C#
public static readonly DependencyProperty IntervalGroupsProperty

IntervalItemsProperty

DependencyProperty

Identifies the IntervalItems dependency property.

C#
public static readonly DependencyProperty IntervalItemsProperty

Identifies the IsSnapToIntervalEnabled dependency property.

C#
public static readonly DependencyProperty IsSnapToIntervalEnabledProperty

MaxSelectionRangeProperty

DependencyProperty

Identifies the MaxSelectionRange dependency property.

C#
public static readonly DependencyProperty MaxSelectionRangeProperty

MinSelectionRangeProperty

DependencyProperty

Identifies the MinSelectionRange dependency property.

C#
public static readonly DependencyProperty MinSelectionRangeProperty

PeriodEndProperty

DependencyProperty

Identifies the PeriodEnd dependency property.

C#
public static readonly DependencyProperty PeriodEndProperty

PeriodStartProperty

DependencyProperty

Identifies the PeriodStart dependency property.

C#
public static readonly DependencyProperty PeriodStartProperty

Identifies the ScrollCompleted routed event.

C#
public static readonly RoutedEvent ScrollCompletedEvent

Identifies the ScrollStarted routed event.

C#
public static readonly RoutedEvent ScrollStartedEvent

Identifies the SelectionChanged routed event.

C#
public static readonly RoutedEvent SelectionChangedEvent

SelectionEndProperty

DependencyProperty

Identifies the SelectionEnd dependency property.

C#
public static readonly DependencyProperty SelectionEndProperty

Identifies the SelectionPreviewControl dependency property.

C#
public static readonly DependencyProperty SelectionPreviewControlProperty

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

TitleFormatStringProperty

DependencyProperty

Identifies the TitleFormatString dependency property.

C#
public static readonly DependencyProperty TitleFormatStringProperty

TitleProperty

DependencyProperty

Identifies the Title dependency property.

C#
public static readonly DependencyProperty TitleProperty

VisiblePeriodRangeProperty

DependencyProperty

Identifies the VisiblePeriodRange dependency property.

C#
public static readonly DependencyProperty VisiblePeriodRangeProperty

Properties

Gets or sets a collection of PeriodSpans used to generate the group period items.

C#
public IEnumerable<PeriodSpan> IntervalGroups { get; set; }
Property Value:

A collection of PeriodSpans used to generate the group period items.

Remarks:

This property is for internal use only.

Gets or sets a collection of PeriodSpans used to generate the period items.

C#
public IEnumerable<PeriodSpan> IntervalItems { get; set; }
Property Value:

A collection of PeriodSpans used to generate the period items.

Remarks:

This property is for internal use only.

Gets or sets a value that indicates whether snapping to intervals is enabled.

C#
public bool IsSnapToIntervalEnabled { get; set; }
Property Value:

A value that indicates whether snapping to intervals is enabled.

Gets or sets the maximum possible Selection of the RadTimeBar.

C#
public TimeSpan MaxSelectionRange { get; set; }
Property Value:

The maximum possible Selection of the RadTimeBar. The default value is Zero

Remarks:

The Zero value indicates that there is no maximum Selection constraint.

Gets or sets the minimum possible Selection of the RadTimeBar.

C#
public TimeSpan MinSelectionRange { get; set; }
Property Value:

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.

C#
public DateTime PeriodEnd { get; set; }
Property Value:

The end of the period that the control visualizes.

Remarks:

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.

C#
public DateTime PeriodStart { get; set; }
Property Value:

The start of the period that the control visualizes.

Remarks:

The PeriodStart value must be less than or equal to the value of PeriodEnd.

Gets or sets the selected period in the RadTimeBar.

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 SelectionThumbPreview control.

C#
public SelectionThumbPreview SelectionPreviewControl { get; set; }
Property Value:

The SelectionThumbPreview control.

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

Gets the title of the selection.

C#
public string Title { get; }
Property Value:

The title of the selection.

Gets or sets the format string for the selection title.

C#
public string TitleFormatString { get; set; }
Property Value:

The format string for the selection title.

Gets or sets the visible period range.

C#
public SelectionRange<DateTime> VisiblePeriodRange { get; set; }
Property Value:

The visible period range.

Methods

When overridden in a derived class, is invoked whenever application code or internal processes call .

C#
public override void OnApplyTemplate()

Called when the center selection control loses mouse capture.

C#
protected void OnCenterHandleDragCompleted(object sender, DragCompletedEventArgs e)
Parameters:senderobject

The sender.

eDragCompletedEventArgs

The 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.

C#
protected virtual void OnCenterHandleDragDelta(object sender, DragDeltaEventArgs e)
Parameters:senderobject

The sender.

eDragDeltaEventArgs

The DragDeltaEventArgs instance containing the event data.

Called when the center selection receives logical focus and mouse capture.

C#
protected void OnCenterHandleDragStarted(object sender, DragStartedEventArgs e)
Parameters:senderobject

The sender.

eDragStartedEventArgs

The DragStartedEventArgs instance containing the event data.

Raises the event. This method is invoked whenever is set to true internally.

C#
protected override void OnInitialized(EventArgs e)
Parameters:eEventArgs

The RoutedEventArgs that contains the event data.

Called when the Interval changes.

C#
protected override void OnIntervalChanged()

Overrides: PeriodSpanControlAdapter.OnIntervalChanged()

Called when the left selection control loses mouse capture.

C#
protected void OnLeftHandleDragCompleted(object sender, DragCompletedEventArgs e)
Parameters:senderobject

The sender.

eDragCompletedEventArgs

The 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.

C#
protected virtual void OnLeftHandleDragDelta(object sender, DragDeltaEventArgs e)
Parameters:senderobject

The sender.

eDragDeltaEventArgs

The DragDeltaEventArgs instance containing the event data.

Called when the left selection receives logical focus and mouse capture.

C#
protected void OnLeftHandleDragStarted(object sender, DragStartedEventArgs e)
Parameters:senderobject

The sender.

eDragStartedEventArgs

The 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.

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

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.

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

The MouseEventArgs that contains the event data.

Called when the right selection control loses mouse capture.

C#
protected void OnRightHandleDragCompleted(object sender, DragCompletedEventArgs e)
Parameters:senderobject

The sender.

eDragCompletedEventArgs

The 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.

C#
protected virtual void OnRightHandleDragDelta(object sender, DragDeltaEventArgs e)
Parameters:senderobject

The sender.

eDragDeltaEventArgs

The DragDeltaEventArgs instance containing the event data.

Called when the right selection receives logical focus and mouse capture.

C#
protected void OnRightHandleDragStarted(object sender, DragStartedEventArgs e)
Parameters:senderobject

The sender.

eDragStartedEventArgs

The DragStartedEventArgs instance containing the event data.

Called when the SelectionThumb stops moving.

C#
protected virtual void OnScrollCompleted()

Called when the SelectionThumb starts moving.

C#
protected virtual void OnScrollStarted()

Called when the Selection changes.

C#
protected virtual void OnSelectionChanged()

Events

Occurs when the SelectionThumb stops moving.

C#
public event RadRoutedEventHandler ScrollCompleted

Occurs when the SelectionThumb starts moving.

C#
public event RadRoutedEventHandler ScrollStarted

Occurs when the Selection changes.

C#
public event RadRoutedEventHandler SelectionChanged

Implements: IRangeSelector<DateTime>.SelectionChanged

Remarks:

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.