26 references to ValidationState
System.Data (26)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Validation\ValidationService.cs (18)
48
AttachedProperty<
ValidationState
> validationStateProperty;
210
this.validationStateProperty = new AttachedProperty<
ValidationState
>()
229
ValidationState
GetValidationState(ModelItem modelItem)
231
ValidationState
validationState =
ValidationState
.Valid;
427
ValidationErrorState validationError = new ValidationErrorState(new List<string>(),
ValidationState
.Error);
432
this.ValidationErrors[rootActivity].ValidationState =
ValidationState
.Error;
658
currentError = new ValidationErrorState(new List<string>(),
ValidationState
.Valid);
668
ValidationState
childValidationState = GetValidationState(validationError);
769
private static
ValidationState
GetValidationState(ValidationError validationError)
771
return validationError.IsWarning ?
ValidationState
.Warning :
ValidationState
.Error;
776
return new ValidationErrorState(new List<string> { SR.ChildValidationError },
ValidationState
.ChildInvalid);
781
if (originalError.ValidationState ==
ValidationState
.ChildInvalid)
788
ValidationState
errorState = GetValidationState(newError);
1006
internal AttachedProperty<
ValidationState
> ValidationStateProperty
1024
internal ValidationErrorState(List<string> errorMessages,
ValidationState
validationState)
1031
internal
ValidationState
ValidationState { get; set; }
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\View\VisualBasicEditor.xaml.cs (8)
56
internal static readonly DependencyProperty ValidationStateProperty = DependencyProperty.Register("ValidationState", typeof(
ValidationState
), typeof(VisualBasicEditor),
57
new FrameworkPropertyMetadata(
ValidationState
.Valid));
762
internal
ValidationState
ValidationState
764
get { return (
ValidationState
)GetValue(VisualBasicEditor.ValidationStateProperty); }
778
ValidationState
state = this.ValidationService.ValidationStateProperty.Getter(this.Expression);
779
hasErrors = state ==
ValidationState
.Error;
1220
this.ValidationState =
ValidationState
.Valid;
1242
this.ValidationState =
ValidationState
.Valid;