I have a simple WPF app. I have a nice multi-res icon with sizes all the way from 256x256 down to 16x16. All the usual stuff.
My app looks awesome in Windows Explorer, the icon looks awesome, even at Extra Large view. The icons scale nicely and I see the appropriate icon for the appropriate resolution.
However, the 48x48 is always used for the pinned taskbar or pinned start menu and it looks awful.
I can't find anything about this in the usual locations, but my gut says that someone must know something and I'm just missing something obvious.
You can actually change this via the Settings. Right click on the Taskbar and select Taskbar Settings. It should bring you to Personalization window and select the Taskbar tab. Make sure to turn off the "Use small taskbar buttons."
Taskbar icons seem to get blurry as soon as a 48x48 pixels version is included in the .ico file. Instead of picking the correctly sized 32x32 pixels version, for some reason Windows apparently picks the 48x48 one and scales it up.
The solution for me is to use two separate icon files:
Icon
property in XAML or Hannish's approach, be used for the titlebar and taskbar respectively - without unwanted scaling.Testing on Windows 10, this seems to cover the following display cases: taskbar, window titlebar, Alt-TAB menu, Desktop and file explorer.
The icon size that is displayed in your taskbar is determined by a variety of factors; 'MinWidth' value of HKEY_CURRENT_USER|Control Panel|Desktop|WindowMetrics, DPI settings, and taskbar settings.
48x48 is chosen because the default 'MinWidth' setting is (i believe) 53, and the 48x48 is the largest resolution in your icon that fits within that setting.
if you are unhappy with the way the 48x48 icon looks, it may just need re-designed. Be sure it is using the correct number of colors, etc. How do the small icons look? As bad or worse than the 48x48? if so, then perhaps the icon is too complex to look good at such a small resolution.
I know of no way to force windows to select a different icon size for the taskbar.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With