Parameter | Details |
---|---|
value | The value produced by the binding source. |
values | The values array, produced by the binding source. |
targetType | The type of the binding target property. |
parameter | The converter parameter to use. |
culture | The culture to use in the converter. |
IValueConverter and IMultiValueConverter - interfaces that provides a way to apply a custom logic to a binding.
These are some of the simple cases, but there are many more.
For cases like this, you can use a value converter. These small classes, which implement the IValueConverter interface or IMultiValueConverter, will act like middlemen and translate a value between the source and the destination. So, in any situation where you need to transform a value before it reaches its destination or back to its source again, you likely need a converter.