Implement FormattedText in Controls
See original GitHub issueSteps to Reproduce
<VerticalStackLayout>
<Label Text="Regular label:"/>
<Label Text="Test1"/>
<Label Text="FormattedText label:"/>
<Label >
<Label.FormattedText>
<FormattedString>
<Span Text="Test2"></Span>
</FormattedString>
</Label.FormattedText>
</Label>
</VerticalStackLayout>
EDIT: The implementation of this is not quite finished - see https://github.com/dotnet/maui/pull/3637
Expected Behavior
Regular label: Test1 FormattedText label: Test2
Actual Behavior
Basic information
I have tested it on Android only (Pixel 4 API 30), and don’t know whether it reproduces on other platforms.
Repro project
Issue Analytics
- State:
- Created 2 years ago
- Reactions:2
- Comments:5 (2 by maintainers)
Top Results From Across the Web
FormattedText Class (System.Windows.Media)
Obsolete. Initializes a new instance of the FormattedText class with the specified text, culture, flow direction, typeface, font size, and brush.
Read more >Drawing Formatted Text - WPF .NET Framework
The FormattedText object allows you to draw multi-line text, in which each character in the text can be individually formatted.
Read more >Drawing Formatted Text in a Windows Forms Application ...
How it works. The FormattedText class takes a string of characters and allows you to format arbitrary character ranges in a very simple...
Read more >How to Use Formatted Text Fields
How to Use Formatted Text Fields ... Formatted text fields provide a way for developers to specify the valid set of characters that...
Read more >Programming Formatted Textparts - TX Text Control .NET for ...
All objects in a text part collection implement the IFormattedText interface. The collection can be obtained with the TextControl.TextParts, WPF.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
+1 seeing this issue with Win UI
Fixed by #3637