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

The SVG picture of the navigation menu ICON does not display correctly on Windows #21622

Open HuaFangYun opened 6 months ago

HuaFangYun commented 6 months ago

Description

Android image Windows  image Demo MauiApp1.zip

Steps to Reproduce

No response

Link to public reproduction project repository

No response

Version with bug

8.0.10 SR3

Is this a regression from previous behavior?

Yes, this used to work in .NET MAUI

Last version that worked well

Unknown/Other

Affected platforms

Windows

Affected platform versions

net8.0-windows10.0.19041.0

Did you find any workaround?

No response

Relevant log output

No response

XamlTest commented 5 months ago

Verified on VS 17.10.0 Preview 3.0(8.0.20). Repro on Windows 11, not repro on Android 14.0-API34 with below Project:

MauiApp1.zip

HuaFangYun commented 5 months ago

Right. The Svg menu picture cannot be displayed properly on Win11.

HuaFangYun commented 5 months ago
 <Image
     Source="mysql.svg"
     HeightRequest="185"
     Aspect="AspectFit"
     SemanticProperties.Description="dot net bot in a race car number eight" />
 The image of svg does not display properly.
 <Button
     x:Name="CounterBtn" ImageSource="mysql.svg"
     Text="Click me" 
     SemanticProperties.Hint="Counts the number of times you click"
     Clicked="OnCounterClicked"
     HorizontalOptions="Fill" />

On win11. There seems to be something wrong with the svg display.