Class RadDateTimePickerSpinEdit
Provides a spin edit behavior implementation for the RadDateTimePickerElement control, featuring up/down buttons for date/time value modification.
Inherited Members
Namespace: Telerik.WinControls.UI
Assembly: Telerik.WinControls.UI.dll
Syntax
public class RadDateTimePickerSpinEdit : RadDateTimePickerBehaviorDirector, IDisposable
Constructors
RadDateTimePickerSpinEdit(RadDateTimePickerElement)
Initializes a new instance of the RadDateTimePickerSpinEdit class with the specified date time picker element.
Declaration
public RadDateTimePickerSpinEdit(RadDateTimePickerElement dateTimePicker)
Parameters
|
RadDateTimePickerElement
dateTimePicker
The RadDateTimePickerElement instance to associate with this spin edit behavior. |
Properties
ButtonsLayout
Gets the vertical stack layout element that contains the up and down arrow buttons for date/time value spinning.
Declaration
public StackLayoutElement ButtonsLayout { get; }
Property Value
|
StackLayoutElement
The StackLayoutElement containing the spin buttons arranged vertically. |
ContentLayout
Gets the main content layout element that contains the checkbox, text box, and buttons in a horizontal arrangement.
Declaration
public StackLayoutElement ContentLayout { get; }
Property Value
|
StackLayoutElement
The StackLayoutElement that serves as the primary container for all spin edit components. |
DateTimePickerElement
Gets the instance of RadDateTimePickerElement associated with this spin edit behavior control.
Declaration
public override RadDateTimePickerElement DateTimePickerElement { get; }
Property Value
|
RadDateTimePickerElement
|
Overrides
TextBoxElement
Gets the masked edit box element that handles text input and formatting for the date time picker.
Declaration
public override RadMaskedEditBoxElement TextBoxElement { get; }
Property Value
|
RadMaskedEditBoxElement
The RadMaskedEditBoxElement instance used for text input. |
Overrides
Methods
CreateChildren()
Creates and initializes all child elements for the date time picker spin edit, including background, border, layout containers, checkbox, text box, and spin buttons.
Declaration
public override void CreateChildren()
Overrides
Dispose()
Releases all resources used by the RadDateTimePickerSpinEdit by unsubscribing from event handlers to prevent memory leaks.
Declaration
public void Dispose()
Implements
SetDateByValue(Nullable<DateTime>, DateTimePickerFormat)
Sets the date displayed in the text box using the specified date value and format type, applying culture-specific formatting.
Declaration
public override void SetDateByValue(DateTime? date, DateTimePickerFormat formatType)
Parameters
|
System.Nullable<System.DateTime>
date
The nullable System.DateTime value to display, or null to show the null date representation. |
|
System.Windows.Forms.DateTimePickerFormat
formatType
The System.Windows.Forms.DateTimePickerFormat specifying how the date should be formatted (Time, Short, Long, or Custom). |