Displays a time-unit heading and a list of selectable numeric values for a picker component.
Definition
Namespace:Telerik.WinControls.UI
Assembly:Telerik.WinControls.UI.dll
Syntax:
public class ListTimeSpanPickerUIComponent : BaseTimeSpanPickerUIComponent, INotifyPropertyChanged, ICustomTypeDescriptor, ISupportSystemSkin, IBindableComponent, IComponent, IDisposable, ISupportDrag, ISupportDrop, IShortcutProvider, IStylableElement, IStylableNode, IPrimitiveElement, IShapedElement, IFillElement, IBorderElement, IBoxStyle, IBoxElement, IDrawFillElement, IImageElement, ITextPrimitive, ITextProvider, ITimeSpanPickerComponentMouse
Inheritance: objectDisposableObjectRadObjectRadElementVisualElementRadComponentElementRadItemUIItemBaseLightVisualElementBaseTimeSpanPickerUIComponentListTimeSpanPickerUIComponent...
Implements:
Inherited Members
Constructors
Initializes the list visual for the specified time-unit component.
public ListTimeSpanPickerUIComponent(ITimeSpanPickerComponent owner)
The component whose bounds, increment, and selected value are displayed.
Properties
Gets or sets a stored width value; the built-in list component does not use it in layout.
public int ComponentWidth { get; set; }
Gets the heading element displayed above the value list.
public LightVisualElement Header { get; }
Gets or sets the height reserved for the unit heading during layout.
public int HeaderHeight { get; set; }
Gets or sets the text displayed in the unit heading.
public override string HeaderText { get; set; }
Overrides:
Gets the list element that contains the selectable unit values.
public RadListElement ListElement { get; }
Methods
Forwards mouse-down input to the embedded list for kinetic-scroll handling.
public override void CallOnMouseDown(MouseEventArgs e)
The mouse-down event data.
Overrides:
Forwards mouse-move input to the embedded list for kinetic-scroll handling.
public override void CallOnMouseMove(MouseEventArgs e)
The mouse-move event data.
Overrides:
Forwards mouse-up input to the embedded list for kinetic-scroll handling.
public override void CallOnMouseUp(MouseEventArgs e)
The mouse-up event data.
Overrides:
Forwards wheel scrolling to the embedded list.
public override bool CallOnMouseWheel(MouseEventArgs e)
The mouse-wheel event data.
Returns:Always true after forwarding the wheel delta to the list.
Overrides:
Creates the heading and the list used to choose a unit value.
protected override void CreateChildElements()
Overrides:
Populates the list from the owner's minimum through its maximum using the configured step.
protected override void CreateItemsSource()
Overrides:
A positive step is required so value generation advances and terminates.
Gets the selected numeric value, returning zero when the list has no selected value.
protected override double GetValue()
The selected unit value, or zero when no value is selected.
Overrides:
Sets the initial height of the unit heading.
protected override void InitializeFields()
Overrides:
Measures the heading at HeaderHeight and gives the remaining available height to the value list.
Updates the owning content value after a user changes the selected list value.
protected virtual void OnSelectedValueChanged()
Selects the supplied value without treating the programmatic change as a user selection.
protected override void SetValue(double value)
The numeric unit value to select.
Overrides:
Leaves the heading and value list for the custom layout arrangement performed by this element.
protected override bool ShouldArrangeChild(RadElement child)
The child to test.
Returns:false for the heading and value list; otherwise, the base arrangement decision.
Overrides:
Leaves the heading and value list for the custom layout measurement performed by this element.
protected override bool ShouldMeasureChild(RadElement child)
The child to test.
Returns:false for the heading and value list; otherwise, the base measurement decision.
Overrides: