jpnavarini
jpnavarini

Reputation: 763

Extended Toolkit WPF DateTimePicker Seconds precision

I am using the WPF Extended Toolkit's DateTimePicker. However, when I open the calendar to pick a date, it is only possible to spin hour and minutes. The seconds can only be changed when the calendar is closed.

I would like to add seconds to the time shown below the calendar when picking a date, in a way it is consistent with the time shown below.

Upvotes: 0

Views: 3184

Answers (1)

making
making

Reputation: 407

The answer is you need to specify a TimeFormat that contains a format to show the seconds e.g.

<extToolkit:DateTimePicker Format="ShortTime" TimeFormat="Custom" TimeFormatString="hh:mm:ss" />

The timeformat is used to display / control the editing of the time when the drop down calendar is displayed.

Upvotes: 2

Related Questions