Binding.Converter Property
Gets or sets the converter object that is called by the binding engine to modify the data as it is passed between the source and target, or vice versa.
Namespace: System.Windows.Data
Assembly: System.Windows (in System.Windows.dll)
<Binding Converter="converterReference"/>
XAML Values
Property Value
Type: System.Windows.Data.IValueConverterThe IValueConverter object that modifies the data.
| Exception | Condition |
|---|---|
| InvalidOperationException |
The Binding has already been attached to a target element, and cannot be modified. |
Create a converter by implementing the IValueConverter interface and implementing the Convert and ConvertBack methods.
XAML Usage Notes
For XAML usage of converters on bindings, see Binding Markup Extension. The use of property element syntax to create an object element that fills a Binding.Converter property element is possible, but uncommon. More common is to create an object element in resources and then reference it by key, using attribute syntax.
For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.