Using a Windows Forms icon in WPF

Posted by flobadob on Stack Overflow See other posts from Stack Overflow or by flobadob
Published on 2010-06-09T15:13:59Z Indexed on 2010/06/09 16:02 UTC
Read the original article Hit count: 230

Filed under:
|

I've got this WPF code which works...

Uri iconUri = new Uri("pack://application:,,,/media/images/VS.ico", UriKind.RelativeOrAbsolute);
this.Icon = BitmapFrame.Create(iconUri);

I'm using a windows forms notifyIcon control in my WPF app, and I now need to assing the Icon to it. How do I get from my WPF icon to a System.Drawing.Icon ?

© Stack Overflow or respective owner

Related posts about wpf

Related posts about notifyicon