microsoft / microsoft/WinUI-Gallery

App icon missing when packaged

Open
#1,512 7 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
C#
Stars
3.7k
Forks
756
Avg merge
17h 51m
Merged PRs (30d)
14

Description

Which version of the app?

WinUI 3 Gallery

Description

In "Windows + TAB" or "ALT + TAB" interface, the title bar icon shows the default icon instead of the app's icon.

Screenshots

Snipaste_2024-03-24_17-56-33

Currently need "AppWindow.SetIcon("xxx")" to solve the problem

I think after setting the icon in "Package.appxmainfest", the titlebar icon should be set at the same time, instead of setting it manually. (SDK optimization suggestion)

Windows version

No response

Additional context

No response

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with Package.appxmanifest and the title-bar initialization that uses AppWindow.SetIcon("xxx"). Reproduce the default icon in the Windows + Tab or Alt + Tab interface, then verify that the packaged app icon is used without manual icon assignment.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
desktop
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
52/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.