Builds and coordinates the popup's time-unit components for a RadTimeSpanPickerElement.
Definition
Namespace:Telerik.WinControls.UI
Assembly:Telerik.WinControls.UI.dll
Syntax:
public class RadTimeSpanPickerContentElement : LightVisualElement, INotifyPropertyChanged, ICustomTypeDescriptor, ISupportSystemSkin, IBindableComponent, IComponent, IDisposable, ISupportDrag, ISupportDrop, IShortcutProvider, IStylableElement, IStylableNode, IPrimitiveElement, IShapedElement, IFillElement, IBorderElement, IBoxStyle, IBoxElement, IDrawFillElement, IImageElement, ITextPrimitive, ITextProvider, ITimeSpanPickerContentElement, ITimeSpanPickerComponentMouse
Inheritance: objectDisposableObjectRadObjectRadElementVisualElementRadComponentElementRadItemUIItemBaseLightVisualElementRadTimeSpanPickerContentElement...
Implements:
Inherited Members
Constructors
Initializes the popup content with the editor that supplies its value and formatting settings.
public RadTimeSpanPickerContentElement(ITimeSpanPickerContentElementOwner owner)
The owner that supplies the content's value and formatting settings.
Properties
Gets or sets the stored footer-height value; the current popup layout does not use it to size the footer.
public int ButtonPanelHeight { get; set; }
Gets the collection of unit components created for the current format.
public RadItemOwnerCollection Components { get; }
Implements:
Gets the footer panel containing the popup's close button.
public TimeSpanPickerDoneButtonElement FooterPanel { get; }
Gets or sets the upper time-span bound applied when preparing popup content.
public TimeSpan MaxValue { get; set; }
Implements:
Gets or sets the lower time-span bound applied when preparing popup content.
public TimeSpan MinValue { get; set; }
Implements:
Gets or sets whether assignments to Value are ignored.
public virtual bool ReadOnly { get; set; }
Implements:
Gets the time-picker content type whose theme settings are reused by this element.
protected override Type ThemeEffectiveType { get; }
Overrides:
Methods
Forwards a mouse-down event to the time-unit visual element under the pointer.
public void CallOnMouseDown(MouseEventArgs e)
The mouse-down event data.
Implements:
Forwards a mouse-move event to the time-unit visual element under the pointer.
public void CallOnMouseMove(MouseEventArgs e)
The mouse-move event data.
Implements:
Forwards a mouse-up event to the time-unit visual element under the pointer.
public void CallOnMouseUp(MouseEventArgs e)
The mouse-up event data.
Implements:
Forwards a mouse-wheel event to the time-unit visual element under the pointer.
public bool CallOnMouseWheel(MouseEventArgs e)
The mouse-wheel event data.
Returns:Implements:
Resets every unit component to the corresponding part of MinValue.
public virtual void ClearSelection()
Implements:
Creates the unit-component layout and the footer containing the close button.
protected override void CreateChildElements()
Overrides:
Creates and adds a component for each supported time-unit part in the supplied mask.
public virtual void CreateComponents(IList<TimeSpanMaskPart> parts)
The mask parts that determine which unit components to create.
Creates the component corresponding to a supported mask part and raises ComponentCreated before returning it.
protected virtual BaseTimeSpanPickerComponent CreateTimeSpanComponent(TimeSpanMaskPart maskPart)
The mask part describing the unit and its bounds.
Returns:The corresponding unit component, or null when the part does not represent an editable time unit.
Initializes the popup content's supported time-span range to zero through 100 days.
protected override void InitializeFields()
Overrides:
Raises ComponentCreated for a newly created time-unit component.
public void OnComponentCreated(TimeSpanPickerComponentCreatedEventArgs args)
The component that handlers may replace.
Raises ComponentsCreated after component creation completes.
public void OnComponentsCreated()
Refreshes the content bounds and localization; recreates components and their choices when the format changes or none exist.
public void PrepareContent()
Implements:
Applies the supplied time span to each unit component.
public void SetValue(TimeSpan value)
The value to distribute across the components.
Implements:
Closes the owning editor's popup without assigning a new value.
public virtual void SetValueAndClose()
Updates the close-button text and each unit component's localized heading.
public void UpdateLocalization()
Implements:
Sums the selected unit values and stores the resulting time span in the owner's mask provider.
public void UpdateOwnerValue()
Implements:
Events
Occurs after a time-unit component is created and before it is added to Components. Handlers can replace the component through Component.
public event TimeSpanPickerComponentCreatedEventHandler ComponentCreated
Implements:
Occurs after a set of time-unit components has been created.
public event EventHandler ComponentsCreated
Implements: