I have a textfield in WPF and i want to validate the user input, i have found lots of examples that do bits of what i want but none that do it all.
It has to only allow numeric numbers (0-9) Only one decimal place Not allow multiple '.' which most solutions seem to allow, Minimum number entry must be Maximum 999.9
Best solution i found so far is using a regex
new Regex(@"[^0-9.]+")
but this obviously doesn't limit number of decimal places or number of decimal points. Also no min or max
Can only one point me in the correct direction?
Thanks