5

Possible Duplicate:
WPF Icon for all app windows

I have a wpf application, I want to set the icon for all the windows.

I have and ico file in my project folder /img/app.ico, but it is build action = Resource.

I change the application Icon and manifest to /img/app.ico, but it won't work.

An error is prompt when compiling:

The img/app.ico is not found.
Community
  • 1
  • 1
Kev Fixes
  • 429
  • 3
  • 7
  • 14

1 Answers1

11

Have you tried to force icon

<Window Icon="youricon.ico"></Window>

http://msdn.microsoft.com/en-us/library/system.windows.window.icon.aspx

COLD TOLD
  • 13,513
  • 3
  • 35
  • 52
  • This works nicely. Remember to add the image to your Visual Studio project, or else it will not be able to find it's embedded resource. – Contango Jan 13 '15 at 11:08