Questions about TimeSpanPicker

May 1, 2011 at 11:55 PM


I've been looking at the TimeSpanPicker in the sample project... the third instance (Max 2 hours, Steps 10 min) seems to have a problem.  If I understand correctly, the maximum duration is supposed to be 2 hours; but I can actually select more than that (for example, 2 hours, 30 minutes).  When I click done, I actually see '02:30:00' in the textbox.  However, if I click on the textbox to change it, the value is reset to 1 hour, 50 minutes.  Is this a bug?

Also, I'm trying to set the default value to something other than 30 minutes.  Could someone tell me how to do this?  Setting the "Value" property isn't working.

May 2, 2011 at 3:25 AM

Valid point on the max value but I think it would only after you hit OK.  I think it would be very annoying to set 2 hours and have the minutes reset if you went to 2 hours and had to go to 1 hour to get any minutes on it.

Don't think you can set the value with xaml.  I tried a few different ways but if I did it in code behind, it worked just fine.

May 2, 2011 at 8:45 PM

checked in at 65945