ClassRadDateTimePickerSpinEdit
Provides a spin edit behavior implementation for the RadDateTimePickerElement control, featuring up/down buttons for date/time value modification.
Definition
Namespace:Telerik.WinControls.UI
Assembly:Telerik.WinControls.UI.dll
Syntax:
public class RadDateTimePickerSpinEdit : RadDateTimePickerBehaviorDirector, IDisposable
Inheritance: objectRadDateTimePickerBehaviorDirectorRadDateTimePickerSpinEdit
Implements:
Constructors
RadDateTimePickerSpinEdit(RadDateTimePickerElement)
Initializes a new instance of the RadDateTimePickerSpinEdit class with the specified date time picker element.
Declaration
public RadDateTimePickerSpinEdit(RadDateTimePickerElement dateTimePicker)
Parameters
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
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
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
[Browsable(false)]
public override RadDateTimePickerElement DateTimePickerElement { get; }
Property Value
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
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(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
date
The nullable DateTime value to display, or null to show the null date representation.
formatType
The DateTimePickerFormat specifying how the date should be formatted (Time, Short, Long, or Custom).
Overrides