JS Guru
JS Guru

Reputation: 393

How to change the icon that will be displayed on taskbar

In my WPF I set the application icon like below. Project property -> Application tab -> Resources Icon and manifest enter image description here

So I can see this icon on the wpf windows. but the icon of taskbar is default icon. How can I set it with application icon.

Application icon

enter image description here

Taskbar icon

enter image description here

Upvotes: 0

Views: 2000

Answers (2)

JS Guru
JS Guru

Reputation: 393

My project is the packaged application of WPF app. In Images folder of Windows Application Packaging App, there are several default images. enter image description here

I replaced them with my custom images.

enter image description here

So that I could resolve the task bar icon problem.

Upvotes: 0

awoodhead
awoodhead

Reputation: 87

Setting the icon via XAML:

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

Also be sure to build in release mode to double check your success, as there are some cases where a debug build does not apply icons (for reasons i do not know).

Upvotes: 0

Related Questions