You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Feb 25, 2026. It is now read-only.
Repository navigation
This repository was archived by the owner on Feb 25, 2026. It is now read-only.
MarkdownTextBlock Text Selection doesn't select everything #1746
[ ] Regression (a behavior that used to work and stopped working in a new release)
[x] Bug report <!-- Please search GitHub for a similar issue or PR before submitting -->
[ ] Feature request <!-- Please file a UserVoice request and include the link below https://wpdev.uservoice.com/forums/110705-universal-windows-platform/category/193402-uwp-community-toolkit -->
[ ] Sample app request
[ ] Documentation issue or request
[ ] Question of Support request => Please do not submit support request here, instead see https://github.com/Microsoft/UWPCommunityToolkit/blob/master/contributing.md#question
Current behavior
Due to the way MarkdownTextBlock is implemented, when selecting text, the selection will stop after one block of text, it also doesn't pick up any formatting, such as Tables, Lists, etc. This will be made worse with #1650, when I add CodeInlines as their own InlineObjectContainer Element.
Expected behavior
Text selection flows across all blocks, like when you select Markdown Text on GitHub. Try select the text on this issue, that is how it should work.
There is probably some way to daisy chain text selection through child UI elements in a RichTextBlock, I just don't know how. Are there any contributors that have knowledge in that area?
Minimal reproduction of the problem with instructions
Go to MarkdownTextBlock sample page, and select some text in the MarkdownTextBlock.
When you look at the visual tree, every InlineElement is added with a RichTextBlock as a parent. How about using a single RichTextBlock and adding everything to the same? I did not do any code check on this but i think that is a route that we need to investigate.
Activity
avknaidu commentedon Feb 13, 2018
When you look at the visual tree, every InlineElement is added with a RichTextBlock as a parent. How about using a single RichTextBlock and adding everything to the same? I did not do any code check on this but i think that is a route that we need to investigate.
WilliamABradley commentedon Feb 14, 2018
That isn't the only limitation, it also has InlineUIContainers, which don't follow the selection either.
lucaasrojas commentedon Jun 29, 2018
Whats the current status?
Kyaa-dost commentedon Jun 24, 2020
There has been no update on this issue. If anyone is able to pick this up please let us know😄