This repository has been archived by the owner on May 1, 2024. It is now read-only.
[Enhancement] FormattedText should have an implicit converter from IList<Span> #13112
Labels
a/label
e/1 🕐
1
proposal-open
t/enhancement ➕
up-for-grabs
We welcome community contributions to any issue, but these might be a good place to start!
Projects
Summary
Currently to use the FormattedText property you need to add a FormattedString tag:
This is a lot of verbosity that can be shrinked easily by adding a
TypeConverter
on theFormattedText
property of theLabel
, which would converts anIList<Span>
into a FormattedString.The simplification will leads to this more readable and much less verbose xaml:
To go further, the default
Content
property on theLabel
could be set toFormattedText
leading to this xaml:API Changes
none
The text was updated successfully, but these errors were encountered: