Home > other >  WPF textbox, rolling display content does not follow the cursor
WPF textbox, rolling display content does not follow the cursor

Time:10-11

Hesitation I can only show 1-10 textbox height limit lines

My cursor into 11 lines, he could not automatically scroll, by this time the correct processing is scroll to line 2-11

And I use the up and down or so control cursor keypad, display content will not follow the cursor automatically scroll

Have a solution?

CodePudding user response:

The default can be newline, your input is only a newline after reach a certain width,

CodePudding user response:

To add a textbox scrollbar
& lt; ScrollViewer & gt;
& lt; TextBlock TextWrapping="Wrap"/& gt;
& lt;/ScrollViewer>
  • Related