68 references to ValidationStep
PresentationFramework (68)
System\Windows\Controls\ConversionValidationRule.cs (1)
27
internal ConversionValidationRule() : base(
ValidationStep
.ConvertedProposedValue, false)
System\Windows\Controls\DataErrorValidationRule.cs (1)
33
public DataErrorValidationRule() : base(
ValidationStep
.UpdatedValue, true)
System\Windows\Controls\NotifyDataErrorValidationRule.cs (1)
33
public NotifyDataErrorValidationRule() : base(
ValidationStep
.UpdatedValue, true)
System\Windows\Controls\ValidationRule.cs (6)
37
protected ValidationRule() : this(
ValidationStep
.RawProposedValue, false)
45
protected ValidationRule(
ValidationStep
validationStep, bool validatesOnTargetUpdated)
60
case
ValidationStep
.UpdatedValue:
61
case
ValidationStep
.CommittedValue:
77
public
ValidationStep
ValidationStep
94
ValidationStep
_validationStep;
System\Windows\Data\BindingExpression.cs (14)
1559
case
ValidationStep
.RawProposedValue:
1566
case
ValidationStep
.ConvertedProposedValue:
1567
case
ValidationStep
.UpdatedValue:
1568
case
ValidationStep
.CommittedValue:
2088
internal override bool Validate(object value,
ValidationStep
validationStep)
2093
if (validationStep ==
ValidationStep
.UpdatedValue)
2121
else if (validationStep ==
ValidationStep
.CommittedValue)
2135
internal override bool CheckValidationRules(BindingGroup bindingGroup,
ValidationStep
validationStep)
2143
case
ValidationStep
.RawProposedValue:
2146
case
ValidationStep
.ConvertedProposedValue:
2149
case
ValidationStep
.UpdatedValue:
2150
case
ValidationStep
.CommittedValue:
2172
bool isValid = Validate(rawValue,
ValidationStep
.RawProposedValue);
2188
isValid = Validate(convertedValue,
ValidationStep
.ConvertedProposedValue);
System\Windows\Data\BindingExpressionBase.cs (7)
1080
if (!Validate(value,
ValidationStep
.RawProposedValue))
1084
if (!Validate(value,
ValidationStep
.ConvertedProposedValue))
1088
if (!Validate(value,
ValidationStep
.UpdatedValue))
1092
if (!Validate(value,
ValidationStep
.CommittedValue))
1159
internal virtual bool Validate(object value,
ValidationStep
validationStep)
1223
internal abstract bool CheckValidationRules(BindingGroup bindingGroup,
ValidationStep
validationStep);
2422
internal ValidationError GetValidationErrors(
ValidationStep
validationStep)
System\Windows\Data\BindingGroup.cs (26)
367
bool result = UpdateAndValidate(
ValidationStep
.CommittedValue);
424
return UpdateAndValidate(
ValidationStep
.ConvertedProposedValue);
439
return UpdateAndValidate(
ValidationStep
.UpdatedValue);
512
case
ValidationStep
.RawProposedValue:
515
case
ValidationStep
.ConvertedProposedValue:
516
case
ValidationStep
.UpdatedValue:
517
case
ValidationStep
.CommittedValue:
529
case
ValidationStep
.RawProposedValue:
530
case
ValidationStep
.ConvertedProposedValue:
531
case
ValidationStep
.UpdatedValue:
532
case
ValidationStep
.CommittedValue:
761
void ClearValidationErrors(
ValidationStep
validationStep)
769
ClearValidationErrorsImpl(
ValidationStep
.RawProposedValue, true);
773
void ClearValidationErrorsImpl(
ValidationStep
validationStep, bool allSteps)
1020
bool UpdateAndValidate(
ValidationStep
validationStep)
1032
PrepareProposedValuesForUpdate(mentor, (validationStep >=
ValidationStep
.UpdatedValue));
1036
for (_validationStep =
ValidationStep
.RawProposedValue;
1042
case
ValidationStep
.RawProposedValue:
1045
case
ValidationStep
.ConvertedProposedValue:
1048
case
ValidationStep
.UpdatedValue:
1051
case
ValidationStep
.CommittedValue:
1062
ResetProposedValuesAfterUpdate(mentor, result && validationStep ==
ValidationStep
.CommittedValue);
1064
_validationStep = (
ValidationStep
)(-1);
1208
if (_validationStep >=
ValidationStep
.UpdatedValue &&
1558
ValidationStep
_validationStep = (
ValidationStep
)(-1);
System\Windows\Data\MultiBindingExpression.cs (10)
587
if (!bindExpr.Validate(value,
ValidationStep
.RawProposedValue))
784
internal override bool Validate(object value,
ValidationStep
validationStep)
801
case
ValidationStep
.RawProposedValue:
846
internal override bool CheckValidationRules(BindingGroup bindingGroup,
ValidationStep
validationStep)
854
case
ValidationStep
.RawProposedValue:
855
case
ValidationStep
.ConvertedProposedValue:
856
case
ValidationStep
.UpdatedValue:
857
case
ValidationStep
.CommittedValue:
866
if (result && validationStep ==
ValidationStep
.CommittedValue)
885
bool isValid = Validate(rawValue,
ValidationStep
.RawProposedValue);
System\Windows\Data\PriorityBindingExpression.cs (2)
429
internal override bool Validate(object value,
ValidationStep
validationStep)
442
internal override bool CheckValidationRules(BindingGroup bindingGroup,
ValidationStep
validationStep)