aybe
aybe

Reputation: 16652

Application icon is correct in taskbar, but not in the start menu?

The application icon is shown correctly on the taskbar:

Enter image description here

But on the start menu it is not:

Enter image description here

The icon has been defined in XAML like this:

<Window Icon="icon.png">

And application is published using ClickOnce from Build, Publish menu in Visual Studio.

What is missing to properly show the application in the start menu?

Upvotes: 2

Views: 2134

Answers (1)

Reed Copsey
Reed Copsey

Reputation: 564323

You need to setup the Icon for the Application, not just the Window. The Window icon is used for the Taskbar at runtime, and can be customized per window within your application. The Application icon is used by default for the application as a whole, and gets used for shortcuts in the start menu.

The application icon is set in the Application Properties, under the "Application" section.

Under Resources, you can set the Icon and manifest to use your Icon for the Application itself, which is what will get used for the start menu. The default selection is (Default Icon), which provides you the icon you're seeing.

Upvotes: 5

Related Questions