[This is preliminary documentation and is subject to change.]

Gets a value that indicates whether any binding on given lement or any of its logical children has a ValidationError.

Namespace: Tools.WindowsT.WPF
Assembly: Tools.Windows (in Tools.Windows.dll) Version: 1.5.3.38916 (1.5.3.38916)

Syntax

C#
public static bool HasErrors(
	this DependencyObject parent
)
Visual Basic
<ExtensionAttribute> _
Public Shared Function HasErrors ( _
	parent As DependencyObject _
) As Boolean
Visual C++
[ExtensionAttribute]
public:
static bool HasErrors(
	DependencyObject^ parent
)
F#
static member HasErrors : 
        parent:DependencyObject -> bool 
JScript
public static function HasErrors(
	parent : DependencyObject
) : boolean

Parameters

parent
Type: System.Windows..::..DependencyObject
The element to check recursivelly for validation errors

Return Value

True if the HasErrorProperty attached property is true for parent or any of its logical children

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type DependencyObject. When you use instance method syntax to call this method, omit the first parameter. For more information, see or .

Exceptions

ExceptionCondition
System..::..ArgumentNullExceptionparent is null

See Also

Collapse/expand Version History

1.5.3

  • This function is new in version 1.5.3