Welcome Guest Search | Active Topics | Sign In | Register

Zoom And Pan in WebBrowser Options
Doru
Posted: Tuesday, August 2, 2016 4:27:28 AM
Rank: Newbie
Groups: Member

Joined: 7/29/2016
Posts: 2
Hi,

In my WPF applicatin I need to load a svg into a WebBrowser, and then the user should be able to zoom and pan. I have seen that you don't really have panning out of the box. I have managed to implement it using the MouseUp, MouseDown, MouseMove events, and the GetScrollOffset() and SetScrollOffset() methods.

My biggest problem to this implementation is that while the I make a "pan", the text from the webbrowser also gets selected. Is there any method to disable this text selection?

Or is there any other way to implement zoom and pan?

Thanks,
Doru.
eo_support
Posted: Tuesday, August 2, 2016 12:17:26 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,229
Hi,

The latest build should support this automatically. You do not need to do anything special to support that. You can run our TabbedBrowser sample project, load any page and you should be able to zoom/pan the content. So you can try that and see if it works for you.

Thanks!


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.