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

New Post: How to disable auto-validation in DateTimePicker.

$
0
0
Hi,

I'm trying the DatetimePicker in v2.1. If I modify the minutes from "12" to "78" and put focus on another control, the date is changed to January 1 0001 with the time 00:00:00. With the code snippet added to DateTimeUpDown.TryParseDateTime(), I get the behavior you say : "78" become "07" instead of reverting to last valid time.

This is because when you type the "7" of "78", the current time is "07" and registered as the last valid time. So entering the "8" of "78" will revert to "07".

Issue https://wpftoolkit.codeplex.com/workitem/20926 has been created.

Viewing all articles
Browse latest Browse all 4964

Trending Articles



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