Click or drag to resize
TimeSpanComponentBase Class
Represents a base class used as DataContext for a RadTimeSpanPickerComponent in the drop down part of the RadTimeSpanPicker.
Inheritance Hierarchy

Namespace: Telerik.Windows.Controls
Assembly: Telerik.Windows.Controls.Input (in Telerik.Windows.Controls.Input.dll) Version: 2017.2.614.40 (2017.2.614.40)
Syntax
public abstract class TimeSpanComponentBase : Freezable

The TimeSpanComponentBase type exposes the following members.

Constructors
  NameDescription
Protected methodTimeSpanComponentBase
Top
Methods
  NameDescription
Public methodGetSelectedIndexFromTimeSpan
Returns the index of the item from the ItemsSource that should be selected for the TimeSpan from originalTicks.
Public methodGetTicksFromItem
Returns a long TimeSpan.Ticks value corresponding to an item from the ItemsSource.
Top
Extension Methods
  NameDescription
Public Extension MethodChildrenOfTypeT
Gets all child elements recursively from the visual tree by given type.
(Defined by ChildrenOfTypeExtensions.)
Public Extension MethodClearIfNoBindingAndSet
Clears if set.
(Defined by CommonExtensions.)
Public Extension MethodClearIfSet
Clears the property if a value has been set.
(Defined by CommonExtensions.)
Public Extension MethodFindChildByTypeT
Finds child element of the specified type. Uses breadth-first search.
(Defined by ChildrenOfTypeExtensions.)
Public Extension MethodGetParents
Enumerates through element's parents in the visual tree.
(Defined by ParentOfTypeExtensions.)
Public Extension MethodGetVisualParentT
Searches up in the visual tree for parent element of the specified type.
(Defined by ParentOfTypeExtensions.)
Public Extension MethodIsAncestorOf
Determines whether the element is an ancestor of the descendant.
(Defined by ParentOfTypeExtensions.)
Public Extension MethodIsLocalValueSet(DependencyProperty)Overloaded.
Determines whether the specified dependency property local value is set.
(Defined by DependencyObjectExtensions.)
Public Extension MethodIsLocalValueSet(DependencyProperty)Overloaded.
Determines whether the specified dependency property local value is set.
(Defined by CommonExtensions.)
Public Extension MethodParentOfTypeT
Gets the parent element from the visual tree by given type.
(Defined by ParentOfTypeExtensions.)
Public Extension MethodSetIfDifferent
Sets the value of the dependencyProperty property if it's hasn't that value currently.
(Defined by CommonExtensions.)
Top
Fields
  NameDescription
Public fieldStatic memberHeaderProperty
Identifies the Header dependency property.
Public fieldStatic memberItemsSourceProperty
Identifies the ItemsSource dependency property.
Protected fieldStatic memberSelectedItemProperty
Identifies the SelectedItem dependency property.
Top
Properties
  NameDescription
Public propertyHeader
Gets or sets a string that represents the title/header or the TimeSpanComponentBase.
Public propertyItemsSource
Gets or sets a collection representing the available items to choose for the TimeSpanComponentBase. It is used to populate the Items in the RadListBox of a RadTimeSpanPickerComponent.
Protected propertySelectedItem
Gets or sets the SelectedItem from the ItemsSource of the TimeSpanComponentBase.
Top
Events
  NameDescription
Protected eventSelectedItemChanged
Occurs when the SelectedItem property is changed.
Top
See Also