Class
RadDateTimePicker

Represents a control that allows the user to select dates and times.

Definition

Namespace:Telerik.Windows.Controls

Assembly:Telerik.Windows.Controls.Input.dll

Syntax:

cs-api-definition
[SuppressMessage("Microsoft.StyleCop.CSharp.NamingRules", "SA1305:FieldNamesMustNotUseHungarianNotation", Justification = "This the real name of the item")]
[TelerikToolboxCategory("Input")]
[SuppressMessage("Design", "CA1001:Types that own disposable fields should be disposable", Justification = "<Pending>")]
public class RadDateTimePicker : Control

Inheritance: objectRadDateTimePicker

Derived Classes: RadDatePickerRadTimePicker

Constructors

RadDateTimePicker()

Initializes a new instance of the RadDateTimePicker class.

Declaration

cs-api-definition
public RadDateTimePicker()

Fields

AllowParsingWithoutSeparatorProperty

Identifies the the AllowParsingWithoutSeparator dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty AllowParsingWithoutSeparatorProperty

Field Value

DependencyProperty

BlackoutDatesProperty

Gets the identifier for the Telerik.Windows.Controls.RadDateTimePicker.BlackoutDates dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty BlackoutDatesProperty

Field Value

DependencyProperty

The identifier for the Telerik.Windows.Controls.RadDateTimePicker.BlackoutDates dependency property.

CalendarStyleProperty

Gets the identifier for the Telerik.Windows.Controls.RadDateTimePicker.CalendarStyle dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty CalendarStyleProperty

Field Value

DependencyProperty

The identifier for the Telerik.Windows.Controls.RadDateTimePicker.CalendarStyle dependency dependency property.

ClockItemsSourceProperty

Gets the identifier for the Telerik.Windows.Controls.RadDateTimePicker.ClockItemsSource dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty ClockItemsSourceProperty

Field Value

DependencyProperty

The identifier for the Telerik.Windows.Controls.RadDateTimePicker.ClockItemsSource dependency dependency property.

ClockStyleProperty

Gets the identifier for the Telerik.Windows.Controls.RadDateTimePicker.ClockStyle dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty ClockStyleProperty

Field Value

DependencyProperty

The identifier for the Telerik.Windows.Controls.RadDateTimePicker.ClockStyle dependency dependency property.

CultureProperty

Gets the identifier for the Telerik.Windows.Controls.RadDateTimePicker.Culture dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty CultureProperty

Field Value

DependencyProperty

The identifier for the Telerik.Windows.Controls.RadDateTimePicker.Culture dependency dependency property.

CurrentDateTimeTextProperty

Gets the identifier for the Telerik.Windows.Controls.RadDateTimePicker.CurrentDateTimeText dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty CurrentDateTimeTextProperty

Field Value

DependencyProperty

The identifier for the Telerik.Windows.Controls.RadDateTimePicker.CurrentDateTimeText dependency dependency property.

DateSelectionModeProperty

Gets the identifier for the Telerik.Windows.Controls.RadDateTimePicker.DateSelectionMode dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty DateSelectionModeProperty

Field Value

DependencyProperty

The identifier for the Telerik.Windows.Controls.RadDateTimePicker.DateSelectionMode dependency dependency property.

DateTimeSelectedWithMouseEvent

Identifies the Telerik.Windows.Controls.RadDateTimePicker.DateTimeSelectedWithMouse routed event.

Declaration

cs-api-definition
public static readonly RoutedEvent DateTimeSelectedWithMouseEvent

Field Value

RoutedEvent

The identifier for the Telerik.Windows.Controls.RadDateTimePicker.DateTimeSelectedWithMouse routed event.

DateTimeTextProperty

Gets the identifier for the Telerik.Windows.Controls.RadDateTimePicker.DateTimeText dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty DateTimeTextProperty

Field Value

DependencyProperty

The identifier for the Telerik.Windows.Controls.RadDateTimePicker.DateTimeText dependency dependency property.

DateTimeWatermarkContentProperty

Gets the identifier for the Telerik.Windows.Controls.RadDateTimePicker.DateTimeWatermarkContent dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty DateTimeWatermarkContentProperty

Field Value

DependencyProperty

The identifier for the Telerik.Windows.Controls.RadDateTimePicker.DateTimeWatermarkContent dependency dependency property.

DateTimeWatermarkTemplateProperty

Gets the identifier for the Telerik.Windows.Controls.RadDateTimePicker.DateTimeWatermarkTemplate dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty DateTimeWatermarkTemplateProperty

Field Value

DependencyProperty

The identifier for the Telerik.Windows.Controls.RadDateTimePicker.DateTimeWatermarkTemplate dependency dependency property.

DisplayDateEndProperty

Gets the identifier for the Telerik.Windows.Controls.RadDateTimePicker.DisplayDateEnd dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty DisplayDateEndProperty

Field Value

DependencyProperty

The identifier for the Telerik.Windows.Controls.RadDateTimePicker.DisplayDateEnd dependency dependency property.

DisplayDateProperty

Gets the identifier for the Telerik.Windows.ControlsRadDateTimePicker..DisplayDate dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty DisplayDateProperty

Field Value

DependencyProperty

The identifier for the Telerik.Windows.Controls.RadDateTimePicker.DisplayDate dependency dependency property.

DisplayDateStartProperty

Gets the identifier for the Telerik.Windows.Controls.RadDateTimePicker.DisplayDateStart dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty DisplayDateStartProperty

Field Value

DependencyProperty

The identifier for the Telerik.Windows.Controls.RadDateTimePicker.DisplayDateStart dependency dependency property.

DisplayFormatProperty

Gets the identifier for the Telerik.Windows.Controls.RadDateTimePicker.DisplayFormat dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty DisplayFormatProperty

Field Value

DependencyProperty

The identifier for the Telerik.Windows.Controls.RadDateTimePicker.DisplayFormat dependency dependency property.

EndTimeProperty

Gets the identifier for the Telerik.Windows.Controls.RadDateTimePicker.EndTimeProperty dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty EndTimeProperty

Field Value

DependencyProperty

The identifier for the Telerik.Windows.Controls.RadDateTimePicker.EndTimeProperty dependency dependency property.

ErrorTooltipContentProperty

Gets the identifier for the Telerik.Windows.Controls.RadDateTimePicker.ErrorTooltipContent dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty ErrorTooltipContentProperty

Field Value

DependencyProperty

The identifier for the Telerik.Windows.Controls.RadDateTimePicker.ErrorTooltipContent dependency dependency property.

InputModeProperty

Gets the identifier for the Telerik.Windows.Controls.RadDateTimePicker.InputMode dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty InputModeProperty

Field Value

DependencyProperty

The identifier for the Telerik.Windows.Controls.RadDateTimePicker.InputMode dependency dependency property.

IsDropDownOpenProperty

Gets the identifier for the Telerik.Windows.Controls.RadDateTimePicker.IsDropDownOpen dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty IsDropDownOpenProperty

Field Value

DependencyProperty

The identifier for the Telerik.Windows.Controls.RadDateTimePicker.IsDropDownOpen dependency dependency property.

IsInputRestrictedToSelectableDatesProperty

Gets the identifier for the Telerik.Windows.Controls.RadDateTimePicker.IsInputRestrictedToSelectableDates dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty IsInputRestrictedToSelectableDatesProperty

Field Value

DependencyProperty

The identifier for the Telerik.Windows.Controls.RadDateTimePicker.IsInputRestrictedToSelectableDates dependency dependency property.

IsReadOnlyProperty

Gets the identifier for the Telerik.Windows.Controls.RadDateTimePicker.IsReadOnly dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty IsReadOnlyProperty

Field Value

DependencyProperty

The identifier for the Telerik.Windows.Controls.RadDateTimePicker.IsReadOnly dependency dependency property.

IsTooltipEnabledProperty

Gets the identifier for the Telerik.Windows.Controls.RadDateTimePicker.IsTooltipEnabled dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty IsTooltipEnabledProperty

Field Value

DependencyProperty

The identifier for the Telerik.Windows.Controls.RadDateTimePicker.IsTooltipEnabled dependency dependency property.

IsTooltipOpenProperty

Gets the identifier for the Telerik.Windows.Controls.RadDateTimePicker.IsTooltipOpen dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty IsTooltipOpenProperty

Field Value

DependencyProperty

The identifier for the Telerik.Windows.Controls.RadDateTimePicker.IsTooltipOpen dependency dependency property.

OpenDropDownOnFocusProperty

Identifies the OpenDropDownOnFocus dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty OpenDropDownOnFocusProperty

Field Value

DependencyProperty

ParseDateTimeValueEvent

Identifies the Telerik.Windows.Controls.RadDateTimePicker.ParseDateTimeValue routed event.

Declaration

cs-api-definition
public static readonly RoutedEvent ParseDateTimeValueEvent

Field Value

RoutedEvent

The identifier for the Telerik.Windows.Controls.RadDateTimePicker.ParseDateTimeValue routed event.

ParseExactProperty

Identifies the the ParseExact dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty ParseExactProperty

Field Value

DependencyProperty

ParseModeProperty

Identifies the the Telerik.Windows.Controls.RadDateTimePicker.ParseMode dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty ParseModeProperty

Field Value

DependencyProperty

SelectableDateEndProperty

Gets the identifier for the Telerik.Windows.Controls.RadDateTimePicker.SelectableDateEnd dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty SelectableDateEndProperty

Field Value

DependencyProperty

The identifier for the Telerik.Windows.Controls.RadDateTimePicker.SelectableDateEnd dependency dependency property.

SelectableDateStartProperty

Gets the identifier for the Telerik.Windows.Controls.RadDateTimePicker.SelectableDateStart dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty SelectableDateStartProperty

Field Value

DependencyProperty

The identifier for the Telerik.Windows.Controls.RadDateTimePicker.SelectableDateStart dependency dependency property.

SelectedDateProperty

Gets the identifier for the Telerik.Windows.Controls.RadDateTimePicker.SelectedDate dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty SelectedDateProperty

Field Value

DependencyProperty

The identifier for the Telerik.Windows.Controls.RadDateTimePicker.SelectedDate dependency dependency property.

SelectedTimeProperty

Gets the identifier for the Telerik.Windows.Controls.RadDateTimePicker.SelectedTime dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty SelectedTimeProperty

Field Value

DependencyProperty

The identifier for the Telerik.Windows.Controls.RadDateTimePicker.SelectedTime dependency dependency property.

SelectedValueProperty

Gets the identifier for the Telerik.Windows.Controls.RadDateTimePicker.SelectedValue dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty SelectedValueProperty

Field Value

DependencyProperty

The identifier for the Telerik.Windows.Controls.RadDateTimePicker.SelectedValue dependency dependency property.

SelectionChangedEvent

Identifies the Telerik.Windows.Controls.RadDateTimePicker.SelectionChanged routed event.

Declaration

cs-api-definition
public static readonly RoutedEvent SelectionChangedEvent

Field Value

RoutedEvent

The identifier for the Telerik.Windows.Controls.RadDateTimePicker.SelectionChanged routed event.

SelectionOnFocusProperty

Gets the identifier for the Telerik.Windows.Controls.RadDateTimePicker.SelectionOnFocus dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty SelectionOnFocusProperty

Field Value

DependencyProperty

The identifier for the Telerik.Windows.Controls.RadDateTimePicker.SelectionOnFocus dependency dependency property.

StartTimeProperty

Gets the identifier for the Telerik.Windows.Controls.RadDateTimePicker.StartTimeProperty dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty StartTimeProperty

Field Value

DependencyProperty

The identifier for the Telerik.Windows.Controls.RadDateTimePicker.StartTimeProperty dependency dependency property.

TextAlignmentProperty

Gets the identifier for the Telerik.Windows.Controls.RadDateTimePicker.TextAlignment dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty TextAlignmentProperty

Field Value

DependencyProperty

The identifier for the Telerik.Windows.Controls.RadDateTimePicker.TextAlignment dependency dependency property.

TimeIntervalProperty

Gets the identifier for the Telerik.Windows.Controls.RadDateTimePicker.TimeIntervalProperty dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty TimeIntervalProperty

Field Value

DependencyProperty

The identifier for the Telerik.Windows.Controls.RadDateTimePicker.TimeIntervalProperty dependency dependency property.

TodayButtonContentProperty

Gets the identifier for the TodayButtonContent dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty TodayButtonContentProperty

Field Value

DependencyProperty

The identifier for the TodayButtonContent dependency dependency property.

TodayButtonVisibilityProperty

Gets the identifier for the TodayButtonVisibility dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty TodayButtonVisibilityProperty

Field Value

DependencyProperty

The identifier for the TodayButtonVisibility dependency dependency property.

TooltipContentProperty

Gets the identifier for the Telerik.Windows.Controls.RadDateTimePicker.TooltipContent dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty TooltipContentProperty

Field Value

DependencyProperty

The identifier for the Telerik.Windows.Controls.RadDateTimePicker.TooltipContent dependency dependency property.

TooltipTemplateProperty

Gets the identifier for the Telerik.Windows.Controls.RadDateTimePicker.TooltipTemplate dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty TooltipTemplateProperty

Field Value

DependencyProperty

The identifier for the Telerik.Windows.Controls.RadDateTimePicker.TooltipTemplate dependency dependency property.

Properties

AllowParsingWithoutSeparator

Gets or sets the AllowParsingWithoutSeparator property.

Declaration

cs-api-definition
public bool AllowParsingWithoutSeparator { get; set; }

Property Value

bool

BlackoutDates

Gets or sets a list of dates that cannot be selected. This is a dependency property.

Declaration

cs-api-definition
public IEnumerable<DateTime> BlackoutDates { get; set; }

Property Value

IEnumerable<DateTime>

Remarks

Please refer to BlackoutDates for more information on the property.

CalendarStyle

Gets or sets the style of the Calendar for picking date. This is a dependency property.

Declaration

cs-api-definition
public Style CalendarStyle { get; set; }

Property Value

Style

The Style of the Calendar.

ClockItemsSource

Gets or sets a collection of TimeSpan used to generate the content of the Clock. This is a dependency property.

Declaration

cs-api-definition
public IEnumerable<TimeSpan> ClockItemsSource { get; set; }

Property Value

IEnumerable<TimeSpan>

ClockStyle

Gets or sets the style of the Clock for picking time. This is a dependency property.

Declaration

cs-api-definition
public Style ClockStyle { get; set; }

Property Value

Style

The Style of the Clock.

Culture

Gets the culture used to provide the DateTime operations. This is a dependency property.

Declaration

cs-api-definition
public CultureInfo Culture { get; set; }

Property Value

CultureInfo

CurrentDateTimeText

Gets or sets the current text in the RadDateTimePicker control. This is a dependency property.

Declaration

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

Property Value

string

Remarks

The CurrentDateTimeText property changes while user is typing a text in the textbox. There is a difference between DateTimeText and CurrentDateTimeText. DateTimeText property changes when user had already entered a text. For example, this happens when the textbox has lost the focus. CurrentDateTimeText property changes every time when user is typing in the textbox.

DateSelectionMode

Gets or sets DateSelectionMode that specifies whether the calendar in RadDateTimePicker will select Days, Months or Years. This is a dependency property.

Declaration

cs-api-definition
public DateSelectionMode DateSelectionMode { get; set; }

Property Value

DateSelectionMode

The DateSelectionMode of the calendar.

DateTimeText

Gets or sets the text in the RadDateTimePicker control. This is a dependency property.

Declaration

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

Property Value

string

Remarks

The DateTimeText property changes while user has typed a text in the textbox. There is a difference between DateTimeText and CurrentDateTimeText. DateTimeText property changes when user had already entered a text. For example, this happens when the textbox has lost the focus. CurrentDateTimeText property changes every time when user is typing in the textbox.

DateTimeWatermarkContent

Gets or sets the content of the RadDateTimePicker control when there is no entered text. This is a dependency property.

Declaration

cs-api-definition
public object DateTimeWatermarkContent { get; set; }

Property Value

object

DateTimeWatermarkTemplate

Gets or sets the System.Windows.DataTemplate used to display DateTimeWatermark when there is no selection. This is a dependency property.

Declaration

cs-api-definition
public DataTemplate DateTimeWatermarkTemplate { get; set; }

Property Value

DataTemplate

DisplayDate

Gets or sets the date to display in the RadDateTimePicker. If no display date was set, then the SelectedDate is used. This is a dependency property.

Declaration

cs-api-definition
public DateTime DisplayDate { get; set; }

Property Value

DateTime

Remarks

The DisplayDateStart and DisplayDateEnd properties defined a range within which the DisplayDate can be set, i.e. a range within which the user can navigate. If you try to set a DisplayDate outside the defined range an ArgumentOutOfRangeException would be thrown. Similarly, setting a display range that excludes the current DisplayDate would throw an exception.

Please note that unlike the other date properties DisplayDate cannot be set to null.

DisplayDateEnd

Gets or sets the last date to be displayed. This is a dependency property.

Declaration

cs-api-definition
public DateTime? DisplayDateEnd { get; set; }

Property Value

DateTime?

Remarks

Please refer to DisplayDateEnd for more information on the property.

DisplayDateStart

Gets or sets the first date to be displayed. This is a dependency property.

Declaration

cs-api-definition
public DateTime? DisplayDateStart { get; set; }

Property Value

DateTime?

Remarks

Please refer to DisplayDateStart for more information on the property.

DisplayFormat

Gets or sets the format that is used to display the selected date. This is a dependency property.

Declaration

cs-api-definition
public DateTimePickerFormat DisplayFormat { get; set; }

Property Value

DateTimePickerFormat

EndTime

Gets or sets the end time of Telerik.Windows.Controls.RadDateTimePicker control.

Declaration

cs-api-definition
public TimeSpan EndTime { get; set; }

Property Value

TimeSpan

The TimeSpan that represents end time.

Remarks

The TimeInterval property will be used when generating the Time selection (clock, RadClock, etc.) items. Please note that it will not be used if InputMode is set to DatePicker.

ErrorTooltipContent

Gets or sets the content of the Tooltip when parsing the input text has failed. This is a dependency property.

Declaration

cs-api-definition
public object ErrorTooltipContent { get; set; }

Property Value

object

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 InputMode InputMode { get; set; }

Property Value

InputMode

The InputMode of the RadDateTimePicker.

Remarks

The default is both - Date and Time input.

IsDropDownOpen

Gets or sets a value that indicates whether the DropDown button is open or closed. This is a dependency property.

Declaration

cs-api-definition
public bool IsDropDownOpen { get; set; }

Property Value

bool

True if this DropDown button is open; otherwise, false.

IsInputRestrictedToSelectableDates

Gets or sets value indicating whether the input should be restricted by the SelectableDateStart, SelectableDateEnd and BlackoutDates. This is a dependency property.

Declaration

cs-api-definition
public bool IsInputRestrictedToSelectableDates { get; set; }

Property Value

bool

IsReadOnly

Gets or sets a value that indicates whether this instance of RadDateTimePicker is read only. This is a dependency property.

Declaration

cs-api-definition
public bool IsReadOnly { get; set; }

Property Value

bool

True if this instance is read only; otherwise, false.

IsTooltipEnabled

Gets or sets a value that indicates whether the preview ToolTip is enabled. This is a dependency property.

Declaration

cs-api-definition
public bool IsTooltipEnabled { get; set; }

Property Value

bool

True if this Tooltip is enabled; otherwise, false.

Remarks

When IsTooltipEnabled is true, ToolTip can be open or closed. When is false - ToolTip is always closed.

IsTooltipOpen

Gets or sets a value that indicates whether the Tooltip is open or closed. This is a dependency property.

Declaration

cs-api-definition
public bool IsTooltipOpen { get; set; }

Property Value

bool

True if this Tooltip is open; otherwise, false.

OpenDropDownOnFocus

Gets or sets a value that specifies whether the dropdown should be opened when the control gets the focus, or not. This is a dependency property.

Declaration

cs-api-definition
public bool OpenDropDownOnFocus { get; set; }

Property Value

bool

ParseExact

Gets or sets the ParseExact property. When set to the it is used the DateTime.TryParseExact() method for parsing the input.

Declaration

cs-api-definition
public bool ParseExact { get; set; }

Property Value

bool

ParseMode

Gets or sets the parsing mode of Telerik.Windows.Controls.RadDateTimePicker control.

Declaration

cs-api-definition
public ParseMode ParseMode { get; set; }

Property Value

ParseMode

SelectableDateEnd

Gets or sets the last date that can be selected. This is a dependency property.

Declaration

cs-api-definition
public DateTime? SelectableDateEnd { get; set; }

Property Value

DateTime?

Remarks

Please refer to SelectableDateEnd for more information on the property.

SelectableDateStart

Gets or sets the first date that can be selected. This is a dependency property.

Declaration

cs-api-definition
public DateTime? SelectableDateStart { get; set; }

Property Value

DateTime?

Remarks

Please refer to SelectableDateStart for more information on the property.

SelectedDate

Gets or sets the Date part of the currently selected DateTime value. This is a dependency property.

Declaration

cs-api-definition
public DateTime? SelectedDate { get; set; }

Property Value

DateTime?

SelectedTime

Gets or sets the Time part of the currently selected DateTime value This is a dependency property.

Declaration

cs-api-definition
public TimeSpan? SelectedTime { get; set; }

Property Value

TimeSpan?

SelectedValue

Gets or sets the currently selected DateTime value. This is a dependency property.

Declaration

cs-api-definition
public DateTime? SelectedValue { get; set; }

Property Value

DateTime?

SelectionOnFocus

Gets or sets the SelectionOnFocus of the TextBox inside the RadDateTimePicker. This is a dependency property.

Declaration

cs-api-definition
public SelectionOnFocus SelectionOnFocus { get; set; }

Property Value

SelectionOnFocus

The SelectionOnFocus of the TextBox.

StartTime

Gets or sets the start time of Telerik.Windows.Controls.RadDateTimePicker control.

Declaration

cs-api-definition
public TimeSpan StartTime { get; set; }

Property Value

TimeSpan

The TimeSpan that represents start time.

Remarks

The TimeInterval property will be used when generating the Time selection (clock, RadClock, etc.) items. Please note that it will not be used if InputMode is set to DatePicker.

TextAlignment

Gets or sets the TextAlignment of the TextBox inside the RadDateTimePicker. This is a dependency property.

Declaration

cs-api-definition
public TextAlignment TextAlignment { get; set; }

Property Value

TextAlignment

The TextAlignment of the TextBox.

TimeInterval

Gets or sets the time interval that will be used when generating the Time selection (clock, RadClock, etc.) items.

Declaration

cs-api-definition
public TimeSpan TimeInterval { get; set; }

Property Value

TimeSpan

The TimeSpan that represents the time interval.

Remarks

Please note that it will not be used if InputMode is set to DatePicker.

TodayButtonContent

Gets or sets the content of the button that selects the current DateTime. This is a dependency property.

Declaration

cs-api-definition
public object TodayButtonContent { get; set; }

Property Value

object

TodayButtonVisibility

Gets or sets the Visibility of RadDateTimePicker control's Today button.

Declaration

cs-api-definition
public Visibility TodayButtonVisibility { get; set; }

Property Value

Visibility

TooltipContent

Gets or sets the content of the Tooltip. RadDateTimePicker sets this property automatically when the user types in its TextBox. This is a dependency property.

Declaration

cs-api-definition
public object TooltipContent { get; set; }

Property Value

object

TooltipTemplate

Gets or sets a data template to be used for displaying the TooltipContent. This is a dependency property.

Declaration

cs-api-definition
public DataTemplate TooltipTemplate { get; set; }

Property Value

DataTemplate

Methods

OnApplyTemplate()

When overridden in a derived class, is invoked whenever application code or internal processes (such as a rebuilding layout pass) call System.Windows.Controls.Control.ApplyTemplate(). In simplest terms, this means the method is called just before a UI element displays in an application. For more information, see Remarks.

Declaration

cs-api-definition
public override void OnApplyTemplate()

OnCreateAutomationPeer()

Create the DateTimePicker Automation Peer.

Declaration

cs-api-definition
protected override AutomationPeer OnCreateAutomationPeer()

Returns

AutomationPeer

OnGotFocus(RoutedEventArgs)

Called before the event occurs.

Declaration

cs-api-definition
protected override void OnGotFocus(RoutedEventArgs e)

Parameters

e

RoutedEventArgs

The data for the event.

OnGotKeyboardFocus(KeyboardFocusChangedEventArgs)

Raises the event.

Declaration

cs-api-definition
protected override void OnGotKeyboardFocus(KeyboardFocusChangedEventArgs e)

Parameters

e

KeyboardFocusChangedEventArgs

The KeyboardFocusChangedEventArgs instance containing the event data.

OnInitialized(EventArgs)

Raises the event. This method is invoked whenever is set to true internally.

Declaration

cs-api-definition
protected override void OnInitialized(EventArgs e)

Parameters

e

EventArgs

The RoutedEventArgs that contains the event data.

OnIsKeyboardFocusWithinChanged(DependencyPropertyChangedEventArgs)

Called when the property has changed.

Declaration

cs-api-definition
protected override void OnIsKeyboardFocusWithinChanged(DependencyPropertyChangedEventArgs e)

Parameters

e

DependencyPropertyChangedEventArgs

The event data.

OnKeyDown(KeyEventArgs)

Called before the event occurs.

Declaration

cs-api-definition
protected override void OnKeyDown(KeyEventArgs e)

Parameters

e

KeyEventArgs

The data for the event.

OnLostFocus(RoutedEventArgs)

Called before the event occurs.

Declaration

cs-api-definition
protected override void OnLostFocus(RoutedEventArgs e)

Parameters

e

RoutedEventArgs

The data for the event.

OnMouseEnter(MouseEventArgs)

Called before the event occurs.

Declaration

cs-api-definition
protected override void OnMouseEnter(MouseEventArgs e)

Parameters

e

MouseEventArgs

The data for the event.

OnMouseLeave(MouseEventArgs)

Called before the event occurs.

Declaration

cs-api-definition
protected override void OnMouseLeave(MouseEventArgs e)

Parameters

e

MouseEventArgs

The data for the event.

OnMouseWheel(MouseWheelEventArgs)

Declaration

cs-api-definition
protected override void OnMouseWheel(MouseWheelEventArgs e)

Parameters

e

MouseWheelEventArgs

OnParseDateTime(ParseDateTimeEventArgs)

Raises the ParseDateTimeValue routed event.

Declaration

cs-api-definition
protected virtual void OnParseDateTime(ParseDateTimeEventArgs e)

Parameters

e

ParseDateTimeEventArgs

The data for the routed event.

OnSelectionChanged(SelectionChangedEventArgs)

Called when the SelectionChanged event occurs.

Declaration

cs-api-definition
protected virtual void OnSelectionChanged(SelectionChangedEventArgs e)

Parameters

e

SelectionChangedEventArgs

The data for the event.

ProcessKey(KeyEventArgs)

Process with the selected key.

Declaration

cs-api-definition
protected virtual void ProcessKey(KeyEventArgs e)

Parameters

e

KeyEventArgs

The data for the event.

UpdateText()

Called to update the DateTimeText property of RadDateTimePicker.

Declaration

cs-api-definition
public void UpdateText()

Events

DropDownClosed

Occurs when the DropDownButton is closed.

Declaration

cs-api-definition
public event RoutedEventHandler DropDownClosed

Event Value

RoutedEventHandler

DropDownOpened

Occurs when the DropDownButton is opened.

Declaration

cs-api-definition
public event RoutedEventHandler DropDownOpened

Event Value

RoutedEventHandler

ParseDateTimeValue

Occurs when the input text is parsed to DateTime value. This happens when DateTimeText property has changed.

Declaration

cs-api-definition
[SuppressMessage("Microsoft.Design", "CA1009:DeclareEventHandlersCorrectly")]
public event RadDateTimePicker.ParseDateTimeEventHandler ParseDateTimeValue

Event Value

RadDateTimePicker.ParseDateTimeEventHandler

Remarks

The ParseDateTimeValue event is fired when the DateTimeText property has changed. For example this happens when the user enters text and leave the control.

SelectionChanged

Occurs when a date or time is selected.

Declaration

cs-api-definition
public event SelectionChangedEventHandler SelectionChanged

Event Value

SelectionChangedEventHandler

Remarks

The SelectionChanged event is fired when the SelectedValue has changed.

In this article
DefinitionConstructorsRadDateTimePicker()FieldsAllowParsingWithoutSeparatorPropertyBlackoutDatesPropertyCalendarStylePropertyClockItemsSourcePropertyClockStylePropertyCulturePropertyCurrentDateTimeTextPropertyDateSelectionModePropertyDateTimeSelectedWithMouseEventDateTimeTextPropertyDateTimeWatermarkContentPropertyDateTimeWatermarkTemplatePropertyDisplayDateEndPropertyDisplayDatePropertyDisplayDateStartPropertyDisplayFormatPropertyEndTimePropertyErrorTooltipContentPropertyInputModePropertyIsDropDownOpenPropertyIsInputRestrictedToSelectableDatesPropertyIsReadOnlyPropertyIsTooltipEnabledPropertyIsTooltipOpenPropertyOpenDropDownOnFocusPropertyParseDateTimeValueEventParseExactPropertyParseModePropertySelectableDateEndPropertySelectableDateStartPropertySelectedDatePropertySelectedTimePropertySelectedValuePropertySelectionChangedEventSelectionOnFocusPropertyStartTimePropertyTextAlignmentPropertyTimeIntervalPropertyTodayButtonContentPropertyTodayButtonVisibilityPropertyTooltipContentPropertyTooltipTemplatePropertyPropertiesAllowParsingWithoutSeparatorBlackoutDatesCalendarStyleClockItemsSourceClockStyleCultureCurrentDateTimeTextDateSelectionModeDateTimeTextDateTimeWatermarkContentDateTimeWatermarkTemplateDisplayDateDisplayDateEndDisplayDateStartDisplayFormatEndTimeErrorTooltipContentInputModeIsDropDownOpenIsInputRestrictedToSelectableDatesIsReadOnlyIsTooltipEnabledIsTooltipOpenOpenDropDownOnFocusParseExactParseModeSelectableDateEndSelectableDateStartSelectedDateSelectedTimeSelectedValueSelectionOnFocusStartTimeTextAlignmentTimeIntervalTodayButtonContentTodayButtonVisibilityTooltipContentTooltipTemplateMethodsOnApplyTemplate()OnCreateAutomationPeer()OnGotFocus(RoutedEventArgs)OnGotKeyboardFocus(KeyboardFocusChangedEventArgs)OnInitialized(EventArgs)OnIsKeyboardFocusWithinChanged(DependencyPropertyChangedEventArgs)OnKeyDown(KeyEventArgs)OnLostFocus(RoutedEventArgs)OnMouseEnter(MouseEventArgs)OnMouseLeave(MouseEventArgs)OnMouseWheel(MouseWheelEventArgs)OnParseDateTime(ParseDateTimeEventArgs)OnSelectionChanged(SelectionChangedEventArgs)ProcessKey(KeyEventArgs)UpdateText()EventsDropDownClosedDropDownOpenedParseDateTimeValueSelectionChanged
Not finding the help you need?
Contact Support