/// <summary> /// Load the conference in Internet Explorer mobile /// </summary> /// <param name="uri">Link of the conference</param> private void VisitWebsite(Uri uri) { if (uri != null) { WebBrowserTaskHelper.OpenBrowser(uri); } }
/// <summary> /// Raised when the user clicks on a Url /// </summary> /// <param name="sender">Textbox containing the Url</param> /// <param name="e">Event arguments</param> private void Url_OnMouseLeftButtonUp(object sender, MouseButtonEventArgs e) { FrameworkElement textBox = (FrameworkElement)sender; string url = textBox.Tag.ToString(); if (Uri.IsWellFormedUriString(url, UriKind.Absolute)) { WebBrowserTaskHelper.OpenBrowser(new Uri(url)); } }
/// <summary> /// Opens the link that the user just clicked in Internet Explorer Mobile /// </summary> /// <param name="sender">WebBrowser</param> /// <param name="e">Navigation event arguments</param> private void WebBrowser_OnNavigating(object sender, NavigatingEventArgs e) { e.Cancel = true; WebBrowserTaskHelper.OpenBrowser(e.Uri); }