I have a Textbox that bind to a validation rule. I am able to display red border when Validation.HasError is True
However, I am not able to display green border when user input is correct and I found that because my Trigger property replys on Validation.HasError and Validation.HasError IS NOT False when there is no validation error.
I wonder if there is a proper way or workaround to achieve this?
You can set the default Border to be Green, change it in Trigger, when
Validation.HasErroris true.Using msdn exapmle, you can set
BorderBrushandBorderThicknessin the Style:Other parts of the code are
and