This project has moved and is read-only. For the latest updates, please go here.

New UpDown controls feedback

Apr 18, 2011 at 3:08 PM

Just wanted to stop by and give some praise on the new UpDown controls. After some fairly light testing it's looking really good. Love the Null watermark feature.

Good job!

Apr 18, 2011 at 3:11 PM

Thanks, I appreciate the positive feedback.

Apr 21, 2011 at 9:11 AM

These UpDown controls (as well as the other controls i already used) are realy great! In my opinion its a good idea to split the NumericUpDown into these specialisations.

Concerning the watermark feature (which is good) I wasn't able to display the DefaultValue by default.
<ewt:IntegerUpDown Minimum="{Binding MyMinimum, Mode =OneWay}" Value="{Binding Path=MyValue}" DefaultValue="{Binding MyDefault, Mode=OneWay}" />

The values are bound to a ViewModel which provided (when the IntegerUpDown initialized and loaded) for MyMinimum=1 and MyDefault=2. However, the IntegerUpDown (Watermark) displayed always 0 by default.  I don't know wheter this is a bug or I used it in a wrong kind. Anyway this is not a big issue for me.

Apr 21, 2011 at 2:22 PM

Thanks for the feedback.  The DefaultValue property is only used when the Value is null and an increment/decrement operation occurs.  For example; if I set the DefaultValue=5 and the Value is null, whenever I increment/decrement the value the first time it will set the Value to 5.  Also, the behavior you are describing sounds like your property is an int and not an int? (Nullable<int>) meaning that the default value of your property is always 0.  The watermark feature is only visible when the value is null.