类型转换器和值转换器之间的区别

类型转换器和值转换器之间的区别

问题描述:

我刚刚开始学习WPF并遇到了扩展,类型转换器和值转换器。



这些有什么区别?它们都将一种对象类型转换为另一种。在网上阅读了一些样本后,我认为Type转换器可以用值转换器替换,反之亦然。



我尝试了什么:



搜索文档和解释

I have just started learning WPF and came across markup extensions, Type Converters and Value converters.

What is the difference between these? They both convert one object type to other. After reading some samples on web I think Type converter can be replaced with value converters and vice versa.

What I have tried:

Searching for documentaion and explanations