This project has moved. For the latest updates, please go here.

Keyboard friendly DateTime editor

Sep 9, 2012 at 2:47 PM

Hey, first, sorry for my bad english.

I need a keyboard friendly way to edit an DateTime property, is this possible with any control/configuration of any control? I tried a MaskedTextBox and the DateTimeUpDown but the problems I found:

MaskTextBox: When there is already a value, I can't overwrite it. I can do it pressing INSERT key on keyboard, but would be nice to have a property on the control. Other problem I have is that if I have a DateTime binded to the control and the mask it is just "00/00/0000 00:00", when the value change, it will not work. The mask need to be "00/00/0000 00:00:00" (but probably just a converter would fix this)

DateTimeUpDown: I have to manually insert the "/" and ":" and the control allow me to insert invalid values. Also, to use the "spin" functionallity, I need to click on the datetime part. It would be nice to be able to just press ARROW LEFT/RIGHT to change between the parts.

I will try to change some of this behavior but before I dive in on code, there is something I miss?

Sep 10, 2012 at 6:07 PM

The following Issues has been created based on this thread:

http://wpftoolkit.codeplex.com/workitem/18616
http://wpftoolkit.codeplex.com/workitem/18617
http://wpftoolkit.codeplex.com/workitem/18618

 

Oct 22, 2012 at 4:52 PM

The MaskedTextBox issues will be fixed in version 1.8.

See issue http://wpftoolkit.codeplex.com/workitem/18616

Nov 7, 2012 at 7:50 PM

Issue http://wpftoolkit.codeplex.com/workitem/18616 fixed in v1.8

Developer
Mar 27, 2013 at 12:41 PM
The DateTimeUpDown is Fixed in v2.0. User will be able to use the Left/Right arrows to change between DateTime parts.