DateTimePicker

This control is used to display and edit DateTime data quickly.

Inherits from Catel.Windows.Controls.UserControl.

DateTimePicker 01

Double click on any number to start editing. Press the “Tab” key to move to the next number.

Click on a letter to display a drop down list to choose from.

Properties

Property nameDescription
AccentColorBrushGets or sets accent color
AllowNullGets or sets whether Value can be null.
AllowCopyPasteGets or sets whether Value can be copy/paste.
FormatGets or sets DateTime Value format.
HideSecondsGets or sets whether seconds section DateTimePickers is visible.
HideTimeGets or sets whether time section DateTimePickers is visible.
IsAmPmShortFormatGets whether Am Pm section is in short format (t).
IsHour12FormatGet whether time section is in 12 hours format.
IsReadOnlyGets or sets whether Value is only for read.
IsYearShortFormatGets whether year section in short format.
ShowOptionsButtonGets or sets whether options button is visible.
ValueGets or sets current DateTime value

How to use

Bind a DateTime value to the Value property:

    <orc:DateTimePicker Value="{Binding DateTimeValue}" />

Have a question about Catel or WildGums controls? Use StackOverflow with the Catel tag!


Discussion