I want to synchronize 2 scrollviewers. Please let me know how to get scroll event of both scrollviewers and then synchronize them both?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
First get the 2 scrollbars of the scrollviewers you want to sync.
In this case,
scrollviewer1andscrollviewer2Then we get event handlers of both the scrollbars, in this case vertical. Then we can easily sync them through the events. The
ScrollToVerticalOffsetwill scroll as per the other one does.Hope this helps!