Quantcast
Channel: Extended WPF Toolkit™ Community Edition
Viewing all articles
Browse latest Browse all 4964

New Post: validation with minus sign

$
0
0
I'm creating a MaskedTextBox with Mask = "#999.99" and ValueDataType Decimal
However when I enter (e.g.) -123.45 as input I get validation errors. Only positive numbers work. I also can't set the value from code behind to a negative number or else I'll get the following error:

The value representation '-0001,20' does not match the mask.
Parameter name: value


Is this some error in the MaskedTextBox component or am I using it wrongly?

Viewing all articles
Browse latest Browse all 4964

Trending Articles