The icon in the taskbar is looking very ugly in my WPF application.
The designer sent me some PNGs like:
32x32, 64x64, 96x96, 128x128, 192x192, 256x256, 512x512
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 down.
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.