views:

495

answers:

1

I'm building an a WPF app that uses the WebBrowser control.
I'm struggling on a couple of points:

  1. How to get the current progress of a download from the control. The WinForms WebBrowser control raises ProgressChange events - how can I relicate this feature with the WPF variant?

  2. How to capture links that are trying to open in a new window. Again the Winforms WebBrowser had a NewWindow event. I could use this to stop IE being started and to open the link in the same window. Is it possible to do this with the WPF varaiant?

A: 

Having found the information I wanted I thought I'd update this question for anyone interested.

At the bottom of http://msdn.microsoft.com/en-us/library/system.windows.controls.webbrowser.aspx there is a comment entitled "Getting to the native IWebBrowser2".

This shows how to get to the required interface and seems to works well.

Grhm