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