Export (0) Print
Expand All

MultiBinding.ValidationRules Property

Gets the collection of ValidationRule objects for this instance of MultiBinding.

Namespace:  System.Windows.Data
Assembly:  PresentationFramework (in PresentationFramework.dll)
XMLNS for XAML: http://schemas.microsoft.com/winfx/2006/xaml/presentation, http://schemas.microsoft.com/netfx/2007/xaml/presentation

member ValidationRules : Collection<ValidationRule> with get

XAML Values


One or more ValidationRule objects. You can use the ExceptionValidationRule class or create your custom rules by subclassing the ValidationRule class.

Property Value

Type: System.Collections.ObjectModel.Collection(ValidationRule)
The collection of ValidationRule objects for this instance of MultiBinding.

You can set validation rules on both the MultiBinding object and the individual Binding objects in the MultiBinding object. The binding engine evaluates the ValidationRules on the MultiBinding object when a value moves from the binding target property to the IMultiValueConverter object. After that, when a value moves from the converter to the binding source property of an individual binding, the binding engine evaluates the ValidationRules on that Binding object.

For more information about the validation process and how to provide visual feedback upon invalidation, see "Data Validation" in Data Binding Overview.


This property can be set in Extensible Application Markup Language (XAML) only by using the syntax shown, or by accessing the collection object and using its various methods, such as Add. The property used to access the collection object is read-only, whereas the collection itself is read-write.

.NET Framework

Supported in: 4.5, 4, 3.5, 3.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

© 2014 Microsoft