Setting the time on TimeSpanPicker

Aug 20, 2011 at 12:51 PM

I hope the question is not stupid but how do you set the default time on the control TimeSpanPicker. 

I always get it set to 00:30:00, and when i try to change it, it becomes Null and then wont get set to anything at all!

I am new to all of this, please help!

Aug 20, 2011 at 1:23 PM

oh! got it!

so sorry for the trouble...

Aug 20, 2011 at 1:23 PM

oh! got it!

so sorry for the trouble...

Dec 6, 2011 at 2:09 PM

Does this bug been fixed?? how to set default value of the TimeSpanPicker?

 

Thanks!

Coordinator
Dec 7, 2011 at 7:33 PM

This was never a bug.   Do something like this:

XAML:

<

c4fSlToolkitExtender:TimeSpanPicker

 

Value="{Binding TimeSpan5Min}"
/>

codebehind:

public TimeSpan TimeSpan5Min { get { return TimeSpan.FromMinutes(5); } }