14 instantiations of ValidationError
PresentationFramework (14)
System\Windows\Data\BindingExpression.cs (4)
1627
error = new
ValidationError
(validationRule, this, validationResult.ErrorContent, null);
1955
ValidationError validationError = new
ValidationError
(ConversionValidationRule.Instance, this, SR.Format(SR.Validation_ConversionFailed, rawValue), null);
2240
validationError = new
ValidationError
(exceptionValidationRule, this, ex.Message, ex);
2244
validationError = new
ValidationError
(exceptionValidationRule, this, filteredException, ex);
System\Windows\Data\BindingExpressionBase.cs (2)
1204
UpdateValidationError( new
ValidationError
(validationRule, this, validationResult.ErrorContent, null));
2325
ValidationError veAdd = new
ValidationError
(rule, this, o, null);
System\Windows\Data\BindingGroup.cs (7)
998
AddValidationError(new
ValidationError
(rule, this, validationResult.ErrorContent, null));
1003
AddValidationError(new
ValidationError
(rule, this, vue.Message, vue));
1125
ValidationError veAdd = new
ValidationError
(rule, this, o, null);
1232
AddValidationError(new
ValidationError
(rule, this, validationResult.ErrorContent, null));
1238
AddValidationError(new
ValidationError
(rule, this, vue.Message, vue));
1274
ValidationError error = new
ValidationError
(ExceptionValidationRule.Instance, this, ex.Message, ex);
1479
ValidationError newError = new
ValidationError
(
System\Windows\Data\MultiBindingExpression.cs (1)
501
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)
31
internal class ValidationErrorCollection : ObservableCollection<
ValidationError
>
37
public static readonly ReadOnlyObservableCollection<
ValidationError
> Empty =
38
new ReadOnlyObservableCollection<
ValidationError
>(new ValidationErrorCollection());
MS\Internal\Data\ClrBindingWorker.cs (2)
785
ValidationError
validationError;
796
else if ((validationError = filteredException as
ValidationError
) != null)
System\Windows\Controls\Validation.cs (8)
71
typeof(ReadOnlyObservableCollection<
ValidationError
>), typeof(Validation),
91
public static ReadOnlyObservableCollection<
ValidationError
> GetErrors(DependencyObject element)
95
return (ReadOnlyObservableCollection<
ValidationError
>) element.GetValue(ErrorsProperty);
116
d.SetValue(ErrorsPropertyKey, new ReadOnlyObservableCollection<
ValidationError
>(newErrors));
493
public static void MarkInvalid(BindingExpressionBase bindingExpression,
ValidationError
validationError)
512
internal static void AddValidationError(
ValidationError
validationError, DependencyObject targetElement, bool shouldRaiseEvent)
550
internal static void RemoveValidationError(
ValidationError
validationError, DependencyObject targetElement, bool shouldRaiseEvent)
589
static void OnValidationError(DependencyObject source,
ValidationError
validationError, ValidationErrorEventAction action)
System\Windows\Controls\ValidationErrorEventArgs.cs (3)
38
internal ValidationErrorEventArgs(
ValidationError
validationError, ValidationErrorEventAction action)
52
public
ValidationError
Error
91
private
ValidationError
_validationError;
System\Windows\Data\BindingExpression.cs (10)
1024
ValidationError
error;
1056
object GetInitialValue(DependencyObject target, out
ValidationError
error)
1533
ValidationError
validationError = null;
1606
ValidationError
RunValidationRule(ValidationRule validationRule, object value, CultureInfo culture)
1608
ValidationError
error;
1955
ValidationError
validationError = new ValidationError(ConversionValidationRule.Instance, this, SR.Format(SR.Validation_ConversionFailed, rawValue), null);
2098
ValidationError
oldValidationError = GetValidationErrors(validationStep);
2107
ValidationError
error = RunValidationRule(DataErrorValidationRule.Instance, this, GetCulture());
2219
ValidationError
validationError = null;
2230
validationError = filteredException as
ValidationError
;
System\Windows\Data\BindingExpressionBase.cs (28)
232
public virtual
ValidationError
ValidationError
237
internal
ValidationError
BaseValidationError
239
get { return (
ValidationError
)GetValue(Feature.ValidationError, null); }
242
internal List<
ValidationError
> NotifyDataErrors
244
get { return (List<
ValidationError
>)GetValue(Feature.NotifyDataErrors, null); }
282
public virtual ReadOnlyCollection<
ValidationError
> ValidationErrors
288
List<
ValidationError
> list;
298
list = new List<
ValidationError
>();
302
list = new List<
ValidationError
>(NotifyDataErrors);
307
return new ReadOnlyCollection<
ValidationError
>(list);
1074
ValidationError
oldValidationError = BaseValidationError;
1171
ValidationError
oldValidationError = GetValidationErrors(validationStep);
2284
internal void UpdateValidationError(
ValidationError
validationError, bool skipBindingGroup=false)
2288
ValidationError
oldValidationError = BaseValidationError;
2306
List<
ValidationError
> toRemove;
2315
List<
ValidationError
> notifyDataErrors = NotifyDataErrors;
2319
notifyDataErrors = new List<
ValidationError
>();
2325
ValidationError
veAdd = new ValidationError(rule, this, o, null);
2333
List<
ValidationError
> notifyDataErrors = NotifyDataErrors;
2334
foreach (
ValidationError
veRemove in toRemove)
2345
internal static void GetValidationDelta(List<
ValidationError
> previousErrors, List<object> errors, out List<object> toAdd, out List<
ValidationError
> toRemove)
2357
toRemove = new List<
ValidationError
>(previousErrors);
2362
toRemove = new List<
ValidationError
>(previousErrors);
2388
internal void AddValidationError(
ValidationError
validationError, bool skipBindingGroup=false)
2404
internal void RemoveValidationError(
ValidationError
validationError, bool skipBindingGroup=false)
2422
internal
ValidationError
GetValidationErrors(ValidationStep validationStep)
2424
ValidationError
validationError = BaseValidationError;
System\Windows\Data\BindingGroup.cs (28)
252
public ReadOnlyCollection<
ValidationError
> ValidationErrors
261
return new ReadOnlyCollection<
ValidationError
>(superset);
265
List<
ValidationError
> errors = new List<
ValidationError
>();
266
foreach (
ValidationError
error in superset)
274
return new ReadOnlyCollection<
ValidationError
>(errors);
300
ValidationError
validationError = superset[i];
311
bool Belongs(
ValidationError
error)
740
internal void AddValidationError(
ValidationError
validationError)
750
internal void RemoveValidationError(
ValidationError
validationError)
785
ValidationError
validationError = validationErrors[i];
965
Collection<
ValidationError
> oldErrors;
974
oldErrors = new Collection<
ValidationError
>();
975
ReadOnlyCollection<
ValidationError
> errors = Validation.GetErrors(mentor);
978
ValidationError
error = errors[i];
1105
List<
ValidationError
> itemErrors;
1110
List<
ValidationError
> toRemove;
1121
itemErrors = new List<
ValidationError
>();
1125
ValidationError
veAdd = new ValidationError(rule, this, o, null);
1133
foreach (
ValidationError
veRemove in toRemove)
1274
ValidationError
error = new ValidationError(ExceptionValidationRule.Instance, this, ex.Message, ex);
1471
ValidationError
validationError = bindExpr.ValidationError;
1479
ValidationError
newError = new ValidationError(
1565
Dictionary<WeakReference, List<
ValidationError
>> _notifyDataErrors = new Dictionary<WeakReference, List<
ValidationError
>>();
1918
public bool HasValidationError(
ValidationError
validationError)
1968
public
ValidationError
ValidationError { get { return _error; } }
1986
ValidationError
_error;
System\Windows\Data\MultiBindingExpression.cs (3)
274
public override
ValidationError
ValidationError
278
ValidationError
validationError = base.ValidationError;
501
ValidationError
validationError = new ValidationError(ConversionValidationRule.Instance, this, SR.Format(SR.Validation_ConversionFailed, value), null);