title: Display Icon in WPF Image
body: <p>I have a WPF application that needs to extract the icon off of an executable.</p>
  
  <p>I found <a href="https://stackoverflow.com/questions/203456/how-can-i-get-the-icon-from-the-executable-file-only-having-an-instance-of-its-p">here</a> that I can do this</p>
  
  <pre><code>Icon ico = Icon.ExtractAssociatedIcon(theProcess.MainModule.FileName);
  </code></pre>
  
  <p>but when I try to set the source of a WPF Image I get</p>
  
  <blockquote>
    <p>"Cannot implicitly convert type 'System.Drawing.Icon' to 'System.Windows.Media.ImageSource'    </p>
  </blockquote>
  
  <p>Any suggestions ?</p>