This project is read-only.

How to disable value dragging in NumericUpDown control

Feb 26, 2013 at 4:54 AM

is there a way to disable value changing when dragging value in NumericUpDown control?
Feb 26, 2013 at 6:49 AM
You can likely do that by removing the Rectangle called PART_DragOverlay from the template, but if you really don't want that behavior - you might find a better implementation to suit your needs. The Toolkit version was developed to partly mimic the control used in Blend, but might not have the best support for currency or other decimal input. For that I would recommend trying the NumericUpDown from Callisto.
Feb 27, 2013 at 4:33 AM
Edited Feb 27, 2013 at 4:46 AM

I think your NumericUpDown control is better than Callisto control since it has a better template and also supports incrementing/decrementing value when spin buttons are pressed. It would be nice also to have mouse wheel support for changing value.

What about adding IsValueDraggingEnabled property to enable/disable this behavior and also ValueBarColor property to set value bar fill color?

Thank you very much.