display Icon in wpf Image

Posted by irco on Stack Overflow See other posts from Stack Overflow or by irco
Published on 2010-06-03T21:11:49Z Indexed on 2010/06/03 21:14 UTC
Read the original article Hit count: 495

Filed under:
|
|

I have a wpf application that needs to extract the icon off of an executable I found here that i can do this

Icon ico = Icon.ExtractAssociatedIcon(theProcess.MainModule.FileName);

but when I try to set the source of a wpf Image I get "Cannot implicitly convert type 'System.Drawing.Icon' to 'System.Windows.Media.ImageSource'

Any suggestions ?

© Stack Overflow or respective owner

Related posts about c#

Related posts about wpf