문제

I have a RichTextBlock in a ScrollViewer. The content of the RichTextBlock is very long. How can I scroll to the specifed Offset (the offset of RichTextBlock) in code-behind?

도움이 되었습니까?

해결책

ScrollViewer does not have a Setter Property for VerticalOffset - However it provides with a Public Method to achieve your requirement.

_ScrollViewer.SetVerticalOffset(40.0);

Cheers!

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top