Class TimeSpanComponentBase
Represents a base class used as DataContext for a Rad
Inheritance
Namespace: Telerik.Windows.Controls
Assembly: Telerik.Windows.Controls.Input.dll
Syntax
public abstract class TimeSpanComponentBase : Freezable
Constructors
TimeSpanComponentBase()
Declaration
protected TimeSpanComponentBase()
Fields
HeaderProperty
Identifies the Header dependency property.
Declaration
public static readonly DependencyProperty HeaderProperty
Field Value
System.
|
ItemsSourceProperty
Identifies the ItemsSource dependency property.
Declaration
public static readonly DependencyProperty ItemsSourceProperty
Field Value
System.
|
SelectedItemProperty
Identifies the SelectedItem dependency property.
Declaration
protected static readonly DependencyProperty SelectedItemProperty
Field Value
System.
|
Properties
Header
Gets or sets a string that represents the title/header or the Time
Declaration
public string Header { get; set; }
Property Value
System.
|
ItemsSource
Gets or sets a collection representing the available items to choose for the Time
Declaration
public IEnumerable ItemsSource { get; set; }
Property Value
System.
|
SelectedItem
Gets or sets the SelectedItem from the Items
Declaration
protected object SelectedItem { get; set; }
Property Value
System.
|
Methods
GetSelectedIndexFromTimeSpan(Int64, Int64)
Returns the index of the item from the ItemsSource that should be selected for the TimeSpan from originalTicks.
Declaration
public virtual int GetSelectedIndexFromTimeSpan(long originalTicks, long ticksLeftAfterSelection)
Parameters
System. The ticks corresponding for the original TimeSpan value. |
System. The ticks left from the originalTicks after selection has been performed in the previous Time |
Returns
System.
|
GetTicksFromItem(Object)
Returns a long System.
Declaration
public abstract long GetTicksFromItem(object item)
Parameters
System. An item from the Items |
Returns
System. A long number that is the System. |
Events
SelectedItemChanged
Occurs when the Selected
Declaration
protected event EventHandler<TimeSpanComponentSelectedItemChangedEventArgs> SelectedItemChanged
Event Type
System.
|