Skip to content

MarkdownTextBlock Text Selection doesn't select everythingΒ #1746

@WilliamABradley

Description

@WilliamABradley

I'm submitting a...

[ ] 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.

Environment

Package Version(s): 
2.1.1

Windows 10 Build Number:
- [ ] Anniversary Update (14393) 
- [ ] Creators Update (15063)
- [ ] Fall Creators Update (16299)
- [x] Insider Build (17074)

App min and target version:
- [x] Anniversary Update (14393) 
- [ ] Creators Update (15063)
- [x] Fall Creators Update (16299)
- [ ] Insider Build (xxxxx)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions