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

Edited Issue: DateTimePicker overwrites DateTime.Kind [21183]

$
0
0
__Bug__

Changing the date in the DateTimePicker will reset the _DateTime.Kind_ property to _Unspecified_ - regardless of the previous value.

(Possibly due to some internal _new DateTime()_ construction without transferring the _DateTime.Kind_ of the previous value.)

Changing the time preserves the _DateTime.Kind_ as expected.

__Expected behavior__

If there is a previous value keep the _DateTime.Kind_ as is.
If the value was null, use _Local_.

Viewing all articles
Browse latest Browse all 4964

Trending Articles



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