private void OnBeginLoading(object sender, BeginLoadingEventArgs 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. this.ClearValue(TabView.FaviconPropertyKey); }
void OnBeginLoading(object sender, BeginLoadingEventArgs e) { if (mControl.TargetURL == "" || mControl.TargetURL == null) { TabText = "Preview"; } else { TabText = "Preview - Loading..."; } }
private void webControl_BeginLoading(object sender, BeginLoadingEventArgs e) { // By now we have already navigated to the address. // Clear the old favicon. if (Icon != null) { Icon.Dispose(); } ComponentResourceManager resources = new ComponentResourceManager(typeof(WebDocument)); Icon = ((Icon)(resources.GetObject("$this.Icon"))); DockPanel.Refresh(); }
private static void OnBeginLoading(object sender, BeginLoadingEventArgs e) { PrintMessage("loading: " + e.Url); }
private void internalBeginLoadingCallback( IntPtr caller, IntPtr url, IntPtr frame_name, int status_code, IntPtr mime_type ) { BeginLoadingEventArgs e = new BeginLoadingEventArgs( StringHelper.ConvertAweString( url ), StringHelper.ConvertAweString( frame_name ), status_code, StringHelper.ConvertAweString( mime_type ) ); actualSource = e.Url; actualZoom = GetZoom(); if ( String.Compare( this.Title, AwesomiumSharp.Resources.TITLE_Error, false ) != 0 ) this.Title = AwesomiumSharp.Resources.TITLE_Loading; this.IsDomReady = false; // Reset this.Source = new Uri( e.Url ); this.Zoom = actualZoom; this.CoerceValue( WebControl.IsLoadingPageProperty ); this.CoerceValue( WebControl.HistoryBackCountProperty ); this.CoerceValue( WebControl.HistoryForwardCountProperty ); this.OnBeginLoading( this, e ); CommandManager.InvalidateRequerySuggested(); }
/// <summary> /// Raises the <see cref="BeginLoading"/> event. /// </summary> protected virtual void OnBeginLoading( object sender, BeginLoadingEventArgs e ) { if ( BeginLoading != null ) BeginLoading( sender, e ); }
void _webBrowser_BeginLoading(object sender, BeginLoadingEventArgs e) { _textBox.Text = _url; _backButton.IsEnabled = _webBrowser.HistoryBackCount > 0; _forwardButton.IsEnabled = _webBrowser.HistoryForwardCount > 0; }
private void internalBeginLoadingCallback( IntPtr caller, IntPtr url, IntPtr frame_name, int status_code, IntPtr mime_type ) { BeginLoadingEventArgs e = new BeginLoadingEventArgs( StringHelper.ConvertAweString( url ), StringHelper.ConvertAweString( frame_name ), status_code, StringHelper.ConvertAweString( mime_type ) ); actualSource = e.Url; this.Source = new Uri( e.Url ); this.CoerceValue( WebControl.IsLoadingPageProperty ); this.OnBeginLoading( this, e ); }
private void internalBeginLoadingCallback( IntPtr caller, IntPtr url, IntPtr frame_name, int status_code, IntPtr mime_type ) { BeginLoadingEventArgs e = new BeginLoadingEventArgs( StringHelper.ConvertAweString( url ), StringHelper.ConvertAweString( frame_name ), status_code, StringHelper.ConvertAweString( mime_type ) ); RaisePropertyChanged( "IsLoading" ); this.OnBeginLoading( this, e ); }
private void internalBeginLoadingCallback(IntPtr caller, IntPtr url, IntPtr frame_name, int status_code, IntPtr mime_type) { BeginLoadingEventArgs e = new BeginLoadingEventArgs(this, StringHelper.ConvertAweString(url), StringHelper.ConvertAweString(frame_name), status_code, StringHelper.ConvertAweString(mime_type)); if (OnBeginLoading != null) OnBeginLoading(this, e); }
private void internalBeginLoadingCallback( IntPtr caller, IntPtr url, IntPtr frame_name, int status_code, IntPtr mime_type ) { BeginLoadingEventArgs e = new BeginLoadingEventArgs( StringHelper.ConvertAweString( url ), StringHelper.ConvertAweString( frame_name ), status_code, StringHelper.ConvertAweString( mime_type ) ); // Reset this.IsDomReady = false; this.PageContents = String.Empty; RaisePropertyChanged( "IsLoading" ); RaisePropertyChanged( "HistoryBackCount" ); RaisePropertyChanged( "HistoryForwardCount" ); RaisePropertyChanged( "Source" ); RaisePropertyChanged( "Zoom" ); this.OnBeginLoading( this, e ); }