ConvertBack Method
Collapse the table of content
Expand the table of content

IMultiValueConverter::ConvertBack Method (Object^, array<Type^>^, Object^, CultureInfo^)


Converts a value to the source binding values.GTMT

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

array<Object^>^ ConvertBack(
	Object^ value,
	array<Type^>^ targetTypes,
	Object^ parameter,
	CultureInfo^ culture


Type: System::Object^

The value that the binding target produces.

Type: array<System::Type^>^

The array of types to convert to. The array length indicates the number and types of values that are suggested for the method to return.

Type: System::Object^

The converter parameter to use.

Type: System.Globalization::CultureInfo^

The culture to use in the converter.

Return Value

Type: array<System::Object^>^

An array of values that have been converted from the target value back to the source values.

If there are more return values than there are bindings in the MultiBinding, the excess return values are ignored. If there are more source bindings than there are return values, the remaining source bindings do not have any values set on them. Types of return values are not verified against targetTypes; the values are set on the source bindings directly.

Return DoNothing at position i to indicate that no value is to be set on the source binding at index i.

Return DependencyProperty.UnsetValue at position i to indicate that the converter is unable to provide a value for the source binding at index i, and that no value is to be set on it.

Return null to indicate that the converter cannot perform the conversion or that it does not support conversion in this direction.

The data binding engine does not catch exceptions that are thrown by a user-supplied converter. Any exception that is thrown by the ConvertBack method or any uncaught exceptions that are thrown by methods that the ConvertBack method calls are treated as run-time errors. Handle anticipated problems by returning null.

Legacy Code Example

Code snippet is not found. Confirm that the code snippet name 'HOWDOI' is correct.

.NET Framework
Available since 3.0
Return to top
© 2015 Microsoft