timheuer / callisto

A control toolkit for Windows 8 XAML applications. Contains some UI controls to make it easier to create Windows UI style apps for the Windows Store in accordance with Windows UI guidelines.
http://timheuer.com/blog/archive/2012/05/31/introducing-callisto-a-xaml-toolkit-for-metro-apps.aspx
Other
338 stars 108 forks source link

DurationUpDown control #186

Open OasisLiveForever opened 11 years ago

OasisLiveForever commented 11 years ago

Hi,

I was wondering if there's a way to inherit from NumericUpDown control in order to create a custom DurationUpDown control where user can enter values formatted in mm:ss or hh:mm:ss and have Value, Minimum, Maximum expressed in seconds or minutes.

I also considered to use a custom converter for the Value but how can I format the value that is displayed in the texbox? Instead of having decimal places I should have a format string.

What do you think?

timheuer commented 11 years ago

It is a good suggestion. This would require a bit more to support the "mask" aspect of the input area as well as anything with time is never as easy as it sounds when you take into account internationalization. I'll keep this on the feature suggestion list but don't see getting to it anytime soon.