Situation: Implementing a WPF application with VS 2012 and added a custom icon to the main window with tag Icon="images\myIcon.gif">
.
When starting the WPF application out of VS 2012 with CTRL + F5
the icon will be shown in the taskbar and in the left top corner of the main window.
Problem: I published my application with VS 2012's publishing wizard (One Click installing routine) and installed the application on my computer. When starting the installed application the left top icon ist still shown in the main window, but the taskbar icon not. Instead a windows default icon is shown.
Question: Does someone know what the problem is or what I have been missing?
From the Start menu or apps list, press and hold (or right-click) an app, then, if available, select Pin to taskbar . From the Start menu or apps list, press and hold (or right-click) an app, then select More > Pin to taskbar .
Simple Reasons for Icons Not Showing You can do so by right-clicking on the desktop, selecting View and verify Show desktop icons has a check beside it. If it's just the default (system) icons you seek, right-click the desktop and choose Personalize. Go into Themes and select Desktop icon settings.
A quick first step when you have any taskbar issue in Windows is to restart the explorer.exe process. This controls the Windows shell, which includes the File Explorer app as well as the taskbar and Start menu. Restarting it can thus clear up any minor hiccups, such as your taskbar not working.
From Microsoft Docs:
Windows Presentation Foundation (WPF) standalone applications have two types of icons:
One assembly icon, which is specified by using the property in the application's project build file. This icon is used as the desktop icon for an assembly.
One icon per window that is specified by setting Icon. For each window, this icon is used in its title bar, its task bar button, and in its ALT-TAB application selection list entry.
If you want to display an icon in the taskbar, you need to set the assembly/application icon:
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With