fabulous-dev / Fabulous

Declarative UI framework for cross-platform mobile & desktop apps, using MVU and F# functional programming
https://fabulous.dev
Apache License 2.0
1.14k stars 121 forks source link

Better handling of corner cases of Label.Text/Label.FormattedText #825

Closed TimLariviere closed 3 years ago

TimLariviere commented 3 years ago

When using Label.Text/Label.FormattedText, Xamarin.Forms automatically sets the other property to null. This can lead to some corner cases where Fabulous has a ViewElement that does not match the real control state.

So to avoid that, the Text and FormattedText property are handled like only one property. In case the user provided both Text and FormattedText, FormattedText takes precedence.