Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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?

like image 807
curiosity Avatar asked Feb 02 '26 10:02

curiosity


1 Answers

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.

like image 98
Tarydon Avatar answered Feb 03 '26 23:02

Tarydon