68 references to ValidationStep
PresentationFramework (68)
src\Framework\System\Windows\Controls\ConversionValidationRule.cs (1)
32
internal ConversionValidationRule() : base(
ValidationStep
.ConvertedProposedValue, false)
src\Framework\System\Windows\Controls\DataErrorValidationRule.cs (1)
37
public DataErrorValidationRule() : base(
ValidationStep
.UpdatedValue, true)
src\Framework\System\Windows\Controls\NotifyDataErrorValidationRule.cs (1)
37
public NotifyDataErrorValidationRule() : base(
ValidationStep
.UpdatedValue, true)
src\Framework\System\Windows\Controls\ValidationRule.cs (6)
44
protected ValidationRule() : this(
ValidationStep
.RawProposedValue, false)
52
protected ValidationRule(
ValidationStep
validationStep, bool validatesOnTargetUpdated)
67
case
ValidationStep
.UpdatedValue:
68
case
ValidationStep
.CommittedValue:
84
public
ValidationStep
ValidationStep
101
ValidationStep
_validationStep;
src\Framework\System\Windows\Data\BindingExpression.cs (14)
1544
case
ValidationStep
.RawProposedValue:
1551
case
ValidationStep
.ConvertedProposedValue:
1552
case
ValidationStep
.UpdatedValue:
1553
case
ValidationStep
.CommittedValue:
2068
internal override bool Validate(object value,
ValidationStep
validationStep)
2073
if (validationStep ==
ValidationStep
.UpdatedValue)
2101
else if (validationStep ==
ValidationStep
.CommittedValue)
2115
internal override bool CheckValidationRules(BindingGroup bindingGroup,
ValidationStep
validationStep)
2123
case
ValidationStep
.RawProposedValue:
2126
case
ValidationStep
.ConvertedProposedValue:
2129
case
ValidationStep
.UpdatedValue:
2130
case
ValidationStep
.CommittedValue:
2152
bool isValid = Validate(rawValue,
ValidationStep
.RawProposedValue);
2168
isValid = Validate(convertedValue,
ValidationStep
.ConvertedProposedValue);
src\Framework\System\Windows\Data\BindingExpressionBase.cs (7)
1084
if (!Validate(value,
ValidationStep
.RawProposedValue))
1088
if (!Validate(value,
ValidationStep
.ConvertedProposedValue))
1092
if (!Validate(value,
ValidationStep
.UpdatedValue))
1096
if (!Validate(value,
ValidationStep
.CommittedValue))
1163
internal virtual bool Validate(object value,
ValidationStep
validationStep)
1226
internal abstract bool CheckValidationRules(BindingGroup bindingGroup,
ValidationStep
validationStep);
2413
internal ValidationError GetValidationErrors(
ValidationStep
validationStep)
src\Framework\System\Windows\Data\BindingGroup.cs (26)
369
bool result = UpdateAndValidate(
ValidationStep
.CommittedValue);
426
return UpdateAndValidate(
ValidationStep
.ConvertedProposedValue);
441
return UpdateAndValidate(
ValidationStep
.UpdatedValue);
514
case
ValidationStep
.RawProposedValue:
517
case
ValidationStep
.ConvertedProposedValue:
518
case
ValidationStep
.UpdatedValue:
519
case
ValidationStep
.CommittedValue:
531
case
ValidationStep
.RawProposedValue:
532
case
ValidationStep
.ConvertedProposedValue:
533
case
ValidationStep
.UpdatedValue:
534
case
ValidationStep
.CommittedValue:
763
void ClearValidationErrors(
ValidationStep
validationStep)
771
ClearValidationErrorsImpl(
ValidationStep
.RawProposedValue, true);
775
void ClearValidationErrorsImpl(
ValidationStep
validationStep, bool allSteps)
1022
bool UpdateAndValidate(
ValidationStep
validationStep)
1034
PrepareProposedValuesForUpdate(mentor, (validationStep >=
ValidationStep
.UpdatedValue));
1038
for (_validationStep =
ValidationStep
.RawProposedValue;
1044
case
ValidationStep
.RawProposedValue:
1047
case
ValidationStep
.ConvertedProposedValue:
1050
case
ValidationStep
.UpdatedValue:
1053
case
ValidationStep
.CommittedValue:
1064
ResetProposedValuesAfterUpdate(mentor, result && validationStep ==
ValidationStep
.CommittedValue);
1066
_validationStep = (
ValidationStep
)(-1);
1210
if (_validationStep >=
ValidationStep
.UpdatedValue &&
1560
ValidationStep
_validationStep = (
ValidationStep
)(-1);
src\Framework\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);
src\Framework\System\Windows\Data\PriorityBindingExpression.cs (2)
432
internal override bool Validate(object value,
ValidationStep
validationStep)
445
internal override bool CheckValidationRules(BindingGroup bindingGroup,
ValidationStep
validationStep)