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.28k stars 1.76k forks source link

FontImage not working as an IconImageSource for ToolbarItem on Windows. Regular image format works. #19695

Open egvijayanand opened 11 months ago

egvijayanand commented 11 months ago

Description

FontImage not working as an IconImageSource for ToolbarItem on Windows platform. Regular image format works.

Steps to Reproduce

  1. Clone the sample project
  2. Build the project for the Windows platform
  3. Run the project and notice the difference in the two toolbar items

Link to public reproduction project repository

https://github.com/egvijayanand/maui-issue-19695

Version with bug

8.0.3

Is this a regression from previous behavior?

Not sure, did not test other versions

Last version that worked well

Unknown/Other

Affected platforms

Windows

Affected platform versions

Windows SDK 10.0.19041

Did you find any workaround?

Use regular image formats for Windows with OnPlatform customization.

Relevant log output

No response

egvijayanand commented 11 months ago

The same font icon works fine when used somewhere else.

dotnetmaui-toolbar-font-icon
XamlTest commented 10 months ago

Verified this on Visual Studio Enterprise 17.9.0 Preview 4(8.0.3). Repro on Windows 11, not repro on Android 14.0-API34, iOS 17.2 and MacCatalyst with below Project: maui-issue-19695.zip