Hi all.. can you tell me if infragistics does a NumericUpDown for wfp?
I want something that allows a min and max value to be specified and has up/down buttons on the right to choose the number.. just like the WinForms "NumericUpDown" control.
I have IG's WPF 8.2 i think..
Hello,
In WPF the equivalent of the NumericUpDown is the XamNumericEditor. When it is in EditMode, you can increase/decrease the value in the editor with the UP and DOWN arrow keys. You can set the MAX and MIN value with the ValueConstraint property of the XamNumericEditor.
<igEditors:XamNumericEditor.ValueConstraint> <igEditors:ValueConstraint MaxInclusive="5" MinInclusive="0"/> </igEditors:XamNumericEditor.ValueConstraint>
Hope this helps.
Alex.
I see... thanks.
btw.. I tried your example... but when holding the up arrow the number continued past 5, is this supposed to happen?
Well it depends on what you are trying to achieve.
What I have set is that the value will not exceed 5.99. You can set also MaxExclusive and MinExclusive. If you set there, the value will go up to 4.99 and down to 1.00. You can try them and see the other properties too and adjust the constraints to your scenario.