Open Emanuele9xx opened 8 months ago
Similar to bug #13015
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.
Same problem for me ! solved using something like this:
FormattedText = new FormattedString
{
Spans = {
new Span { Text = "Binding: ", TextColor = Colors.Red },
new Span { Text = "\u003e", TextColor = Colors.Blue }
}
};
To get the correct encoding of the character I used: IconFont2Code
Description
When setting the FormattedText property of a Label control to content with simple html tags, the control display different content base on the way the FormattedText proeprty is set. When Text is set in Xaml, the label displays formatted text as expected. When Text is set via binding, the label displays text without formatting, with the html tags visible.
Expected: when using binding to populate text, the label should display html formatted content.
Steps to Reproduce
Xaml without binding (ok):
Xaml with binding (ko):
Code for binding:
Link to public reproduction project repository
No response
Version with bug
8.0.5
Is this a regression from previous behavior?
No, this is something new
Last version that worked well
Unknown/Other
Affected platforms
iOS
Affected platform versions
ios 17.2
Did you find any workaround?
No response
Relevant log output
No response