DecimalToStringConvert Method

Converts the binding source to target.

Definition

Namespace: Common.Wpf.Converters
Assembly: Common.Wpf.Resources (in Common.Wpf.Resources.dll) Version: 2.0.6
C#
public override Object Convert(
	Object value,
	Type targetType,
	Object parameter,
	CultureInfo culture
)

Parameters

value  Object
The value produced by the binding source.
targetType  Type
The type of the binding target property.
parameter  Object
An integer containing the number of decimal places (0-10) can be provided in the converter parameter.
The default number of decimal places is 2.
culture  CultureInfo
The culture to use in the converter.

Return Value

Object
A converted value. If the method returns , the valid null value is used.

Implements

IValueConverterConvert(Object, Type, Object, CultureInfo)

Remarks

The data binding engine calls this method when it propagates a value from the binding source to the binding target.

See Also