Skip to main content
All docs
V26.1
  • ValidationService Members

    The service that allows you to implement validation in compliance with MVVM.

    Constructors

    Name Description
    ValidationService() Initializes a new instance of the ValidationService class.

    Fields

    Name Description
    AllowAccessibilityAlertsProperty static Identifies the AllowAccessibilityAlerts attached property.
    HasValidationErrorProperty static Identifies the HasValidationError attached property.
    IsValidationContainerProperty static Identifies the IsValidationContainer attached property.
    ValidationErrorsProperty static Identifies the ValidationErrors attached property.
    ValidationServiceProperty static Identifies the ValidationService attached property.

    Methods

    Name Description
    AddEditor(DependencyObject) For internal use.
    GetAllowAccessibilityAlerts(DependencyObject) static Get the value of the ValidationService.AllowAccessibilityAlerts attached property to a specified ValidationService.
    GetHasValidationError(DependencyObject) static Get the value of the ValidationService.HasValidationError attached property to a specified ValidationService.
    GetIsValidationContainer(DependencyObject) static Get the value of the ValidationService.IsValidationContainer attached property to a specified ValidationService.
    GetValidationErrors(DependencyObject) static Get the value of the ValidationService.ValidationErrors attached property to a specified ValidationService.
    GetValidationService(DependencyObject) static Get the value of the ValidationService.ValidationService attached property to a specified ValidationService.
    RemoveEditor(DependencyObject) For internal use.
    SetAllowAccessibilityAlerts(DependencyObject, Boolean) static Set the value of the ValidationService.AllowAccessibilityAlerts attached property to a specified ValidationService.
    SetIsValidationContainer(DependencyObject, Boolean) static Set the value of the ValidationService.IsValidationContainer attached property to a specified ValidationService.
    UpdateEditor(DependencyObject) For internal use.

    Attached Properties

    Name Description
    AllowAccessibilityAlerts static Specifies whether to enable UI Automation-based accessibility alerts for validation errors. This is an attached property.
    HasValidationError static Indicates whether validation has failed. This is an attached property.
    IsValidationContainer static Allows you to to catch validation errors within a visual container. This is an attached property.
    ValidationErrors static Returns a collection of validation errors. This is an attached property.
    ValidationService static For internal use.
    See Also