TXTextControl.WPF.ColorConverter.Convert Method

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

Syntax

[C#]
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
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.

See Also