Issue with WPF validation(IDataErrorInfo) and tab focusing
I have a TextBox bound to a property of an object which implements IDataErrorInfo . I set up the Validation.ErrorTemplate of the TextBox , and it works fine. The problem is that I have these on a TabControl , and the validation template doesn't display any more if I change the tab to another one and then come back to the initial tab (where the TextBox is). It looks like it is validated(like the value is correct), but actually it is not. This is the IDataErrorInfo object - note that a "correct" value is a string with a length of 2: public class Presenter : IDataErrorInfo { public Presenter() {