private IValidationErrors GetErrors(IValidationErrors result, RowPresenter rowPresenter, IDataValidationErrors messages, IColumns columns, bool ensureVisible) { Debug.Assert(messages != null); for (int i = 0; i < messages.Count; i++) { var message = messages[i]; if (ensureVisible && !IsVisible(rowPresenter, message.Source)) { continue; } if (columns == null || columns.IsSupersetOf(message.Source)) { result = result.Add(message); } } return(result); }
internal AsyncValidationFault GetFault(IColumns container) { return(Fault != null && (container == null || container.IsSupersetOf(SourceColumns)) ? Fault : null); }