windows: add link clicked event to log

This commit is contained in:
Hylke Bons 2012-03-04 21:34:58 +00:00
parent ac7c9c2ff6
commit 0d323c9249

View file

@ -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;