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

Html styling is not applying to Label on Windows #19519

Open Ahmadpashaquarterpi opened 11 months ago

Ahmadpashaquarterpi commented 11 months ago

Description

I am trying to highlight text using html tags. Android platform showing expected behaviour, But on windows it is not applying styles.(Did not test on iOS or MacCatalyst)

`

`

It is showing as follows on windows: image

Steps to Reproduce

1- Create a MAUI Project. 2- Add a label with TextType="Html" and add html code in text.

Link to public reproduction project repository

https://github.com/dotnet/maui/files/13735164/HTMLSample.zip

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

No response

Did you find any workaround?

No response

Relevant log output

No response

ghost commented 11 months ago

Hi @Ahmadpashaquarterpi. We have added the "s/needs-repro" label to this issue, which indicates that we require steps and sample code to reproduce the issue before we can take further action. Please try to create a minimal sample project/solution or code samples which reproduce the issue, ideally as a GitHub repo that we can clone. See more details about creating repros here: https://github.com/dotnet/maui/blob/main/.github/repro.md

This issue will be closed automatically in 7 days if we do not hear back from you by then - please feel free to re-open it if you come back to this issue after that time.

Ahmadpashaquarterpi commented 11 months ago

Hi @PureWeen Here is the sample project HTMLSample.zip

ghost commented 10 months ago

We've added this issue to our backlog, and we will work to address it as time and resources allow. If you have any additional information or questions about this issue, please leave a comment. For additional info about issue management, please read our Triage Process.

Ahmadpashaquarterpi commented 10 months ago

Is there any workaround for this? I tried Formatted text that too is showing weird behavior on windows.

dailyhw commented 3 weeks ago

Are there have any modifications for this? The Color tag in HtmlText still does not work on Windows in MAUI version 8.0.90. I have confirmed that it works fine on Android.