Skip to content

RichEditBox doesn't work when typing over 9628 lines of texts #10260

@Goldgom

Description

@Goldgom

Describe the bug

RichEditBox doesn't work when typing over 9628 lines of texts.When you have over 9628 lines of text in the editbox.All the texts will show in line 9628;Image

Steps to reproduce the bug

        <RichEditBox x:FieldModifier="Public" 
                     x:Name="CodeArea" 
                     AcceptsReturn="True" 
                     TextWrapping="NoWrap"
                     ScrollViewer.VerticalScrollBarVisibility="Auto"
                     Margin="4"
                     TextChanged="CodeArea_TextChanged"
                     KeyDown="CodeArea_KeyDown"
                     Grid.Column="1" 
                     Width="Auto" 
                     Height="Auto" 
                     FontSize="14" 
                     FontFamily="Consolas"
                     AutomationProperties.Name=""
                     BorderThickness="0"
                     BorderBrush="Transparent"
                     ClipboardCopyFormat="AllFormats"
                     IsTextScaleFactorEnabled="true"
                     IsSpellCheckEnabled="false"
                     PreventKeyboardDisplayOnProgrammaticFocus="false"
                     BringIntoViewRequested ="CodeArea_RequestBringIntoView"

/>

Expected behavior

No response

Screenshots

Image

NuGet package version

None

Windows version

No response

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingneeds-triageIssue needs to be triaged by the area owners

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions