[Gtk-sharp-list] MonoDevelop: Webkit# webview browser not working for PDF links

coolandy28 andrew_ashcroft at hotmail.com
Fri Jul 19 15:36:47 UTC 2013


Solved with this code class:
		public class WebBrowser: WebView
		{
			public WebBrowser()
			{
				this.NavigationRequested += this.OnLinkActivatedInBrowser;
			}		
			
			public string url_address;
		
		    protected virtual void OnLinkActivatedInBrowser (object sender,
NavigationRequestedArgs args)
            {
                string uri = args.Request.Uri;
		
				Console.WriteLine("navigation requested [{0}]",uri);
			
				url_address = uri;
            }

		}

Andrew



--
View this message in context: http://mono.1490590.n4.nabble.com/MonoDevelop-Webkit-webview-browser-not-working-for-PDF-links-tp4660192p4660239.html
Sent from the Mono - Gtk# mailing list archive at Nabble.com.


More information about the Gtk-sharp-list mailing list