TXTextControl.WPF.ColorConverter.Convert Method

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


public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture);
[Visual Basic]
Public Function Convert(value As Object, targetType As Type, parameter As Object, culture As CultureInfo) As Object
Member Description

The value produced by the binding source. It must be a System.Drawing.Color value.


The type of the binding target property. It must be System.Windows.Media.Color.


This parameter is not used and can be set to null.


The culture to use in the converter.

Return Value

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

See Also