I have a WPF app in which is hosted an instance of axAcroPDF. I've included it via a System.Windows.Forms.UserControl that is a child of a System.Windows.Forms.Integration.WindowsFormsHost.
The PDF Document is essentially a flow chart in which there are links that are currently set to open a webpage by url. When the links are clicked in a standard adobe Acrobat X application they work fine, however when they are clicked within the WPF application's axAcroPDF component nothing happens. Furthermore I have also on another tab within my app a System.Windows.Controls.WebBrowser on which I would like the linked url's to be opened. I need to construct a method, event listener and event handler so that when the link in the pdf file is clicked in the axAcroPDF object the url is passed to a method that will call System.Windows.Controls.WebBrowser.Navigate() passing it the url as an argument. I've saught help within the WPF developer community and got some advice to use the "execute a javaScript" link behavior to call a method within my WPF app passing it the url as a string argument, but have been unable to implement this within my code. I click the link with the javascript but it does not result in a method call of the method in my WPF app. Can anyone help me with possibly a more simple way to just listen for the event that already exists with the "open a web link" action?
Thanks for any help,
Matthew