1.

Can you explain value convertor in WPF?

Answer»

With WPF binding, you can bind two WPF UI objects and flow data between them. Objects emitting data are called sources, and objects accepting them are called targets.

ValueConverter is a piece of code that CONVERTS values from the source TYPE to the target type and back again, so you can databind PROPERTIES that have incompatible types. A value converter implements IValueConverter, a simple interface that provides two methods: Convert() and ConvertBack(). As a bridge between the source and target, WPF converters PROVIDE a way to convert data if the target and source have different data formats.



Discussion

No Comment Found