ColorToBrushConverter.

Convert(object, Type, object, CultureInfo) Method

Summary

Converts a Color to an IBrush if the arguments are of the correct type.

Syntax

public object Convert(object value, Type targetType, object parameter, CultureInfo culture)

Parameters

Name Type Description
value object The value.
targetType Type The target type.
parameter object Not used.
culture CultureInfo Not used.

Return Value

Type Description
object If value is a Color and targetType is IBrush then converts the color to a solid color brush.