Automatically pick the right image (resolution) from .ico library?

Dec 20, 2010 at 12:20 PM

Hi,

I use .ico files with different resolutions of the image stored inside. When I specify the .ico file for .Icon and .LargeIcon properties of the fluent ribbon controls the images are blurry (I guess because they get resized). When I manually extract the images with the proper resolution (e.g. 32x32 png for .LargeIcon), the images are shown correctly. What am I missing here?

  1. I would expect WPF to display the right resolution image from the .ico library. But apparently this is not what happens...
  2. How can I force WPF to pick a certain image resolution from my .ico library? (in XAML only)
  3. If none of the above applies, shouldn't it be nice if the .Icon and .LargeIcon properties from the fluentcontrols are able to automatically pick the right image resolution from an .ico library?

 

Regards,

Bart