Click or drag to resize

NullableBoolToBrushConvert method

Converts a nullable bool into colours (SolidColorBrush): zero: yellow, true: green, false: red.

Namespace: Vishnu.WPF_UI.ValueConverter
Assembly: Vishnu.WPF_UI (in Vishnu.WPF_UI.dll) Version: 1.0.0+df0404e911d6c38eaed3bb1bb1acfc482d417643
Syntax
public Object Convert(
	
	Object[] values,
	
	Type targetType,
	
	Object parameters,
	
	CultureInfo culture
)

Parameters

values  Object
Nullable-Bool and owning FrameworkElement.
targetType  Type
Brush type
parameters  Object
Conversion parameters
culture  CultureInfo
Culture

Return value

Object
SolidColorBrush (yellow, green, red)

Implemented

IMultiValueConverterConvert(ObjectType, Object, CultureInfo)
See also