3

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?

1 Answer 1

5

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.

Sign up to request clarification or add additional context in comments.

2 Comments

But i really want to get some project to implement these logics to know the working.. can u get me some sample project?
See the article that I pointed you to. Right there in the article is a link to a Binding Validation Sample. I have edited my answer to include that link as well.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.