The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

Binding.ValidatesOnExceptions Property

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

Gets or sets a value that indicates whether the binding engine will report exception validation errors.

Namespace:  System.Windows.Data
Assembly:  System.Windows (in System.Windows.dll)
XMLNS for XAML: Not mapped to an xmlns.

public bool ValidatesOnExceptions { get; set; }
<Binding ValidatesOnExceptions="bool"/>

Property Value

Type: System.Boolean
true if the binding engine will report exception validation errors; otherwise, false. The default is false.


The Binding has already been attached to a target element, and cannot be modified.

Setting ValidatesOnExceptions to true tells the binding engine to catch exceptions that occur when updating the source object from the target in TwoWay bindings. The exceptions can occur in two ways:

1. Thrown from the source object's setter function.

2. Thrown by the type converter.

In order to receive notification that these exceptions have occurred, you must set the NotifyOnValidationError property to be true.

If this property is set to false, the application will silently fail on validation exceptions.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone