DateTimePicker issue

Sep 12, 2008 at 1:12 PM
I've noticed that the DateTimePicker behaves odd when subsequent dates are provided. Even if it loses focus. The code below (I know it's not useful, it's just for this issue):

                                    Window w = App.GetWindow("Form1", InitializeOption.NoCache);


                                    DateTime dt = DateTime.UtcNow;

                                    DateTimePicker dtp = w.Get<DateTimePicker>("datePicker");

                                    Button b = w.Get<Button>("button1");


                                    for (int i = 0; i < 10; i++)



                                                dtp.Date = dt


Causes the date to be set to 9/12/2008, then 12/8/2009, then 8/9/2012, then it repeats. I'm assuming it's because it's keyboard driven (as your notes mention). I tried using a button click to draw focus away, but that didn't help.

And, just to confirm, there is no support for time in the DateTimePicker, correct?
Nov 9, 2008 at 12:04 PM
I am unable to figure out how to show time in the datetime picker? Do you know how to do this.