Is there any relatively simple way to set a value constraint (preferably via xaml) on the xamnumericeditor so that it excludes ONLY 0?
I have a quantity control that I need to be able to allow the user to enter both positive and negative numbers, but NOT zero.
Thanks.
Hello,
I am just checking if you got this worked out or you still require any assistance or clarification on the matter.
Hi there, Stefan,
Thank you for the information and the regex option that was supplied. I did try to work with that, and it 'partially' worked, which I expected.
I ran into a separate functional issue that I've been playing with a bit. The regex expression will help prevent the 0.00 option. The problem though, is that once I enter a positive number, I cannot use the increment/decrement button on the xamnumericeditor to get to the negative numbers (and the opposite as well). So....it's a partial fix. But I'm still playing with it.
Thanks!
I am just checking the progress of this issue and was wondering if you managed to achieve your goal or if you need any further assistance on the matter.
I can say that this behavior is expected since you don’t want to be able to enter 0 and if your SpinIncrement is 1 and the number in the Editor is 1 you are not able to spin down. My suggestion is to check whether the Editor’s Value is equal to the SpinIncrement and change it via code behind and skip the 0.
Hope this helps you.