Skip to content

♥️ Support for RichTextBlock #81

Description

@juepiezhongren

Notes

  • When done, re-enable full sample in SamplesApp\UITests.Shared\Microsoft_UI_Xaml_Controls\CommandBarFlyoutTests\TextCommandBarFlyoutPage.xaml.cs

Activity

  1. added
    kind/enhancement
    on Jul 1, 2018
  2. jeromelaban commented on Nov 26, 2018

    @jeromelaban
    Member

    Markdown viewer from the windows community toolkit requires this.

  3. artemious7 commented on Nov 8, 2019

    @artemious7
    Contributor

    I need to arrange UIElements in the same way as text (being able to set TextAlignment to Left, Center, Justify and to select text). In UWP I would use RichTextBlock and InlineUIContainers for this. While it's not there in Uno, can you suggest any workaround, please?

  4. carldebilly commented on Nov 9, 2019

    @carldebilly
    Member

    You can simply use the Inlines of a TextBlock... But the enlignment is global to the TextBlock, not specific by Inline... Is it what you want?

  5. davidjohnoliver commented on Nov 11, 2019

    @davidjohnoliver
    Contributor

    @artemious7 Not sure to understand your use case very well, but it sounds like you could author a custom Panel to do this.

  6. YBAZAN commented on Aug 19, 2020

    @YBAZAN

    I don't know if this issue is still relevant as this because RichTextBlock is implemented, but InlineUIContainer still no.

  7. davidjohnoliver commented on Aug 24, 2020

    @davidjohnoliver
    Contributor

    @YBAZAN RichTextBlock isn't implemented yet, but it was incorrectly showing up as implemented because it was missing the appropriate attribute. #3873

  8. YBAZAN commented on Aug 24, 2020

    @YBAZAN

    Thank you @davidjohnoliver for the clarification.

    So, if I understand correctly, that means that an app using those controls (RichTextBlock, RichEditBox, and other not yet implemented ones) won't run in others platforms than UWP, right ?

    If so, do you have any roadmap that could help us to visualize the remaining work ?

  9. davidjohnoliver commented on Aug 24, 2020

    @davidjohnoliver
    Contributor

    Strictly speaking, apps using unimplemented APIs will compile and run, but creating those controls will throw a runtime exception (though this can be downgraded to an error message). And obviously the controls won't display anything.

    RichTextBlock and RichEditBox don't seem to be planned for the short-term, but if you can upvote (👍 ) the issues, that'll help us prioritize the work.

  10. YBAZAN commented on Aug 24, 2020

    @YBAZAN

    I guess it's a huge work to support so many platforms. As the same time, Microsoft continues to work on its framework, so it's like an endless work...

    As I look the recent PR, seems to be more bug fixes than new stuff (like implementation of controls for example). It could be a brake in the adoption of Uno for professional projects. And behavior issues may affect less than having parts of the interface not showing at all, especially if no release is planned for those missing controls.

    By the way, thank very much for your hard work on this wonderful platform. I really enjoy it !!

  11. artemious7 commented on Aug 24, 2020

    @artemious7
    Contributor

    I guess it's a huge work to support so many platforms. As the same time, Microsoft continues to work on its framework, so it's like an endless work...

    As I look the recent PR, seems to be more bug fixes than new stuff (like implementation of controls for example). It could be a brake in the adoption of Uno for professional projects. And behavior issues may affect less than having parts of the interface not showing at all, especially if no release is planned for those missing controls.

    By the way, thank very much for your hard work on this wonderful platform. I really enjoy it !!

    We can still do it the good old way: native controls for each platform our app supports. And if we do, we can share results with the community, even contribute to Uno Platform

  12. added
    project/text 🔤
    and removed on Sep 21, 2020
  13. added
    difficulty/tbd
    on Feb 15, 2021
  14. 9 remaining items

  15. MartinZikmund commented on Nov 21, 2024

    @MartinZikmund
    Member

    @ShankarBUS pretty cool solution!

  16. added theissue type on Jul 25, 2025
  17. added a commit that references this issue on Mar 6, 2026
  18. MartinZikmund commented on Apr 7, 2026

    @MartinZikmund
    Member

    Repro generator

    This issue was classified as not reproducible with a code sample or test.

    Reason: This is a feature enhancement epic requesting implementation of RichTextBlock support. It does not describe a specific reproducible bug — it is a feature implementation request with an internal note about re-enabling a sample once implementation is complete. Feature epics of this kind cannot be meaningfully reproduced with a unit test or code sample.

  19. lextm commented on May 12, 2026

    @lextm

    As part of the initiative to enable WinUI.Markdown on Uno Platform, a new library called UnoRichText is developed with both RichTextBlock and RichEditBox control.

    It is largely based on PretextSharp as well as Microsoft's WPF code base.

    Image
  20. changed the issue type fromtoon Jun 4, 2026
  21. lextm commented on Jun 28, 2026

    @lextm
    Image

    Just ported MarkdownTextBlock to Uno via the rich text bits I ported from WPF, which is in fact straight forward

    https://github.com/lextudio/Labs-Windows/tree/markdowntextblock-uno

    @michael-hawker

  22. changed the title [-]Support for `RichTextBlock`[/-] [+]♥️ Support for `RichTextBlock`[/+] on Jul 3, 2026
  23. self-assigned this
    on Jul 8, 2026
  24. added this to the Platform 7.1 milestone on Sep 9, 2026
  25. Jen-Uno commented on Sep 30, 2026

    @Jen-Uno
    Contributor

    QA: closing out without a manual pass. The fix in #23731 ships with tests and samples that exercise the change.

    If you still see this behaviour on a build that includes that PR, please reopen or comment here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

difficulty/challenging 🤯epickind/enhancementno-reproproject/text 🔤

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions