Shamim Hafiz - MSFT
Shamim Hafiz - MSFT

Reputation: 22114

Selected Icon Not being Applied on WPF App

I have changed the icon in the Main Project Properties Icon and Manifest option. Yet, after running the App, the default Icon is what shows up.

Any idea why such odd behavior will occur?

Upvotes: 8

Views: 12161

Answers (2)

shakram02
shakram02

Reputation: 11886

The icon doesn't show in debug / release mode, you need to run the application using ctrl+F5, source

Upvotes: 11

Thorsten Dittmar
Thorsten Dittmar

Reputation: 56727

Does the default icon show up in the explorer or does it show up in the taskbar buttons? In case of the latter: change the icon for the forms as well, as the task bar button icon is not retrieved from the exe file, but from the form's Icon property.

For WPF applications, use the attribute

Icon="Images\Logo.ico"

for the Window element in XAML to have the window show the icon.

Upvotes: 18

Related Questions