public ValidationReloadedTracker(ValidationTracker validationTracker, object validationSource, IEnumerable <ValidationError> errors) { this.validationTracker = validationTracker; this.errors = errors; if (validationSource is FrameworkElement) { ((FrameworkElement)validationSource).Loaded += ValidationSourceLoaded; } else { ((FrameworkContentElement)validationSource).Loaded += ValidationSourceLoaded; } }
public ValidationReloadedTracker(ValidationTracker validationTracker, object validationSource, IEnumerable<ValidationError> errors) { this.validationTracker = validationTracker; this.errors = errors; if (validationSource is FrameworkElement) { ((FrameworkElement)validationSource).Loaded += ValidationSourceLoaded; } else { ((FrameworkContentElement)validationSource).Loaded += ValidationSourceLoaded; } }