Search code examples
c#wpf

How to define single icon for main window and exe file?


Usually I have to set 2 different icons. One in the project's settings tab, and one to the Icon property of main window. Is there a way to define single icon for the whole application (all windows and exe)?

Update: to be more concrete. I have app that is 100kb in size. I want to embed icon that is 300kb in size and want my app to be 400kb instead of 700


Solution

  • You need to set the icon in your project's properties:

    enter image description here

    For taskbar you need to change your main window's Icon: enter image description here