12 instantiations of ValidationError
PresentationFramework (12)
src\Framework\System\Windows\Data\BindingExpression.cs (3)
1611
error = new
ValidationError
(validationRule, this, validationResult.ErrorContent, null);
2220
validationError = new
ValidationError
(exceptionValidationRule, this, ex.Message, ex);
2224
validationError = new
ValidationError
(exceptionValidationRule, this, filteredException, ex);
src\Framework\System\Windows\Data\BindingExpressionBase.cs (2)
1207
UpdateValidationError( new
ValidationError
(validationRule, this, validationResult.ErrorContent, null));
2316
ValidationError veAdd = new
ValidationError
(rule, this, o, null);
src\Framework\System\Windows\Data\BindingGroup.cs (7)
1000
AddValidationError(new
ValidationError
(rule, this, validationResult.ErrorContent, null));
1005
AddValidationError(new
ValidationError
(rule, this, vue.Message, vue));
1127
ValidationError veAdd = new
ValidationError
(rule, this, o, null);
1234
AddValidationError(new
ValidationError
(rule, this, validationResult.ErrorContent, null));
1240
AddValidationError(new
ValidationError
(rule, this, vue.Message, vue));
1276
ValidationError error = new
ValidationError
(ExceptionValidationRule.Instance, this, ex.Message, ex);
1481
ValidationError newError = new
ValidationError
(
85 references to ValidationError
PresentationFramework (85)
src\Framework\MS\Internal\Controls\ValidationErrorCollection.cs (3)
37
internal class ValidationErrorCollection : ObservableCollection<
ValidationError
>
44
public static readonly ReadOnlyObservableCollection<
ValidationError
> Empty =
45
new ReadOnlyObservableCollection<
ValidationError
>(new ValidationErrorCollection());
src\Framework\MS\Internal\Data\ClrBindingWorker.cs (2)
784
ValidationError
validationError;
795
else if ( (validationError = filteredException as
ValidationError
) != null )
src\Framework\System\Windows\Controls\Validation.cs (8)
79
typeof(ReadOnlyObservableCollection<
ValidationError
>), typeof(Validation),
99
public static ReadOnlyObservableCollection<
ValidationError
> GetErrors(DependencyObject element)
104
return (ReadOnlyObservableCollection<
ValidationError
>) element.GetValue(ErrorsProperty);
125
d.SetValue(ErrorsPropertyKey, new ReadOnlyObservableCollection<
ValidationError
>(newErrors));
485
public static void MarkInvalid(BindingExpressionBase bindingExpression,
ValidationError
validationError)
507
internal static void AddValidationError(
ValidationError
validationError, DependencyObject targetElement, bool shouldRaiseEvent)
545
internal static void RemoveValidationError(
ValidationError
validationError, DependencyObject targetElement, bool shouldRaiseEvent)
584
static void OnValidationError(DependencyObject source,
ValidationError
validationError, ValidationErrorEventAction action)
src\Framework\System\Windows\Controls\ValidationErrorEventArgs.cs (3)
44
internal ValidationErrorEventArgs(
ValidationError
validationError, ValidationErrorEventAction action)
58
public
ValidationError
Error
97
private
ValidationError
_validationError;
src\Framework\System\Windows\Data\BindingExpression.cs (10)
1019
ValidationError
error;
1051
object GetInitialValue(DependencyObject target, out
ValidationError
error)
1518
ValidationError
validationError = null;
1591
ValidationError
RunValidationRule(ValidationRule validationRule, object value, CultureInfo culture)
1593
ValidationError
error;
1935
ValidationError
validationError = new ValidationError(ConversionValidationRule.Instance, this, SR.Get(SRID.Validation_ConversionFailed, rawValue), null);
2078
ValidationError
oldValidationError = GetValidationErrors(validationStep);
2087
ValidationError
error = RunValidationRule(DataErrorValidationRule.Instance, this, GetCulture());
2199
ValidationError
validationError = null;
2210
validationError = filteredException as
ValidationError
;
src\Framework\System\Windows\Data\BindingExpressionBase.cs (28)
235
public virtual
ValidationError
ValidationError
240
internal
ValidationError
BaseValidationError
242
get { return (
ValidationError
)GetValue(Feature.ValidationError, null); }
245
internal List<
ValidationError
> NotifyDataErrors
247
get { return (List<
ValidationError
>)GetValue(Feature.NotifyDataErrors, null); }
285
public virtual ReadOnlyCollection<
ValidationError
> ValidationErrors
291
List<
ValidationError
> list;
302
list = new List<
ValidationError
>();
306
list = new List<
ValidationError
>(NotifyDataErrors);
311
return new ReadOnlyCollection<
ValidationError
>(list);
1078
ValidationError
oldValidationError = BaseValidationError;
1175
ValidationError
oldValidationError = GetValidationErrors(validationStep);
2275
internal void UpdateValidationError(
ValidationError
validationError, bool skipBindingGroup=false)
2279
ValidationError
oldValidationError = BaseValidationError;
2297
List<
ValidationError
> toRemove;
2306
List<
ValidationError
> notifyDataErrors = NotifyDataErrors;
2310
notifyDataErrors = new List<
ValidationError
>();
2316
ValidationError
veAdd = new ValidationError(rule, this, o, null);
2324
List<
ValidationError
> notifyDataErrors = NotifyDataErrors;
2325
foreach (
ValidationError
veRemove in toRemove)
2336
internal static void GetValidationDelta(List<
ValidationError
> previousErrors, List<object> errors, out List<object> toAdd, out List<
ValidationError
> toRemove)
2348
toRemove = new List<
ValidationError
>(previousErrors);
2353
toRemove = new List<
ValidationError
>(previousErrors);
2379
internal void AddValidationError(
ValidationError
validationError, bool skipBindingGroup=false)
2395
internal void RemoveValidationError(
ValidationError
validationError, bool skipBindingGroup=false)
2413
internal
ValidationError
GetValidationErrors(ValidationStep validationStep)
2415
ValidationError
validationError = BaseValidationError;
src\Framework\System\Windows\Data\BindingGroup.cs (28)
254
public ReadOnlyCollection<
ValidationError
> ValidationErrors
263
return new ReadOnlyCollection<
ValidationError
>(superset);
267
List<
ValidationError
> errors = new List<
ValidationError
>();
268
foreach (
ValidationError
error in superset)
276
return new ReadOnlyCollection<
ValidationError
>(errors);
302
ValidationError
validationError = superset[i];
313
bool Belongs(
ValidationError
error)
742
internal void AddValidationError(
ValidationError
validationError)
752
internal void RemoveValidationError(
ValidationError
validationError)
787
ValidationError
validationError = validationErrors[i];
967
Collection<
ValidationError
> oldErrors;
976
oldErrors = new Collection<
ValidationError
>();
977
ReadOnlyCollection<
ValidationError
> errors = Validation.GetErrors(mentor);
980
ValidationError
error = errors[i];
1107
List<
ValidationError
> itemErrors;
1112
List<
ValidationError
> toRemove;
1123
itemErrors = new List<
ValidationError
>();
1127
ValidationError
veAdd = new ValidationError(rule, this, o, null);
1135
foreach (
ValidationError
veRemove in toRemove)
1276
ValidationError
error = new ValidationError(ExceptionValidationRule.Instance, this, ex.Message, ex);
1473
ValidationError
validationError = bindExpr.ValidationError;
1481
ValidationError
newError = new ValidationError(
1567
Dictionary<WeakReference, List<
ValidationError
>> _notifyDataErrors = new Dictionary<WeakReference, List<
ValidationError
>>();
1920
public bool HasValidationError(
ValidationError
validationError)
1970
public
ValidationError
ValidationError { get { return _error; } }
1988
ValidationError
_error;
src\Framework\System\Windows\Data\MultiBindingExpression.cs (3)
275
public override
ValidationError
ValidationError
279
ValidationError
validationError = base.ValidationError;
501
ValidationError
validationError = new ValidationError(ConversionValidationRule.Instance, this, SR.Get(SRID.Validation_ConversionFailed, value), null);