Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I change the Icon of WPF application [duplicate]

Tags:

c#

wpf

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.
like image 405
Kev Fixes Avatar asked Nov 08 '12 01:11

Kev Fixes


People also ask

How to set icon in wpf c#?

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.

How do I change the icon for an app in Visual Studio?

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 (.


1 Answers

Have you tried to force icon

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

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

like image 178
COLD TOLD Avatar answered Oct 18 '22 17:10

COLD TOLD