Skip to content
This repository was archived by the owner on Feb 25, 2026. It is now read-only.
This repository was archived by the owner on Feb 25, 2026. It is now read-only.

MarkdownTextBlock Text Selection doesn't select everything #1746

Closed

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)

Activity

  1. added
    bug 🐛An unexpected issue that highlights incorrect behavior
    help wantedIssues identified as good community contribution opportunities
    on Jan 17, 2018
  2. added and removed
    bug 🐛An unexpected issue that highlights incorrect behavior
    on Jan 23, 2018
  3. avknaidu commented on Feb 13, 2018

    @avknaidu
    Member

    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.

  4. WilliamABradley commented on Feb 14, 2018

    @WilliamABradley
    ContributorAuthor

    That isn't the only limitation, it also has InlineUIContainers, which don't follow the selection either.

  5. lucaasrojas commented on Jun 29, 2018

    @lucaasrojas
    Contributor

    Whats the current status?

  6. Kyaa-dost commented on Jun 24, 2020

    @Kyaa-dost
    Contributor

    There has been no update on this issue. If anyone is able to pick this up please let us know😄

  7. ghost removed on Jun 24, 2020
  8. locked and limited conversation to collaborators on Apr 23, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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