[uwp] RichEditBox display long text error

Zzvr 21 Reputation points
2022-04-21T08:24:40.713+00:00

I copied a long plain text which length is 20000 and all in the one line.Then I pasted it in NoWrap RichEditBox.This picture is the result194819-2022-04-21-161025.png

This is my code:

<RichEditBox TextWrapping="NoWrap"/>  

How can I fix it?

Universal Windows Platform (UWP)
{count} votes

Accepted answer
  1. Nico Zhu (Shanghai Wicresoft Co,.Ltd.) 12,851 Reputation points
    2022-04-22T08:59:40.297+00:00

    Hello,
    Welcome to Microsoft Q&A!

    I can reproduced this behavior. this problem will occurs in both of the RichEditBox and TextBox that use ScrollViewer as scroll container. It has the limitation of max content that can be used in the scrollview. And it is by design for keeping the performance of control.
    If you want to display the rest of content. the better way is split it over multiple lines.

    Thank you.


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments

0 additional answers

Sort by: Most helpful