I have multiple textboxes in my application. I would like to change the border of the textboxes to green or blue depending on the number the user has entered.
I can bind the values of a text box and use IValueConverter to convert double to color. This works fine.
The problem is that I have multiple textboxes with different conditions. Is there a way to define a general conversion function and specify the conditions elsewhere? What I have in mind is a boolean variable that changes depending on the value of each textbox. This variable can then be used for the conversion of the textbox border color.