Validation.HasError 附加属性

定义

获取一个值,该值指示绑定目标元素上的任一绑定是否具有 ValidationErrorGets a value that indicates whether any binding on the binding target element has a ValidationError.

see GetHasError
see GetHasError
see GetHasError

注解

有关此属性在方案中的行为的信息 MultiBinding ,请参阅 HasErrorFor information about the behavior of this property in MultiBinding scenarios, see HasError.

有关验证的详细讨论,请参阅 数据绑定概述中的 "数据验证" 一节。For a detailed discussion of validation, see the Data Validation section of the Data Binding Overview.

依赖项属性信息Dependency Property Information

标识符字段Identifier field HasErrorProperty
元数据属性设置为 trueMetadata properties set to true IsNotDataBindable

适用于

另请参阅