WPF Textfield Validation

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?



Category: wpf Time: 2016-07-30 Views: 0

Related post

iOS development

Android development

Python development

JAVA development

Development language

PHP development

Ruby development


Front-end development


development tools

Open Platform

Javascript development

.NET development

cloud computing


Copyright (C) avrocks.com, All Rights Reserved.

processed in 0.187 (s). 12 q(s)