Вопрос

I have Windows Store app with a RichEditBox. I need to get the scroll position programmatically in order to match the scroll position on a grid along side it.

I can't find any documentation on how to do this online. In XAML I can set the ScrollViewer.VerticalScrollMode and ScrollViewer.HorizontalScrollMode, but there's no OnScroll event and no VerticalOffset

Anyone know if this is possible?

Это было полезно?

Решение

Try parsing the visual tree. WinRTXamlToolkit lets you do this easily by doing something like myRichEditTextBox.GetFirstDescendentOfType<ScrollViewer>().

Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top