Skip to content

[Android, iOS & Catalyst] TextDecorations Property Does Not Apply at Runtime When TextType="Html" Is Set on Label  #29674

@NafeelaNazhir

Description

@NafeelaNazhir

Description

When using the .NET MAUI Label control with TextType="Html" property, the TextDecorations property does not take effect when changed during runtime. This behavior is inconsistent with the Label in plain text mode where text decoration changes are applied.

Screen.Recording.2025-05-26.at.7.01.42.PM.mov

Steps to Reproduce

  1. Run the attached sample FormattedTextPropertiesSample 5.zip
  2. Select TextType to Plain and change TextDecorations to "Underline" or "Strikethrough" using the radio buttons
  3. Observe that the text decorations are applied correctly to plain text.
  4. Switch TextType to "Html" using the radio button
  5. Change TextDecorations to a different value .
  6. Observe that text decorations do not update in the Label's HTML rendered text during runtime

Expected Behavior
The TextDecorations property of the Label control should take effect immediately when changed during runtime, regardless of whether the Label's TextType is set to Text or Html.

Actual Behavior
When the Label's TextType is set to Html, changes to the TextDecorations property made during runtime are not reflected in the rendered text.

Link to public reproduction project repository

No response

Version with bug

9.0.70 SR7

Is this a regression from previous behavior?

Not sure, did not test other versions

Last version that worked well

No response

Affected platforms

iOS, Android, macOS

Affected platform versions

No response

Did you find any workaround?

No response

Relevant log output

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions