WPF: Dictionary Value Converter - Arik Poznanski's Blog(blogs.microsoft.co.il)
submitted by
arikp(1204) 9 months, 17 days ago
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!
|category: Windows Presentation Foundation
|Views: 7
tags:
WPF another
Everyones tags:
Your Tags: