I only want to allow positive numbers as user input in my TextBox.
If I input -10 and use
<TextBox Text="{Binding Width, StringFormat={}{0:0.00;0.00}}" />
then it always displays positive numbers, but the Data behind is still negative.
How to do it right?
Since the validation rule enforces the value to be positive, I suggest to also check the value in the VM property to enforce/convert it as well: