Partager via


IValueConverter.ConvertBack Method

Microsoft Silverlight will reach end of support after October 2021. Learn more.

Modifies the target data before passing it to the source object. This method is called only in TwoWay bindings.

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

Syntax

'Declaration
Function ConvertBack ( _
    value As Object, _
    targetType As Type, _
    parameter As Object, _
    culture As CultureInfo _
) As Object
Object ConvertBack(
    Object value,
    Type targetType,
    Object parameter,
    CultureInfo culture
)

Parameters

  • value
    Type: System.Object
    The target data being passed to the source.
  • targetType
    Type: System.Type
    The Type of data expected by the source object.
  • parameter
    Type: System.Object
    An optional parameter to be used in the converter logic.

Return Value

Type: System.Object
The value to be passed to the source object.

Remarks

If UnsetValue is returned, the source object is not updated.

Version Information

Silverlight

Supported in: 5, 4, 3

Silverlight for Windows Phone

Supported in: Windows Phone OS 7.1, Windows Phone OS 7.0

Platforms

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.