IValueConverter.Convert Method (Object, Type, Object, CultureInfo)
Converts a value.
Assembly: PresentationFramework (in PresentationFramework.dll)
object Convert( object value, Type targetType, object parameter, CultureInfo culture )
The value produced by the binding source.
The type of the binding target property.
The converter parameter to use.
The culture to use in the converter.
Return ValueType: System.Object
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 source to the binding target.
The data binding engine does not catch exceptions that are thrown by a user-supplied converter. Any exception that is thrown by the DependencyProperty.UnsetValue.method, or any uncaught exceptions that are thrown by methods that the method calls, are treated as run-time errors. Handle anticipated problems by returning
Available since 3.0
Available since 2.0
Windows Phone Silverlight
Available since 7.0