Click here to Skip to main content
15,880,469 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have created an .ico for my application in WPF, I included the following resolutions in it: 16x16, 24x24, 32x32, 48x48 and 256x256.

The icon of the application is displayed correctly in every place except for the taskbar...
trying to find whats going on I created a test .ico that includes all resolutions from 16x16 to 32x32, It turns out that for the taskbar, windows 10 do not use the 24x24 as it fits... but they resize the 32x32...
is there any workaround for this issue? probably there is... or how other programs have crispy icons in the taskbar...

I also found this thread from 2015 which also addresses the same issue:
Taskbar scales down icons, using larger sizes and making them blurry - Microsoft Community[^]

seems like nothing changed since then

Thanks in advance

What I have tried:

nothing yet nothing yet nothing yet
Posted
Updated 7-Oct-22 8:26am

 
Share this answer
 
Comments
tool__ 26-Mar-19 7:53am    
thanks for your answer, I don't think that thread contains a solution, I found some things to try, if i solve it i will post it here.
In WinForms application you can overcome this by setting the form icon in runtime:
C#
this.Icon = new Icon(@"MyIcon.ico", new Size(24, 24));

Maybe something similar will work for WPF too.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900