ColorToBrushConverter.

Convert(object, Type) Method

Summary

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

Syntax

public static object Convert(object value, Type targetType)

Parameters

Name Type Description
value object The value.
targetType Type The target type.

Return Value

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