Set app icons via Manifest vs Programmatically #8361
Replies: 2 comments 11 replies
-
For icons that appear in start or for pinned icons, the displayed icon is always obtained from the shortcut. |
Beta Was this translation helpful? Give feedback.
-
Thank you! This answers my question. I have another one, closely related: for my WinUI3 app, I want an icon to appear in the task bar, but disappear from the window title bar. This screen shot shows the desired behaviour: This is a screen shot of a packaged app where I defined my icons via a manifest, and then I call this function to remove the icon just from the window title bar:
So, for packaged apps this works. However, for unpackaged apps this trick only works for the default app icon (when I haven't set the custom icon via SetIcon). Once I have set my custom icon programmatically, this trick with EX window styles no longer works. This is a screen shot from the same app but unpackaged variant: To reiterate the code is identical for both screen shots (both call HideTitleBarIcon) and the only difference is packaged/unpackaged. This hints at that even programmatically, icons are handled differently in packaged vs unpackaged. |
Beta Was this translation helpful? Give feedback.
-
I can set app icons (eg title bar, task bar) via Manifest for packaged apps, but haven't figured out if this is possible for unpackaged, or programmaticaly is the only way here? Thank you!
Beta Was this translation helpful? Give feedback.
All reactions