Scroll with MVVM on RadRichTextBox

0 Answers 68 Views
RichTextBox
Suzanne
Top achievements
Rank 1
Suzanne asked on 24 Jun 2022, 09:30 AM

Hello,

I am using the MVVM style on a RadRichTextBox and the XamlDataProvider (using a view model to populate the Xaml through binding). The problem is that I also want to be able to scroll the box after I set the Xaml, preferably as a percentage of the total possible scroll. I can get it to scroll down but then it goes right back.

Any thoughts?

Svilen
Telerik team
commented on 28 Jun 2022, 01:04 PM

Hello, Suzanne,

In order to replicate the issue, I created a small test demo project, which reads a static XAML file and binds its contents to the RadRichTextBox. Afterward, it scrolls down to 50% of the document's length. On my end, the project runs as expected and the final state of the document remains scrolled after being loaded. I've attached my project to this message and hope it works for you.

If it does not, please edit it in a way, which helps reproduce the issue and I would be more than happy to help.

Thank you in advance.

Regards,
Svilen

Progress Telerik

Suzanne
Top achievements
Rank 1
commented on 30 Jun 2022, 08:13 AM

That works great! Thank you so much!

No answers yet. Maybe you can help?

Tags
RichTextBox
Asked by
Suzanne
Top achievements
Rank 1
Share this question
or