I've got a wpf form where validation works fine for single-field validation. I've got the DataAnnotations classes wired up to the IDataErrorInfo class so that they display properly.
Now I've got a more complicated form with more complicated validation. I've implemented IValidatableObject on the view model, and I see that this is called. I manually call Validator.TryValidateObject any time a field changes, and I can see that the IDataErrorInfo class properly returns errors.
My problem is that I don't know how to get the UI to recheck it's validation status. For example, I've got fields A, B, and C that are only required if D is a certain value. So there's no DataAnnotation flags on those fields -- I just return the list of errors in the Validate implementation of IValidatableObject.
Now when I edit D, no error is displayed in A,B, or C. If I put something in A, then take it back out, then A will show the error. But I want all the fields to do it automatically. Is there a normal way to do this, and in particular, trigger it from the ViewModel?