Class
RadDateTimePicker

Represents a control that enables the user to select date values from a range by tapping on a picker box containing the current value and opening a date selector to select a new value.

Definition

Namespace:Telerik.UI.Xaml.Controls.Input

Assembly:Telerik.WinUI.Controls.dll

Syntax:

cs-api-definition
public class RadDateTimePicker : DateTimePicker

Inheritance: objectRadControlRadHeaderedControlDateTimePickerRadDateTimePicker

Derived Classes: RadDatePickerRadTimePicker

Inherited Members DateTimePicker.StepPropertyDateTimePicker.DisplayModePropertyDateTimePicker.IsReadOnlyPropertyDateTimePicker.MinValuePropertyDateTimePicker.MaxValuePropertyDateTimePicker.ValueStringPropertyDateTimePicker.ValuePropertyDateTimePicker.DisplayValueFormatPropertyDateTimePicker.EmptyContentPropertyDateTimePicker.EmptyContentTemplatePropertyDateTimePicker.AutoSizeWidthPropertyDateTimePicker.CalendarIdentifierPropertyDateTimePicker.CalendarLanguagePropertyDateTimePicker.CalendarNumeralSystemPropertyDateTimePicker.ItemWidthPropertyDateTimePicker.ItemHeightPropertyDateTimePicker.ItemSpacingPropertyDateTimePicker.ItemCountPropertyDateTimePicker.DateSelectorOrderPropertyDateTimePicker.TimeSelectorOrderPropertyDateTimePicker.SelectorDefaultValuePropertyDateTimePicker.SelectorHeaderPropertyDateTimePicker.SelectorHeaderTemplatePropertyDateTimePicker.IsOpenPropertyDateTimePicker.SelectorBackgroundStylePropertyDateTimePicker.selectorUtcValueDateTimePicker.MeasureOverride(Size)DateTimePicker.OnKeyDown(KeyRoutedEventArgs)DateTimePicker.GetValueStringFromCalendar(Calendar)DateTimePicker.UnloadCore()DateTimePicker.UnapplyTemplateCore()DateTimePicker.DisplayModeDateTimePicker.CalendarNumeralSystemDateTimePicker.CalendarIdentifierDateTimePicker.CalendarLanguageDateTimePicker.StepDateTimePicker.AutoSizeWidthDateTimePicker.IsReadOnlyDateTimePicker.EmptyContentDateTimePicker.EmptyContentTemplateDateTimePicker.ValueStringDateTimePicker.MaxValueDateTimePicker.MinValueDateTimePicker.ValueDateTimePicker.DisplayValueFormatDateTimePicker.SelectorBackgroundStyleDateTimePicker.ItemWidthDateTimePicker.ItemHeightDateTimePicker.ItemSpacingDateTimePicker.DateSelectorOrderDateTimePicker.TimeSelectorOrderDateTimePicker.IsOpenDateTimePicker.SelectorDefaultValueDateTimePicker.SelectorHeaderDateTimePicker.SelectorHeaderTemplateDateTimePicker.ItemCountDateTimePicker.ValueChangedDateTimePicker.ClosedDateTimePicker.OpenedRadHeaderedControl.HeaderPropertyRadHeaderedControl.HeaderTemplatePropertyRadHeaderedControl.HeaderStylePropertyRadHeaderedControl.HeaderRadHeaderedControl.HeaderTemplateRadHeaderedControl.HeaderStyleRadControl.EndVisualStateUpdate(bool, bool)RadControl.UpdateVisualState(bool)RadControl.BeginVisualStateUpdate()RadControl.SetVisualState(string, bool)RadControl.CanUpdateVisualState()RadControl.ComposeVisualStateName()RadControl.ArrangeOverride(Size)RadControl.OnApplyTemplate()RadControl.OnIsEnabledChanged(bool, bool)RadControl.LoadCore()RadControl.OnLoaded()RadControl.CurrentVisualStateRadControl.IsLoadedRadControl.IsLoadingRadControl.IsUnloadedRadControl.WasUnloadedRadControl.IsTemplateApplied

Constructors

RadDateTimePicker()

Initializes a new instance of the RadDatePicker class.

Declaration

cs-api-definition
public RadDateTimePicker()

Remarks

See the DateTimePicker class for the inherited members.

Fields

CalendarClockIdentifierProperty

Gets or sets a value that specifies whether the clock will be 12 or 24-hour. The value should be taken from .

Declaration

cs-api-definition
public static readonly DependencyProperty CalendarClockIdentifierProperty

Field Value

DependencyProperty

DayStepBehaviorProperty

Identifies the DayStepBehavior dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty DayStepBehaviorProperty

Field Value

DependencyProperty

InputModeProperty

Identifies the InputMode dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty InputModeProperty

Field Value

DependencyProperty

MonthStepBehaviorProperty

Identifies the MonthStepBehavior dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty MonthStepBehaviorProperty

Field Value

DependencyProperty

YearStepBehaviorProperty

Identifies the YearStepBehavior dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty YearStepBehaviorProperty

Field Value

DependencyProperty

Properties

CalendarClockIdentifier

Gets or sets a value that specifies whether the clock will be 12 or 24-hour. The value should be from the class.

Declaration

cs-api-definition
public string CalendarClockIdentifier { get; set; }

Property Value

string

DayStepBehavior

Gets or sets a value from the StepBehavior enumeration that defines how the day step is evaluated. See the descriptions of the different values exposed by the StepBehavior enum for further details.

Declaration

cs-api-definition
public StepBehavior DayStepBehavior { get; set; }

Property Value

StepBehavior

InputMode

Gets or sets InputMode that specifies whether the RadDateTimePicker will allow Time input, Date input or both. This is a dependency property.

Declaration

cs-api-definition
public DateTimePickerInputMode InputMode { get; set; }

Property Value

DateTimePickerInputMode

The InputMode of the RadDateTimePicker.

Remarks

The default is both - Date and Time input.

MonthStepBehavior

Gets or sets a value from the StepBehavior enumeration that defines how the month step is evaluated. See the descriptions of the different values exposed by the StepBehavior enum for further details.

Declaration

cs-api-definition
public StepBehavior MonthStepBehavior { get; set; }

Property Value

StepBehavior

YearStepBehavior

Gets or sets a value from the StepBehavior enumeration that defines how the year step is evaluated. See the descriptions of the different values exposed by the StepBehavior enum for further details.

Declaration

cs-api-definition
public StepBehavior YearStepBehavior { get; set; }

Property Value

StepBehavior

Methods

ApplyTemplateCore()

Resolves the control's template parts.

Declaration

cs-api-definition
protected override bool ApplyTemplateCore()

Returns

bool

Overrides DateTimePicker.ApplyTemplateCore()

OnCreateAutomationPeer()

Declaration

cs-api-definition
protected override AutomationPeer OnCreateAutomationPeer()

Returns

AutomationPeer

Overrides DateTimePicker.OnCreateAutomationPeer()

OnTemplateApplied()

Resolves the control's template parts.

Declaration

cs-api-definition
protected override void OnTemplateApplied()

Overrides DateTimePicker.OnTemplateApplied()