App Icon and name Taskbar

Eduardo Gomez 3,671 Reputation points
2025-04-04T18:00:12.2933333+00:00

I finished developing my app in winUI

User's image

And as you can see, I have a name and a logo

https://github.com/eduardoagr/NanoFlow

but I have this tiny problem

User's image

In the taskbar thumbnail, is still WinUI for desktop and no ion

Windows development | Windows App SDK
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Michael Taylor 60,326 Reputation points
    2025-04-04T18:27:32.7433333+00:00

    You have created your own custom titlebar. Windows has no knowledge of this customization and is using what the underlying Window actually sees as the title bar. In your ConfigureCustomTitlebar function you are telling the system that your custom content is going to extend over into the titlebar. You then use your custom control to make it look like the title bar when in fact it is just a control, that Windows has no knowledge of, hiding the standard title bar, that Windows does know about. If you were to show the actual title bar you'd see it lines up with what the hover image shows.

    To get this to work you'll need to ensure that the underlying title bar that Windows does recognize uses the same settings that your custom titlebar is using. I haven't tried creating a custom titlebar with WinUI but it seems like you should be able to just set the main window's Title property to whatever your app title is. I assume the app title won't change for the life of the app so you can likely do this in your customization of the title bar as well.

    Unfortunately that is the extent of my knowledge on custom titlebars. If you really don't need the customizations then just use the standard title bar instead. Setting the title and icon don't require customizations.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.