Synchronize scrolling

Nov 14, 2011 at 12:33 PM



I am trying to make two DocumentViewers scroll at the same time, in order to compare documents.

I looked for the possible solutions, and so far BringIntoView(TextPointer) seems like an option, but I'm not sure what coordinates to use for TextPointer. I would need to have the coordinates of the displayed part of one document to move the second document to the same position. I haven't found a way to do that yet.

It may also be a good idea to just bind the scrolling events of the two viewers somehow.


Any help on this issue is appreciated.




Nov 14, 2011 at 2:50 PM

Hi Luka,

Synchronizing document viewers is currently not possible, since Document Toolkit doesn't expose information about its current scroll state (as you correctly identified). I'll need to investigate what can be done here.

Kind regards,

- Koen

Nov 15, 2011 at 12:30 PM

Thank you, waiting for your reply.


Best Regards,