views:

207

answers:

1

I need to display favicon.ico files fetched from arbitrary Web Sites as a BitmapImage in a Silverlight 3 application but Silverlight 3's BitmapImage only supports PNG and JPG. Any suggestions?

+1  A: 

Since this feature is not built into Silverlight, you'll need to do the decoding yourself.

Consider using the icon decoder implementation from Joe Stegman's blog at http://blogs.msdn.com/jstegman/archive/2009/09/13/silverlight-ico-icon-decoder-parser.aspx

Jeff Wilcox
Spot on Jeff and thanks for the Unit Testing Framework :)
Oliver Weichhold