xamarin / Xamarin.Forms

Xamarin.Forms is no longer supported. Migrate your apps to .NET MAUI.
https://aka.ms/xamarin-upgrade
Other
5.64k stars 1.88k forks source link

[Bug] label in XAML with TextType="HTML" and binding in viewmodel, not working #15695

Closed tobih5m closed 1 year ago

tobih5m commented 1 year ago

Description

Steps to Reproduce

  1. create label in XAML
  2. create property in viewmodel prop = "<u>underline</u>"

Expected Behavior

underlined text in label

Actual Behavior

normal text, no html code working with bindings

Basic Information

tobih5m commented 1 year ago

Solution found: don't use TextColor in XAML or use binding with a converter

Kol-UI commented 1 year ago

Maybe you could use TextDecorations="Underline" in you Label, with a binding on a bool in you ViewModel. That way TextColor can still be used