I am trying to validate a textbox to enter only numbers and set maximum and minimum value in wpf.
I want to do it with the dependency logic....
Can anyone help me with some sample code or project for that?
This article on binding validation should get you started. The sample code implements almost exactly what you want. And here is a link to the entire project, in case you want to download it.