New to Telerik UI for WinFormsStart a free 30-day trial

Represents the RadDateTimePickerCalendar class

Definition

Namespace:Telerik.WinControls.UI

Assembly:Telerik.WinControls.UI.dll

Syntax:

C#
public class RadDateTimePickerCalendar : RadDateTimePickerBehaviorDirector, IDisposable

Inheritance: objectRadDateTimePickerBehaviorDirectorRadDateTimePickerCalendar

Implements: IDisposable

Constructors

Initializes a new instance of the RadDateTimePickerCalendar class with the specified date time picker element.

C#
public RadDateTimePickerCalendar(RadDateTimePickerElement dateTimePicker)
Parameters:dateTimePickerRadDateTimePickerElement

The RadDateTimePickerElement that owns this calendar behavior.

Properties

Gets the RadArrowButtonElement instance that represents the Date Time Picker's arrow button.

C#
public RadArrowButtonElement ArrowButton { get; }

Gets or sets the calendar control which is shown when the pop up control is shown

C#
[Browsable(true)]
public RadCalendar Calendar { get; set; }

Gets the instance of RadDateTimePickerElement associated to the control

C#
[Browsable(false)]
public override RadDateTimePickerElement DateTimePickerElement { get; }

Overrides: RadDateTimePickerBehaviorDirector.DateTimePickerElement

Gets or sets the drop down maximum size.

C#
[Browsable(true)]
public Size DropDownMaxSize { get; set; }

Gets or sets the drop down minimum size.

C#
[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.

C#
[Browsable(true)]
public SizingMode DropDownSizingMode { get; set; }

Gets the TimePickerDoneButtonContent instance that provides the footer panel with Done button functionality.

C#
public TimePickerDoneButtonContent FooterPanel { get; }

Gets a value representing whether the drop down is shown

C#
[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.

C#
public SizeF LastShowDpiScale { get; set; }

Gets or sets the drop down control which is shown when the user clicks on the arrow button

C#
[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.

C#
public bool ShowFooter { get; set; }

Gets or sets a value indicating whether the time picker control is displayed alongside the calendar in the dropdown.

C#
public bool ShowTimePicker { get; set; }

Gets the RadMaskedEditBoxElement instance that provides the text input functionality for date and time values.

C#
public override RadMaskedEditBoxElement TextBoxElement { get; }

Overrides: RadDateTimePickerBehaviorDirector.TextBoxElement

Gets the RadTimePickerContent instance that provides time selection functionality when ShowTimePicker is enabled.

C#
public RadTimePickerContent TimePicker { get; }

Methods

Creates and configures the checkbox element for the date time picker with default alignment and sizing properties.

C#
protected virtual RadCheckBoxElement CreateCheckBoxElement()
Returns:

RadCheckBoxElement

A configured RadCheckBoxElement instance.

Creates dateTimePicker's children

C#
public override void CreateChildren()

Overrides: RadDateTimePickerBehaviorDirector.CreateChildren()

Releases all resources used by the RadDateTimePickerCalendar including event subscriptions and child controls.

C#
public void Dispose()

Implements: IDisposable.Dispose()

Initializes the calendar control with default settings, creates popup elements, and configures event handlers and date range constraints.

C#
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.

C#
public override void SetDateByValue(DateTime? date, DateTimePickerFormat formatType)
Parameters:dateDateTime?

The date value to set, or null to clear the text box.

formatTypeDateTimePickerFormat

The DateTimePickerFormat that determines how the date should be formatted and displayed.

Overrides: RadDateTimePickerBehaviorDirector.SetDateByValue(DateTime?, DateTimePickerFormat)

Shows the drop-down window part of the combo box

C#
public virtual void ShowDropDown()