-
Notifications
You must be signed in to change notification settings - Fork 803
Open
Labels
area-Iconarea-TitleBarIssues related to custom window title bars.Issues related to custom window title bars.
Description
Describe the bug
Hello,
Why doesn't the parameter ApplicationIcon in the .csproj file work as its name suggests with a WinUI3 Unpackaged App ?
MyProj.csproj
<ApplicationIcon>Assets\icon_name.ico</ApplicationIcon>I have to use a small snippet of code to fix this "bug" :
private void LoadIcon(string iconName)
{
this.AppWindow.SetIcon(Path.Combine(AppContext.BaseDirectory, $"Assets/{iconName}.ico"));
}When the LoadIcon function is not called, my application takes the default icon (Win32)
Here’s how it appears on the taskbar:
And here’s how it looks on the window bar:
Am I doing something wrong or is it a bug ?
Thanks
Quentin
Steps to reproduce the bug
1/ Set the ApplicationIcon parameter on the XAML file
<ApplicationIcon>Assets\icon_name.ico</ApplicationIcon>2/ Run/Launch the application
Here’s how it appears on the taskbar:
And here’s how it looks on the window bar:
Expected behavior
No response
Screenshots
NuGet package version
Windows App SDK 1.6.3: 1.6.250108002
Packaging type
Unpackaged
Windows version
WIN11 10.0.26100.0
IDE
Visual Studio 2022
Additional context
No response
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
area-Iconarea-TitleBarIssues related to custom window title bars.Issues related to custom window title bars.

