curiosity
curiosity

Reputation: 1233

Textbox validation in wpf

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?

Upvotes: 3

Views: 6771

Answers (1)

Tarydon
Tarydon

Reputation: 5183

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.

Upvotes: 5

Related Questions