Represents the RadDateTimePickerCalendar class
Definition
Namespace:Telerik.WinControls.UI
Assembly:Telerik.WinControls.UI.dll
Syntax:
public class RadDateTimePickerCalendar : RadDateTimePickerBehaviorDirector, IDisposable
Inheritance: objectRadDateTimePickerBehaviorDirectorRadDateTimePickerCalendar
Implements:
Constructors
Initializes a new instance of the RadDateTimePickerCalendar class with the specified date time picker element.
public RadDateTimePickerCalendar(RadDateTimePickerElement dateTimePicker)
The RadDateTimePickerElement that owns this calendar behavior.
Properties
Gets the RadArrowButtonElement instance that represents the Date Time Picker's arrow button.
public RadArrowButtonElement ArrowButton { get; }
Gets or sets the calendar control which is shown when the pop up control is shown
[Browsable(true)]
public RadCalendar Calendar { get; set; }
Gets the instance of RadDateTimePickerElement associated to the control
[Browsable(false)]
public override RadDateTimePickerElement DateTimePickerElement { get; }
Overrides:
Gets or sets the drop down maximum size.
[Browsable(true)]
public Size DropDownMaxSize { get; set; }
Gets or sets the drop down minimum size.
[Browsable(true)]
public Size DropDownMinSize { get; set; }
Gets or sets the drop down sizing mode. The mode can be: horizontal, vertical or a combination of them.
[Browsable(true)]
public SizingMode DropDownSizingMode { get; set; }
Gets the TimePickerDoneButtonContent instance that provides the footer panel with Done button functionality.
public TimePickerDoneButtonContent FooterPanel { get; }
Gets a value representing whether the drop down is shown
[Browsable(false)]
public bool IsDropDownShow { get; }
Gets or sets the DPI scale factor from the last time the dropdown was shown, used for proper scaling on DPI changes.
public SizeF LastShowDpiScale { get; set; }
Gets or sets the drop down control which is shown when the user clicks on the arrow button
[Browsable(true)]
public RadDateTimePickerDropDown PopupControl { get; set; }
Gets or sets a value indicating whether the footer panel with Done button is displayed when the time picker is shown.
public bool ShowFooter { get; set; }
Gets or sets a value indicating whether the time picker control is displayed alongside the calendar in the dropdown.
public bool ShowTimePicker { get; set; }
Gets the RadMaskedEditBoxElement instance that provides the text input functionality for date and time values.
public override RadMaskedEditBoxElement TextBoxElement { get; }
Overrides:
Gets the RadTimePickerContent instance that provides time selection functionality when ShowTimePicker is enabled.
public RadTimePickerContent TimePicker { get; }
Methods
Creates and configures the checkbox element for the date time picker with default alignment and sizing properties.
protected virtual RadCheckBoxElement CreateCheckBoxElement()
A configured RadCheckBoxElement instance.
Creates dateTimePicker's children
public override void CreateChildren()
Overrides:
Releases all resources used by the RadDateTimePickerCalendar including event subscriptions and child controls.
public void Dispose()
Implements:
Initializes the calendar control with default settings, creates popup elements, and configures event handlers and date range constraints.
protected virtual void IntializeCalendar()
Sets the date displayed in the text box using the specified date value and format type, handling culture-specific formatting and null values.
public override void SetDateByValue(DateTime? date, DateTimePickerFormat formatType)
The date value to set, or null to clear the text box.
formatTypeDateTimePickerFormatThe DateTimePickerFormat that determines how the date should be formatted and displayed.
Overrides:
Shows the drop-down window part of the combo box
public virtual void ShowDropDown()