Provides the shared value, owner, and visual-element contract for a selectable time-unit component.
Definition
Namespace:Telerik.WinControls.UI
Assembly:Telerik.WinControls.UI.dll
Syntax:
public abstract class BaseTimeSpanPickerComponent : RadItem, INotifyPropertyChanged, ICustomTypeDescriptor, ISupportSystemSkin, IBindableComponent, IComponent, IDisposable, ISupportDrag, ISupportDrop, IShortcutProvider, IStylableElement, IStylableNode, ITimeSpanPickerComponent
Inheritance: objectDisposableObjectRadObjectRadElementVisualElementRadComponentElementRadItemBaseTimeSpanPickerComponent...
Derived Classes:
Implements:
Inherited Members
Constructors
Initializes the component with its popup content owner and creates its visual child.
public BaseTimeSpanPickerComponent(ITimeSpanPickerContentElement owner)
The popup content element that hosts this component.
Fields
Supplies the initial minimum size used for a time-unit component.
public readonly Size DefaultComponentSize
Properties
Gets or sets the minimum size used when measuring this component.
public override Size DefaultSize { get; set; }
Overrides:
Gets or sets the upper bound used to populate the component's available values.
public double Maximum { get; set; }
Implements:
Gets or sets the lower bound used to populate the component's available values.
public double Minimum { get; set; }
Implements:
Gets the popup content element that owns this component.
public ITimeSpanPickerContentElement Owner { get; }
Implements:
Gets or sets the increment between values populated for this component.
public double Step { get; set; }
Implements:
Gets the visual child that displays and edits this component's time unit.
public BaseTimeSpanPickerUIComponent TimeSpanPickerUIComponent { get; }
Implements:
Methods
Creates the visual child used to display and edit this time unit.
public abstract BaseTimeSpanPickerUIComponent CreateVisualElement()
The visual element to host in this component.
Implements:
Gets this component's selected unit expressed in ticks.
public abstract long GetValueInTicks()
The selected unit's contribution to the composed time span, in ticks.
Implements:
Applies DefaultComponentSize as the initial DefaultSize.
protected override void InitializeFields()
Overrides:
Measures the component without allowing its result to be smaller than DefaultSize.
Selects the value for this unit from the supplied time span.
public abstract void SetValue(TimeSpan value)
The time span whose corresponding unit value should be selected.
Implements:
Refreshes localized text displayed by the visual child.
public abstract void UpdateLocalization()
Implements: