Converts a System.Drawing.Color value to System.Windows.Media.Color value.

Convert(Object, Type, Object, System.Globalization.CultureInfo)

public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture);
Public Function Convert(value As Object, targetType As Type, parameter As Object, culture As CultureInfo) As Object

Parameters

Parameter Description
value The value produced by the binding source. It must be a System.Drawing.Color value.
targetType The type of the binding target property. It must be System.Windows.Media.Color.
parameter This parameter is not used and can be set to null.
culture The culture to use in the converter.

Return Value

The converted value. The method returns DependencyProperty.UnsetValue, if the conversion is not possible.