RadTimePickerContent
Hosts the time-selection element used by date-time picker popups and other time-entry surfaces.
Definition
Namespace:Telerik.WinControls.UI
Assembly:Telerik.WinControls.UI.dll
Syntax:
public class RadTimePickerContent : RadControl, IDropTarget, ISynchronizeInvoke, IWin32Window, IBindableComponent, IComponent, IDisposable, INotifyPropertyChanged, ISupportInitializeNotification, ISupportInitialize, IComponentTreeHandler, ILayoutHandler, IAnalyticsProvider, IPickerContentElementOwner
Inheritance: objectMarshalByRefObjectComponentControlScrollableControlRadControlRadTimePickerContent...
Implements:
Inherited Members
Constructors
Initializes the hosted time picker with a selectable root and no tab-stop behavior.
public RadTimePickerContent()
Properties
Determines whether control's height will be determined automatically, depending on the current Font.
public override bool AutoSize { get; set; }
Overrides:
Gets the culture to be used when displaying the time.
public CultureInfo Culture { get; set; }
Implements:
Gets or sets the format string passed to ToString(string, IFormatProvider) for the clock header.
public string Format { get; set; }
Implements:
Changing the format string alone does not refresh the currently displayed clock text.
Gets the localized heading displayed above the hours table.
public string HourHeaderText { get; }
Implements:
Gets the localized heading displayed above the minutes table.
public virtual string MinutesHeaderText { get; }
Implements:
Gets or sets a value indicating whether the contents of the time picker control can be changed.
public bool ReadOnly { get; set; }
Gets the RadTimePickerContentElement which encapsulates the UI representation and functionality of the control.
[Browsable(false)]
public RadTimePickerContentElement TimePickerElement { get; }
Gets or sets the selected time value.
public object Value { get; set; }
Implements:
The setter expects a DateTime or null. Reading an unset value initializes it to the current time. A DateTime assignment with the same time-of-day as the stored DateTime is ignored, even if its date differs. Setting null clears the stored value and sets the clock display to midnight; a subsequent read initializes the value to the current time.
Methods
Notifies the popup owner that the time-picker content requested closure.
public void CloseOwnerPopup()
Implements:
Creates the time-picker element, then hides its clock and footer for this compact content surface.
protected override void CreateChildItems(RadElement parent)
The root element that receives the time-picker element.
Overrides:
Creates the element that implements the time-selection UI.
protected virtual RadTimePickerContentElement CreateTimePickerContentElement()
The element hosted by this control.
Raises the CloseButtonClicked event.
Fires the ValueChanging event
protected virtual void OnValueChanging(object sender, CancelEventArgs e)
Events
Occurs when the time-picker content requests that its owner close the popup.
public event EventHandler CloseButtonClicked
Occurs when the editing value has been changed
public event EventHandler ValueChanged
Occurs when the editing value is changing.
public event CancelEventHandler ValueChanging