Quantcast
Channel: Extended WPF Toolkit™ Community Edition
Viewing all articles
Browse latest Browse all 4964

Commented Issue: DateTimeUpDown problem... [22437]

$
0
0
Hello! I'm trying to use DateTimeUpDown in my project.
So I have faced a problem If I use ShortTime format, the problem is:
When I selected time (minutes) I want to input for example 15, I press 1 and then 5 and something strange happen.
1) 12:00 AM
2) 12:1 AM
3) 12:5AM

I did something wrong?
I hope my images were added. =)

![Image](https://s23.postimg.org/4jwazlmxz/first.png)
![Image](https://s23.postimg.org/7f9e6gqxz/second.png)
Comments: ** Comment from web user: PatrickHines_SAIC **

I made the suggested update to the source and integrated. It did make things better, but still doesn't solve all the problems. Please consider the following two workflows:

Project: Simple WPF project with a single DateTimeUpDown, not data bound, with AllowTextInput=True.

* Start
* Use the control up/down arrows to get Monday, May 30 to show up
* Double-click the day "30"
* Type in "25"
* Press the right arrow key
* Observe that the selection is now 4 characters long, starting with the comma after the "25"

The above works as expected if you hit the enter key, but not if you hit the arrow key.

* Start
* Use the control up/down arrows to get a valid date/time to show up
* Select all the text
* Enter "7:"
* Observe that an exception gets thrown

My expectation is that if you select all the text in the control, you can type in anything that DateTime.Parse can process, and it gets turned into a date when the Enter or Arrow Keys are pressed, or cancelled if ESC is pressed.


Viewing all articles
Browse latest Browse all 4964

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>