Scroll To Caret

Hi, I'm using the WPF library.
When I add an element inside a Rich Text Box or a visualize a entire new document inside i need to focus the vertical scroll to the bottom. In Windows Forms I've used the ScrollToCaret() method. What can i use for obtain the same behavior?
Thanks in advance,
Daniele


1 Reply 1 reply marked as answer

PS Premkumar Sundaramoorthy Syncfusion Team July 16, 2020 10:46 AM UTC

Hi Daniele,

Thanks for contacting Syncfusion support,

You can move the vertical scroll bar to the document bottom by placing the cursor (selection) at the end of the document programmatically. Please refer to the below UG link and sample for more details.
https://help.syncfusion.com/wpf/richtextbox/selection

https://www.syncfusion.com/downloads/support/forum/156083/ze/RTE_Move_Cursor-1283323258

If you want to do vertical scrolling programmatically, you can refer to the below KB link.
https://www.syncfusion.com/kb/7771/how-to-scroll-sfrichtextboxadv-programmatically


Please let us know if you need any further assistance.

Regards,
Premkumar
 


Marked as answer
Loader.
Up arrow icon