Export (0) Print
Expand All

Binding.ConverterParameter Property

Updated: April 2009

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 function get ConverterParameter () : Object 
public function set ConverterParameter (value : Object)
<object>
  <object.ConverterParameter>
    <Object .../>
  </object.ConverterParameter>
</object>

Property Value

Type: System.Object
The parameter to pass to the Converter. The default is a null reference (Nothing in Visual Basic).

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. Although that example shows an implementation of an IMultiValueConverter, the usage still applies.

Windows 7, Windows Vista, Windows XP SP2, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003

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

.NET Framework

Supported in: 3.5, 3.0

Date

History

Reason

April 2009

Added remarks that explain how to use this property.

Customer feedback.

Community Additions

ADD
Show:
© 2015 Microsoft