Ejemplo n.º 1
0
 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);
 }
Ejemplo n.º 2
0
 void OnBeginLoading(object sender, BeginLoadingEventArgs e)
 {
     if (mControl.TargetURL == "" || mControl.TargetURL == null)
     {
         TabText = "Preview";
     }
     else
     {
         TabText = "Preview - Loading...";
     }
 }
Ejemplo n.º 3
0
        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();
        }
Ejemplo n.º 4
0
Archivo: Program.cs Proyecto: hiiru/lab
 private static void OnBeginLoading(object sender, BeginLoadingEventArgs e)
 {
     PrintMessage("loading: " + e.Url);
 }
Ejemplo n.º 5
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;
            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();
        }
Ejemplo n.º 6
0
 /// <summary>
 /// Raises the <see cref="BeginLoading"/> event.
 /// </summary>
 protected virtual void OnBeginLoading( object sender, BeginLoadingEventArgs e )
 {
     if ( BeginLoading != null )
         BeginLoading( sender, e );
 }
Ejemplo n.º 7
0
 void _webBrowser_BeginLoading(object sender, BeginLoadingEventArgs e)
 {
     _textBox.Text = _url;
     _backButton.IsEnabled = _webBrowser.HistoryBackCount > 0;
     _forwardButton.IsEnabled = _webBrowser.HistoryForwardCount > 0;
 }
Ejemplo n.º 8
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 );
        }
Ejemplo n.º 9
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 ) );

            RaisePropertyChanged( "IsLoading" );
            this.OnBeginLoading( this, e );
        }
Ejemplo n.º 10
0
        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);
        }
Ejemplo n.º 11
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 ) );

            // Reset
            this.IsDomReady = false;
            this.PageContents = String.Empty;

            RaisePropertyChanged( "IsLoading" );
            RaisePropertyChanged( "HistoryBackCount" );
            RaisePropertyChanged( "HistoryForwardCount" );
            RaisePropertyChanged( "Source" );
            RaisePropertyChanged( "Zoom" );
            this.OnBeginLoading( this, e );
        }