Validate a textBox value

I have two textboxes that are inputs for a minimum value and maximum value, respectively.
I need that when the user inserts a value on the minimum textbox the application validates if that value is lower that the maximum value. If that doesn’t happen than the textBox should change the color of the border because the validation has failed. I’m trying to use <Binding.ValidationRules> with parameters for high\low values but the problem is that this parameters cannot use binding because ValidationRules is not a Dependency Object. Can you please help me to achieve this?
Thanks in advance!


I don’t know how to do that. I suppose you could implement IDataErrorInfo on your data, where you would certainly have the information you need.

Thanks Walter, i will try that