DecimalToStringConvert Method
Converts the binding source to target.
Namespace: Common.Wpf.ConvertersAssembly: Common.Wpf.Resources (in Common.Wpf.Resources.dll) Version: 2.0.6
public override Object Convert(
Object value,
Type targetType,
Object parameter,
CultureInfo culture
)
- 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.
ObjectA converted value. If the method returns
, the valid null value is used.
IValueConverterConvert(Object, Type, Object, CultureInfo) The data binding engine calls this method when it propagates a
value from the binding source to the binding target.