dotnet / maui

.NET MAUI is the .NET Multi-platform App UI, a framework for building native device applications spanning mobile, tablet, and desktop.
https://dot.net/maui
MIT License
22.04k stars 1.73k forks source link

App Title Bar doesn't show the app icon #6908

Open eerhardt opened 2 years ago

eerhardt commented 2 years ago

Description

https://github.com/dotnet/maui/blob/13df56c765a595300d149d8a97011ef800cef73f/src/Core/src/Platform/Windows/Styles/WindowRootViewStyle.xaml#L22-L28

The AppTitleBar template references a file that doesn't exist (Square44x44Logo.png).

We need a way to flow the app icon file to this title bar so the icon can be displayed on the window.

Steps to Reproduce

  1. Create a new Maui project on windows
  2. Try to set the app icon in the title bar of the app
  3. No Icon appears in the title bar when the app is run on Windows.

Version with bug

Release Candidate 2 (current)

Last version that worked well

Unknown/Other

Affected platforms

Windows

Affected platform versions

All

Did you find any workaround?

No response

Relevant log output

No response

VincentBu commented 2 years ago

repro on Windows with vs main build(32511.427.main) I set dotnet bot as the app icon. No icon shows in the title bar. Additionally, it also occurs on Android

ghost commented 2 years ago

We've moved this issue to the Backlog milestone. This means that it is not going to be worked on for the coming release. We will reassess the backlog following the current release and consider this item at that time. To learn more about our issue management process and to have better expectation regarding different types of issues you can read our Triage Process.

Zhanglirong-Winnie commented 10 months ago

Verified this issue with Visual Studio Enterprise 17.9.0 Preview 1.0. Can repro on windows platform.

MartyIX commented 2 months ago

There are two workarounds for this issue:

I'll close my # 23572 issue now.