0
kicks
WPF: Dictionary Value Converter - Arik Poznanski's Blog
You want to convert an enum value to a bitmap image. That’s easy, here’s a solution
Usually you would simply create a new value converter which has some custom code (e.g. a switch –case statement) to convert from the enum value to the relevant image.Is there a better solution?
How many times have you written this kind of converter, the kind that takes a value and maps it to another value?
Well, no more!