MarkdownTextBlock Text Selection doesn't select everything #3974
Replies: 4 comments
-
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. |
Beta Was this translation helpful? Give feedback.
-
That isn't the only limitation, it also has InlineUIContainers, which don't follow the selection either. |
Beta Was this translation helpful? Give feedback.
-
Whats the current status? |
Beta Was this translation helpful? Give feedback.
-
There has been no update on this issue. If anyone is able to pick this up please let us know😄 |
Beta Was this translation helpful? Give feedback.
-
I'm submitting a...
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.
Environment
Beta Was this translation helpful? Give feedback.
All reactions