0

Possible Duplicate:
Convert System.Drawing.Icon to System.Media.ImageSource

I have a WPF app. To display tray icon, I referenced WinForm assemblies and added a few icons to resource, they can be accessed like Properties.Resources.MyIcon with type System.Drawing.Icon. I'd like to display these icons in my main window as well. My question is whether it is possible to directly use these WinForm icons in WPF Image control?

Community
  • 1
  • 1
NS.X.
  • 2,072
  • 5
  • 28
  • 55
  • This previous [answer][1] seems to be exactly what you need. [1]: http://stackoverflow.com/questions/1127647/convert-system-drawing-icon-to-system-media-imagesource – bouvierr Jan 25 '13 at 02:40
  • @bouvierr exactly what I want. I have voted to close my question as dupe. Thanks for the information. – NS.X. Jan 25 '13 at 03:02

0 Answers0