WPF: Dictionary Value Converter - Arik Poznanski's Blog(blogs.microsoft.co.il)

submitted by arikparikp(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!

1 comment |category: |Views: 7

tags: another

new Add a live kick counter to your blog >> liveImage

You can even customize the image by choosing your own colors, and then clicking the button below to update the preview and the html code:

  • "Kick It" text
  • "Kick It" background
  • kick count text
  • kick count background
  • border

Simply copy and paste this HTML into your blog post.


Users who kicked this story:
Comments:

posted by dpetersondpeterson(4397) 9 months, 16 days ago 0

Very handy, thanks for this

Reply

information Login or create an account to comment on this story