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