I have a tree which represents XML document. And I show XML validations errors using a bound class which implements INotifyDataErrorInfo.
It works all fine on editable controls like text box or combo.
But some nodes are just text blocks. And they have errors too.
How do I go about it?
I recommend you wrap your
TextBlockin aValidationErrorBorder:ValidationErrorBorder control code:
and the control template:
and the validationTooltipTemplate: