From 0d323c924939eedae3cf58d4e230a9a460aa9d0b Mon Sep 17 00:00:00 2001 From: Hylke Bons Date: Sun, 4 Mar 2012 21:34:58 +0000 Subject: [PATCH] windows: add link clicked event to log --- SparkleShare/Windows/SparkleEventLog.cs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/SparkleShare/Windows/SparkleEventLog.cs b/SparkleShare/Windows/SparkleEventLog.cs index 817c2839..f0a10b5b 100644 --- a/SparkleShare/Windows/SparkleEventLog.cs +++ b/SparkleShare/Windows/SparkleEventLog.cs @@ -22,6 +22,7 @@ using System.Windows; using System.Windows.Controls; using System.Windows.Media; using System.Windows.Media.Imaging; +using System.Windows.Navigation; namespace SparkleShare { @@ -86,6 +87,11 @@ namespace SparkleShare { Height = Height - 48 - 12 }; + this.web_browser.Navigating += delegate(object sender, NavigatingCancelEventArgs e) { + string url = e.Uri.ToString (); + Controller.LinkClicked (url); + }; + this.canvas = new Canvas (); Content = this.canvas;