Export (0) Print
Expand All

Binding::ConverterParameter Property

Gets or sets the parameter to pass to the Converter.

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

public:
property Object^ ConverterParameter {
	Object^ get ();
	void set (Object^ value);
}
<object>
  <object.ConverterParameter>
    <Object .../>
  </object.ConverterParameter>
</object>

Property Value

Type: System::Object
The parameter to pass to the Converter. The default is nullptr.

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

Supported in: 4.6, 4.5, 4, 3.5, 3.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
Show:
© 2015 Microsoft