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 Object ConverterParameter { get; set; }
<object>
  <object.ConverterParameter>
    <Object .../>
  </object.ConverterParameter>
</object>

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

Supported in: 4, 3.5, 3.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

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

Community Additions

ADD
Show:
© 2014 Microsoft