Converter. Convert Back(Object, Type, Object, CultureInfo) Method
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Converts a value.
public: System::Object ^ ConvertBack(System::Object ^ value, Type ^ targetType, System::Object ^ parameter, System::Globalization::CultureInfo ^ culture);
public object ConvertBack (object value, Type targetType, object parameter, System.Globalization.CultureInfo culture);
abstract member ConvertBack : obj * Type * obj * System.Globalization.CultureInfo -> obj
Public Function ConvertBack (value As Object, targetType As Type, parameter As Object, culture As CultureInfo) As Object
The value that is produced by the binding target.
The type to convert to.
The converter parameter to use.
The culture to use in the converter.
A converted value. If the method returns
null, the valid null value is used.
The data binding engine calls this method when it propagates a value from the binding target to the binding source.
The implementation of this method must be the inverse of the Convert method.
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 DependencyProperty.UnsetValue.