Specify Application Icon with Visual Studio

I have some problems specifying a custom icon in my WPF application. I went to "Properties / Application" and "down" in the resource, where I indicated the icon where the icon is stored (Resources / MyIcon.ico). However, when I launch the application, I get the default icon.

Has anyone else seen similar problems?

+4
source share
1 answer

The icon displayed on the taskbar and on the form is the icon associated with the form, not the application. (In the end, two forms can have two different icons)

You need to change the Icon property of your main window in XAML.

+5
source

All Articles