display Icon in wpf Image
- by irco
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 ?