0

I have observed strange case. I build WPF app and I tried to change Window.Icon dynamically during runtime so that the icon is being changed in task bar (not only in window title). I change it programmatically by assigning ImageSource to Window.Icon property.

Normally it works as I expect, but when I create shortcut to this app under Windows (7) the icon is not being changed in the task bar and instead of this I see icon which comes from that shortcut. (in window title the icon changes independently)

Can anybody help to resolve it?

H.B.
  • 166,899
  • 29
  • 327
  • 400
Bronek
  • 10,722
  • 2
  • 45
  • 46

1 Answers1

0

I believe you can also set the Icon in the project properties, in the application tab under the resources group.

I Don't know if this applies to the shortcut, but you could try that.

Ruben Verschueren
  • 822
  • 13
  • 28