windows: add link clicked event to log
This commit is contained in:
parent
ac7c9c2ff6
commit
0d323c9249
|
@ -22,6 +22,7 @@ using System.Windows;
|
||||||
using System.Windows.Controls;
|
using System.Windows.Controls;
|
||||||
using System.Windows.Media;
|
using System.Windows.Media;
|
||||||
using System.Windows.Media.Imaging;
|
using System.Windows.Media.Imaging;
|
||||||
|
using System.Windows.Navigation;
|
||||||
|
|
||||||
namespace SparkleShare {
|
namespace SparkleShare {
|
||||||
|
|
||||||
|
@ -86,6 +87,11 @@ namespace SparkleShare {
|
||||||
Height = Height - 48 - 12
|
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 ();
|
this.canvas = new Canvas ();
|
||||||
Content = this.canvas;
|
Content = this.canvas;
|
||||||
|
|
Loading…
Reference in a new issue