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.
To add an icon to a project, right click on the project name in Solution Explorer. Right click will open Add Items menu. Select Add >> New Item. Now on Installed Templates, select Icon File (see Figure 1) and click Add.
On the menu bar, choose Project > Properties. When the Project Designer appears, choose the Application tab. (Visual Basic)—In the Icon list, choose an icon (.
Have you tried to force icon
<Window Icon="youricon.ico"></Window>
http://msdn.microsoft.com/en-us/library/system.windows.window.icon.aspx
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With