tT The user should not be able to click the button if the user has entered an invalid quantity (i.e. non integer or less than zero).
Adding validation to text box control
I have a text box and button in as seen in the code below. I need to apply validation such that
4 Answers
Know the answer? Post it. Somebody with the same question will find it here.

Joginder BangerRank #360 · 7K reputationPosted Apr 8, 2014, 5:55 PM EDT
Jignesh TrivediRank #16 · 50.3K reputationPosted Apr 8, 2014, 8:08 PM EDT
hi,
Try below link, it might help you.
http://www.codeproject.com/Tips/690130/Simple-Validation-in-WPF
http://stackoverflow.com/questions/2079552/wpf-textbox-validation
Abhay ShankerRank #375 · 6.7K reputationPosted Apr 8, 2014, 8:47 PM EDT
http://codeblitz.wordpress.com/2009/05/08/wpf-validation-made-easy-with-idataerrorinfo/
Lakshmanan Sethu SankaranarayanRank #124 · 17.7K reputationPosted Apr 8, 2014, 9:08 PM EDT