14 instantiations of ValidationError
PresentationFramework (14)
System\Windows\Data\BindingExpression.cs (4)
1618error = new ValidationError(validationRule, this, validationResult.ErrorContent, null); 1946ValidationError validationError = new ValidationError(ConversionValidationRule.Instance, this, SR.Format(SR.Validation_ConversionFailed, rawValue), null); 2231validationError = new ValidationError(exceptionValidationRule, this, ex.Message, ex); 2235validationError = new ValidationError(exceptionValidationRule, this, filteredException, ex);
System\Windows\Data\BindingExpressionBase.cs (2)
1196UpdateValidationError( new ValidationError(validationRule, this, validationResult.ErrorContent, null)); 2317ValidationError veAdd = new ValidationError(rule, this, o, null);
System\Windows\Data\BindingGroup.cs (7)
993AddValidationError(new ValidationError(rule, this, validationResult.ErrorContent, null)); 998AddValidationError(new ValidationError(rule, this, vue.Message, vue)); 1120ValidationError veAdd = new ValidationError(rule, this, o, null); 1227AddValidationError(new ValidationError(rule, this, validationResult.ErrorContent, null)); 1233AddValidationError(new ValidationError(rule, this, vue.Message, vue)); 1269ValidationError error = new ValidationError(ExceptionValidationRule.Instance, this, ex.Message, ex); 1474ValidationError newError = new ValidationError(
System\Windows\Data\MultiBindingExpression.cs (1)
490ValidationError validationError = new ValidationError(ConversionValidationRule.Instance, this, SR.Format(SR.Validation_ConversionFailed, value), null);
85 references to ValidationError
PresentationFramework (85)
MS\Internal\Controls\ValidationErrorCollection.cs (3)
26internal class ValidationErrorCollection : ObservableCollection<ValidationError> 32public static readonly ReadOnlyObservableCollection<ValidationError> Empty = 33new ReadOnlyObservableCollection<ValidationError>(new ValidationErrorCollection());
MS\Internal\Data\ClrBindingWorker.cs (2)
776ValidationError validationError; 787else if ((validationError = filteredException as ValidationError) != null)
System\Windows\Controls\Validation.cs (8)
63typeof(ReadOnlyObservableCollection<ValidationError>), typeof(Validation), 83public static ReadOnlyObservableCollection<ValidationError> GetErrors(DependencyObject element) 87return (ReadOnlyObservableCollection<ValidationError>) element.GetValue(ErrorsProperty); 108d.SetValue(ErrorsPropertyKey, new ReadOnlyObservableCollection<ValidationError>(newErrors)); 485public static void MarkInvalid(BindingExpressionBase bindingExpression, ValidationError validationError) 504internal static void AddValidationError(ValidationError validationError, DependencyObject targetElement, bool shouldRaiseEvent) 542internal static void RemoveValidationError(ValidationError validationError, DependencyObject targetElement, bool shouldRaiseEvent) 581static void OnValidationError(DependencyObject source, ValidationError validationError, ValidationErrorEventAction action)
System\Windows\Controls\ValidationErrorEventArgs.cs (3)
35internal ValidationErrorEventArgs(ValidationError validationError, ValidationErrorEventAction action) 49public ValidationError Error 88private ValidationError _validationError;
System\Windows\Data\BindingExpression.cs (10)
1015ValidationError error; 1047object GetInitialValue(DependencyObject target, out ValidationError error) 1524ValidationError validationError = null; 1597ValidationError RunValidationRule(ValidationRule validationRule, object value, CultureInfo culture) 1599ValidationError error; 1946ValidationError validationError = new ValidationError(ConversionValidationRule.Instance, this, SR.Format(SR.Validation_ConversionFailed, rawValue), null); 2089ValidationError oldValidationError = GetValidationErrors(validationStep); 2098ValidationError error = RunValidationRule(DataErrorValidationRule.Instance, this, GetCulture()); 2210ValidationError validationError = null; 2221validationError = filteredException as ValidationError;
System\Windows\Data\BindingExpressionBase.cs (28)
224public virtual ValidationError ValidationError 229internal ValidationError BaseValidationError 231get { return (ValidationError)GetValue(Feature.ValidationError, null); } 234internal List<ValidationError> NotifyDataErrors 236get { return (List<ValidationError>)GetValue(Feature.NotifyDataErrors, null); } 274public virtual ReadOnlyCollection<ValidationError> ValidationErrors 280List<ValidationError> list; 290list = new List<ValidationError>(); 294list = new List<ValidationError>(NotifyDataErrors); 299return new ReadOnlyCollection<ValidationError>(list); 1066ValidationError oldValidationError = BaseValidationError; 1163ValidationError oldValidationError = GetValidationErrors(validationStep); 2276internal void UpdateValidationError(ValidationError validationError, bool skipBindingGroup=false) 2280ValidationError oldValidationError = BaseValidationError; 2298List<ValidationError> toRemove; 2307List<ValidationError> notifyDataErrors = NotifyDataErrors; 2311notifyDataErrors = new List<ValidationError>(); 2317ValidationError veAdd = new ValidationError(rule, this, o, null); 2325List<ValidationError> notifyDataErrors = NotifyDataErrors; 2326foreach (ValidationError veRemove in toRemove) 2337internal static void GetValidationDelta(List<ValidationError> previousErrors, List<object> errors, out List<object> toAdd, out List<ValidationError> toRemove) 2349toRemove = new List<ValidationError>(previousErrors); 2354toRemove = new List<ValidationError>(previousErrors); 2380internal void AddValidationError(ValidationError validationError, bool skipBindingGroup=false) 2396internal void RemoveValidationError(ValidationError validationError, bool skipBindingGroup=false) 2414internal ValidationError GetValidationErrors(ValidationStep validationStep) 2416ValidationError validationError = BaseValidationError;
System\Windows\Data\BindingGroup.cs (28)
247public ReadOnlyCollection<ValidationError> ValidationErrors 256return new ReadOnlyCollection<ValidationError>(superset); 260List<ValidationError> errors = new List<ValidationError>(); 261foreach (ValidationError error in superset) 269return new ReadOnlyCollection<ValidationError>(errors); 295ValidationError validationError = superset[i]; 306bool Belongs(ValidationError error) 735internal void AddValidationError(ValidationError validationError) 745internal void RemoveValidationError(ValidationError validationError) 780ValidationError validationError = validationErrors[i]; 960Collection<ValidationError> oldErrors; 969oldErrors = new Collection<ValidationError>(); 970ReadOnlyCollection<ValidationError> errors = Validation.GetErrors(mentor); 973ValidationError error = errors[i]; 1100List<ValidationError> itemErrors; 1105List<ValidationError> toRemove; 1116itemErrors = new List<ValidationError>(); 1120ValidationError veAdd = new ValidationError(rule, this, o, null); 1128foreach (ValidationError veRemove in toRemove) 1269ValidationError error = new ValidationError(ExceptionValidationRule.Instance, this, ex.Message, ex); 1466ValidationError validationError = bindExpr.ValidationError; 1474ValidationError newError = new ValidationError( 1560Dictionary<WeakReference, List<ValidationError>> _notifyDataErrors = new Dictionary<WeakReference, List<ValidationError>>(); 1913public bool HasValidationError(ValidationError validationError) 1963public ValidationError ValidationError { get { return _error; } } 1981ValidationError _error;
System\Windows\Data\MultiBindingExpression.cs (3)
263public override ValidationError ValidationError 267ValidationError validationError = base.ValidationError; 490ValidationError validationError = new ValidationError(ConversionValidationRule.Instance, this, SR.Format(SR.Validation_ConversionFailed, value), null);