68 references to ValidationStep
PresentationFramework (68)
System\Windows\Controls\ConversionValidationRule.cs (1)
24
internal ConversionValidationRule() : base(
ValidationStep
.ConvertedProposedValue, false)
System\Windows\Controls\DataErrorValidationRule.cs (1)
29
public DataErrorValidationRule() : base(
ValidationStep
.UpdatedValue, true)
System\Windows\Controls\NotifyDataErrorValidationRule.cs (1)
25
public NotifyDataErrorValidationRule() : base(
ValidationStep
.UpdatedValue, true)
System\Windows\Controls\ValidationRule.cs (6)
36
protected ValidationRule() : this(
ValidationStep
.RawProposedValue, false)
44
protected ValidationRule(
ValidationStep
validationStep, bool validatesOnTargetUpdated)
59
case
ValidationStep
.UpdatedValue:
60
case
ValidationStep
.CommittedValue:
76
public
ValidationStep
ValidationStep
93
ValidationStep
_validationStep;
System\Windows\Data\BindingExpression.cs (14)
1550
case
ValidationStep
.RawProposedValue:
1557
case
ValidationStep
.ConvertedProposedValue:
1558
case
ValidationStep
.UpdatedValue:
1559
case
ValidationStep
.CommittedValue:
2045
internal override bool Validate(object value,
ValidationStep
validationStep)
2050
if (validationStep ==
ValidationStep
.UpdatedValue)
2078
else if (validationStep ==
ValidationStep
.CommittedValue)
2092
internal override bool CheckValidationRules(BindingGroup bindingGroup,
ValidationStep
validationStep)
2100
case
ValidationStep
.RawProposedValue:
2103
case
ValidationStep
.ConvertedProposedValue:
2106
case
ValidationStep
.UpdatedValue:
2107
case
ValidationStep
.CommittedValue:
2129
bool isValid = Validate(rawValue,
ValidationStep
.RawProposedValue);
2145
isValid = Validate(convertedValue,
ValidationStep
.ConvertedProposedValue);
System\Windows\Data\BindingExpressionBase.cs (7)
1072
if (!Validate(value,
ValidationStep
.RawProposedValue))
1076
if (!Validate(value,
ValidationStep
.ConvertedProposedValue))
1080
if (!Validate(value,
ValidationStep
.UpdatedValue))
1084
if (!Validate(value,
ValidationStep
.CommittedValue))
1151
internal virtual bool Validate(object value,
ValidationStep
validationStep)
1215
internal abstract bool CheckValidationRules(BindingGroup bindingGroup,
ValidationStep
validationStep);
2403
internal ValidationError GetValidationErrors(
ValidationStep
validationStep)
System\Windows\Data\BindingGroup.cs (26)
362
bool result = UpdateAndValidate(
ValidationStep
.CommittedValue);
419
return UpdateAndValidate(
ValidationStep
.ConvertedProposedValue);
434
return UpdateAndValidate(
ValidationStep
.UpdatedValue);
507
case
ValidationStep
.RawProposedValue:
510
case
ValidationStep
.ConvertedProposedValue:
511
case
ValidationStep
.UpdatedValue:
512
case
ValidationStep
.CommittedValue:
524
case
ValidationStep
.RawProposedValue:
525
case
ValidationStep
.ConvertedProposedValue:
526
case
ValidationStep
.UpdatedValue:
527
case
ValidationStep
.CommittedValue:
756
void ClearValidationErrors(
ValidationStep
validationStep)
764
ClearValidationErrorsImpl(
ValidationStep
.RawProposedValue, true);
768
void ClearValidationErrorsImpl(
ValidationStep
validationStep, bool allSteps)
1015
bool UpdateAndValidate(
ValidationStep
validationStep)
1027
PrepareProposedValuesForUpdate(mentor, (validationStep >=
ValidationStep
.UpdatedValue));
1031
for (_validationStep =
ValidationStep
.RawProposedValue;
1037
case
ValidationStep
.RawProposedValue:
1040
case
ValidationStep
.ConvertedProposedValue:
1043
case
ValidationStep
.UpdatedValue:
1046
case
ValidationStep
.CommittedValue:
1057
ResetProposedValuesAfterUpdate(mentor, result && validationStep ==
ValidationStep
.CommittedValue);
1059
_validationStep = (
ValidationStep
)(-1);
1203
if (_validationStep >=
ValidationStep
.UpdatedValue &&
1544
ValidationStep
_validationStep = (
ValidationStep
)(-1);
System\Windows\Data\MultiBindingExpression.cs (10)
576
if (!bindExpr.Validate(value,
ValidationStep
.RawProposedValue))
773
internal override bool Validate(object value,
ValidationStep
validationStep)
790
case
ValidationStep
.RawProposedValue:
835
internal override bool CheckValidationRules(BindingGroup bindingGroup,
ValidationStep
validationStep)
843
case
ValidationStep
.RawProposedValue:
844
case
ValidationStep
.ConvertedProposedValue:
845
case
ValidationStep
.UpdatedValue:
846
case
ValidationStep
.CommittedValue:
855
if (result && validationStep ==
ValidationStep
.CommittedValue)
874
bool isValid = Validate(rawValue,
ValidationStep
.RawProposedValue);
System\Windows\Data\PriorityBindingExpression.cs (2)
422
internal override bool Validate(object value,
ValidationStep
validationStep)
435
internal override bool CheckValidationRules(BindingGroup bindingGroup,
ValidationStep
validationStep)