MarkPad does this to sync the position of the editor and preview. It uses Chromium but you might be able to find something useful. I don't recall exactly how it works but you would look in the preview view.

https://github.com/Code52/DownmarkerWPF





On 10/09/13 10:18 AM, Jim Baker wrote:
Hello All,

I have a WebBrowser control in my WPF application (Yes some of us still write 
WPF apps !) and I need to find out the x,y positions of the scrollbars.

I'm using this to set the scroll position

mshtml.IHTMLDocument2 doc = WebBrowser1.Document as mshtml.IHTMLDocument2;

doc.parentWindow.scrollBy(x,y);   // x and y  passed in to the method.

Sometimes I need to save the scroll positions when scrolling stops for saving 
for use later in the program.

Any assistance appreciated :)

Thanks, Jim

Reply via email to