I need validate textb开发者_开发问答ox. range 0.0-200.0 and work with ',' and with '.' How do this?
Use the NumericUpDown control in the Silverlight toolkit.
Don't try and reinvent the wheel with a textbox; using a control explicitly designed for this purpose is much more user-friendly. It's immediately obvious that they're expected to enter a number, they can easily change the current value using recognizable methods, and you're freed from having to write and test a bunch of custom validation code.
精彩评论