I had the same problem, it didnβt even work with the multi-sized .ico file. Setting the icon directly in the window led to the appearance of the icon.
I managed to fix this with this code for the application window:
private void Window_Loaded(object sender, RoutedEventArgs e) { Uri iconUri = new Uri("pack://application:,,,/Images/myicon.ico", UriKind.RelativeOrAbsolute);
The icon file is multidimensional, it worked for me in WPF - Windows 10.
You can convert your .png icon to a multidimensional .ico file here http://icoconvert.com/
Hannish
source share