/// <summary> /// Notifies the <see cref="P:Parent"/> that a navigation has been completed on a window or frameSet element. /// </summary> /// <param name="webBrowser">The top-level or frame <see cref="T:WebBrowser"/> corresponding to the navigation.</param> /// <param name="url">The URL, UNC file name, or PIDL that was navigated to.</param> /// <remarks> /// Note that the URL can be different from the URL that the browser was told to navigate to. /// One reason is that this URL is the canonicalized and qualified URL; for example, if an application specified a URL of "www.microsoft.com" in a call to the <see cref="M:WebBrowser.Navigate"/> method, the URL passed by Navigate2 will be "http://www.microsoft.com/". /// Also, if the server has redirected the browser to a different URL, the redirected URL will be reflected here. /// </remarks> public override void Navigated(WebBrowser webBrowser, string url) { Uri uri = new Uri(url ?? string.Empty); var e = new WebBrowserNavigatedEventArgs(webBrowser, uri); this.Parent.OnNavigated(e); }
private void WebBrowserEx_Navigated(object sender, PauloMorgado.Windows.WebBrowser.WebBrowserNavigatedEventArgs e) { Trace.WriteLine(string.Format("URL={0}", e.Url), string.Format("[{0}] WebBrowserEx.Navigated", this.instance)); if (this.WebBrowserEx.WebBrowser.Equals(e.WebBrowser)) { this.locationAddress = e.Url.ToString(); this.form.SetLocationAddress(this); } }