ConverterParameter Property

Binding.ConverterParameter Property


Gets or sets the parameter to pass to the Converter.

Namespace:   System.Windows.Data
Assembly:  PresentationFramework (in PresentationFramework.dll)

public object ConverterParameter { get; set; }

Property Value

Type: System.Object

The parameter to pass to the Converter. The default is null.

You can use the ConverterParameter property to specify how an object is converted. This property passes additional information to a converter that you use on a binding. When you specify a ConverterParameter, the value is passed to the Convert and ConvertBack methods as the parameter parameter.

For an example, see How to: Produce a Value Based on a List of Bound Items. That example shows an implementation of an IMultiValueConverter but the usage still applies.

.NET Framework
Available since 3.0
Available since 2.0
Windows Phone Silverlight
Available since 7.0
Return to top
© 2015 Microsoft