microsoft / microsoft-ui-xaml

Windows UI Library: the latest Windows 10 native controls and Fluent styles for your applications
MIT License
6.32k stars 676 forks source link

App icon not updated in Task View (Win+Tab) or Task Switcher (Alt+Tab) #6104

Open jess-rod opened 2 years ago

jess-rod commented 2 years ago

Describe the bug

Despite having customized all the app icons (for all scales, unplated, light unplated...), the icon that shows when pressing Alt+Tab or Windows+Tab is the default (not the customized) icon.

The customized icon does show on the taskbar, start menu (tiles)...

Docs reference.

Steps to reproduce the bug

  1. Create a WinUI desktop app.
  2. Generate all the assets using Visual Studio Asset Generator.
  3. Debug the app (F5), or deploy the app, the result is the same.
  4. Press Alt+Tab (or Windows+Tab).
  5. See the default icon.

Expected behavior

  1. See the customized icon.

Screenshots

No response

NuGet package version

WinUI 3 - Windows App SDK 0.8: 0.8.0 (If you're seeing your issue in older previews of WinUI 3, please try this release)

Windows app type

Device form factor

Desktop

Windows version

October 2020 Update (19042)

Additional context

No response

JaiganeshKumaran commented 2 years ago

@jess-rod Alt+Tab and Windows+Tab shows the icon for the window, not the app itself. Unlike UWP, where the icon is already set from the app manifest for the window and can't be a different one, WinUI 3 desktop doesn't automatically set the icon from the app manifest for the window.

pratikone commented 1 year ago

I tried it out and can confirm it. Thanks for posting this. @gabbybilka @MikeHillberg we can explore behavior when a user sets app icon whether to display it as window icon or not. Could be a sub-feature request than a bug. hence, marking it accordingly.

stevenbrix commented 10 months ago

almost every windows app in the world shows the app icon here, it would be nice to have the default behavior do that

agat366 commented 8 months ago

Yeah, I am just laughing out loud again and again about how Microsoft is "attentive" to its own "native" (yep, in quotes) system! That's just ridiculous how buggy and hard for implementation are many primitive features of "native" Windows platform for, again, "native" (once again in quotes) developers. I guess, this is really some sort of Conspiracy Theory which states that Microsoft tries to get rid of its native devs to migrate them to Apple or other mobile and desktop platforms. For years! (And actually results of Apple ecosystem expansion are quite obvious for the previous years!) They are like whispering to us: "Guys, please use our perfect cross-platform MAUI, but don't even think to release them for Windows! Don't waste your lives! iOS, MacOS, maybe some Linux... They are much cooler and more reliable, but please, please, I am begging you, just forget Windows! Use our cloud as it's run on Linux, but Windows is now 19th century, so be cool and modern instead!" lol

That seems started from the times when MS had been "bitten" by Nokia, so from mobile devs they started to hate any other Windows native devs! It's like a competition like "Hm... Are you still here? Is your Target 10.0.22621.0?! Are you insane? Alrighty then! Here is some new "surprise" for you, so think about your nasty behavior once again!" 8-[]

Earlier, when Winforms got released, it was really a joy for devs when you could do just anything basic you need with "one click". But now not even that is hard for Windows SDK apps to change their icons, but they don't even change in Tasks View! What's more important, this issue had been created in 2021, and it's 2024 now, and still no progress with that!

Sometimes WinUI projects when created "out of the box" with VS default templates can't even get compiled with any clear information about the reason what caused an error! O.M.G.!

So, please!.. Just don't!.. )))