Skip to content

TextBlock with IsTextSelectionEnabled=true are not wrapping correctly #10392

@HO-COOH

Description

@HO-COOH

Describe the bug

When selection is enabled, TextBlock no longer wrap properly.

Steps to reproduce the bug

    <TextBlock
        IsTextSelectionEnabled="True"
        Text="Some looooooooooooooooooooooooooooong text selectale and have wrap set to WrapWholeWords, see the broken highlight position changes"
        TextWrapping="WrapWholeWords" />

Expected behavior

No response

Screenshots

Image

NuGet package version

WinUI 3 - Windows App SDK 1.6.5: 1.6.250205002

Windows version

Windows 11 (24H2): Build 26100

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-TextBlocksTextBlock, RichTextBlockbugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions