private void BrowserWindow_LoadingFrame(object sender, LoadingFrameEventArgs e) { DoubleAnimation animation = new DoubleAnimation(); animation.From = BrowserWindow.Opacity; animation.To = 0; animation.Duration = new Duration(TimeSpan.FromMilliseconds(500)); //BrowserWindow.BeginAnimation(OpacityProperty, animation); }
private void OnBeginLoading(object sender, LoadingFrameEventArgs e) { // By now we have already navigated to the address. // Clear the old favicon. The default style, will assign // a default (globe) icon to the tab when null is set for // FaviconProperty. if (e.IsMainFrame) { this.ClearValue(TabView.FaviconPropertyKey); } }
private void webBrowser_LoadingFrame(object sender, LoadingFrameEventArgs e) { if (!webBrowser.IsDocumentReady) return; dynamic document = (JSObject) webBrowser.ExecuteJavascriptWithResult("document"); if (document == null) return; using (document) { dynamic userLoginField = document.getElementById("user_login"); if (userLoginField == null) return; using (userLoginField) { try { var value = (string) userLoginField.value; if (!string.IsNullOrEmpty(value)) { if (string.IsNullOrEmpty(user.Name)) { user.Name = value; } else if (string.Compare(user.Name, value, StringComparison.OrdinalIgnoreCase) != 0) { saveAccessToken = false; } } } catch { saveAccessToken = true; } } } }
private void webControl_BeginLoading(object sender, LoadingFrameEventArgs e) { if (!e.IsMainFrame) { return; } // Clear the old favicon. if (this.Icon != null) { this.Icon.Dispose(); } // Restore the default. ComponentResourceManager resources = new ComponentResourceManager(typeof(WebDocument)); this.Icon = ((Icon)(resources.GetObject("$this.Icon"))); if (this.DockPanel != null) { this.DockPanel.Refresh(); } }
private void web_LoadingFrame(object sender, LoadingFrameEventArgs e) { flatTextBox.RightContent = Resources["appbar_cancel"]; }
private void OnLoadingFrame(object sender, LoadingFrameEventArgs e) { Navigating?.Invoke(this, PageLoadingEventArgs.Indetermitate); }
private void WebView_LoadingFrame(object sender, LoadingFrameEventArgs e) { CheckUrl(e.Url.ToString()); }
private void Awesomium_Windows_Forms_WebControl_LoadingFrame(object sender, LoadingFrameEventArgs e) { this.labelNavigationStatus.Text("Loading frame"); this.labelBrowserSource.Text(this.webBrowser1.Source.ToString()); }
private void Awesomium_Windows_Forms_WebControl_LoadingFrame( object sender, LoadingFrameEventArgs e ) { this.labelNavigationStatus.Text( "Loading frame" ); this.labelBrowserSource.Text( this.webBrowser1.Source.ToString() ); }
//public void onBeginLoading(object sender, WebView.BeginLoadingEventArgs e) //{ // finishedLoading = false; //} private void WebView_LoadingFrame(object sender, LoadingFrameEventArgs e) { finishedLoading = false; }
private void Awesomium_Windows_Forms_WebControl_LoadingFrame(object sender, LoadingFrameEventArgs e) { finishedLoading = false; }
private void Page_Loading(object sender, LoadingFrameEventArgs e) { if (_availableHostNames != null && !_availableHostNames.Contains(e.Url.Host) && e.Url.ToString() != _errorUrl.ToString()) { Browser.Stop(); Browser.GoBack(); Loading.Visibility = Visibility.Hidden; } else { Loading.Visibility = Visibility.Visible; } PageErrorControl.Visibility = Visibility.Hidden; }