Version

Convert Method (CalculatedForegroundConverter)

Returns the blended color value resulted from blending the backdrop and the surface using the specified Blend Mode
Syntax
'Declaration
 
Public Overrides Function Convert( _
   ByVal value As Object, _
   ByVal targetType As Type, _
   ByVal parameter As Object, _
   ByVal culture As CultureInfo _
) As Object
public override object Convert( 
   object value,
   Type targetType,
   object parameter,
   CultureInfo culture
)

Parameters

value
The color representing the background color for which the foreground is to be calculated
targetType
The type of the target property. If the targetType is Brush then a SolidColorBrush will be created and returned.
parameter
The color representing the backdrop/background color for the blend operation.
culture
The culture to use for the conversion. This parameter is not used.

Return Value

The blended color or DependencyProperty.UnsetValue if the parameter or value cannot be converted to a color.
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also