void webBrowser1_Navigated(object sender, GeckoNavigatedEventArgs e) { /* GeckoElementCollection C = webBrowser1.Document.GetElementsByTagName("a"); foreach (GeckoElement Elm in C) { if (Elm.GetAttribute("href").StartsWith("spotify:")) { Elm.SetAttribute("href", Elm.GetAttribute("href").Replace("spotify:", "http://open.spotify.com/").re); } }*/ }
/// <summary>Raises the <see cref="Navigated"/> event.</summary> /// <param name="e">The data for the event.</param> protected virtual void OnNavigated(GeckoNavigatedEventArgs e) { if (((GeckoNavigatedEventHandler)this.Events[NavigatedEvent]) != null) ((GeckoNavigatedEventHandler)this.Events[NavigatedEvent])(this, e); }
/// <summary> /// If the client is broadcasting, notifies the server of the update when the /// renderer has navigated somewhere else (such as when clicking on a link). /// </summary> protected override void browser_Navigated(object sender, GeckoNavigatedEventArgs e) { base.browser_Navigated (sender, e); MainWindow main = App.Current.MainWindow as MainWindow; if (main != null && main.ClientStatus.IsBroadcasting) main.Connection.UpdateTab (TabData); }
/// <summary> /// Updates the address bar when the renderer has navigated somewhere. /// </summary> protected virtual void browser_Navigated(object sender, GeckoNavigatedEventArgs e) { addressBar.Text = e.Uri.AbsoluteUri; }
void geckoWebBrowser1_Navigated(object sender, GeckoNavigatedEventArgs e) { //geckoWebBrowser1.Navigate(url); }
private void geckoWebBrowser3_Navigated(object sender, GeckoNavigatedEventArgs e) { }