private void AuthBrowserOnBeginNavigation(object sender, BeginNavigationEventArgs beginNavigationEventArgs)
        {
            if (_authManager == null)
            {
                return;
            }

            string url = beginNavigationEventArgs.Url;

            CanSwitchAccounts = url.StartsWith(AuthenticationManager.LocalhostWidgetUrl) == false;
        }
Esempio n. 2
0
        private void WebBrowserOnBeginNavigation(object sender, BeginNavigationEventArgs beginNavigationEventArgs)
        {
            if (SwitchAccounts == null)
            {
                return;
            }

            string url            = beginNavigationEventArgs.Url;
            var    switchAccounts = (SwitchAccountsCommand)SwitchAccounts;

            switchAccounts.IsEnabled = url.StartsWith(AuthenticationManager.LocalhostWidgetUrl) == false;
        }
        private void AuthBrowserOnBeginNavigation(object sender, BeginNavigationEventArgs beginNavigationEventArgs)
        {
            if(_authManager == null)
                return;

            string url = beginNavigationEventArgs.Url;
            CanSwitchAccounts = url.StartsWith(AuthenticationManager.LocalhostWidgetUrl) == false;
        }
Esempio n. 4
0
		void webView_BeginNavigation(object sender, BeginNavigationEventArgs e)
		{
			_url = e.Url;
		}
Esempio n. 5
0
        private void internalBeginNavigationCallback( IntPtr caller, IntPtr url, IntPtr frame_name )
        {
            BeginNavigationEventArgs e = new BeginNavigationEventArgs( StringHelper.ConvertAweString( url ),
                StringHelper.ConvertAweString( frame_name ) );

            if ( String.IsNullOrEmpty( e.Url ) )
            {
                this.Title = AwesomiumSharp.Resources.TITLE_Error;
                return;
            }

            actualSource = e.Url;

            this.Title = AwesomiumSharp.Resources.TITLE_Navigating;
            this.Source = new Uri( e.Url );
            this.IsNavigating = true;
            this.CoerceValue( WebControl.IsLoadingPageProperty );
            this.CoerceValue( WebControl.HistoryBackCountProperty );
            this.CoerceValue( WebControl.HistoryForwardCountProperty );
            this.OnBeginNavigation( this, e );

            CommandManager.InvalidateRequerySuggested();
        }
Esempio n. 6
0
 /// <summary>
 /// Raises the <see cref="BeginNavigation"/> event.
 /// </summary>
 protected virtual void OnBeginNavigation( object sender, BeginNavigationEventArgs e )
 {
     if ( BeginNavigation != null )
         BeginNavigation( sender, e );
 }
Esempio n. 7
0
 void webView_BeginNavigation(object sender, BeginNavigationEventArgs e)
 {
     _url = e.Url;
 }
		private void WebBrowserOnBeginNavigation(object sender, BeginNavigationEventArgs beginNavigationEventArgs)
		{
			if (SwitchAccounts == null)
				return;

			string url = beginNavigationEventArgs.Url;
			var switchAccounts = (SwitchAccountsCommand)SwitchAccounts;
			switchAccounts.IsEnabled = url.StartsWith(AuthenticationManager.LocalhostWidgetUrl) == false;
		}
Esempio n. 9
0
        private void internalBeginNavigationCallback( IntPtr caller, IntPtr url, IntPtr frame_name )
        {
            BeginNavigationEventArgs e = new BeginNavigationEventArgs( StringHelper.ConvertAweString( url ),
                StringHelper.ConvertAweString( frame_name ) );

            this.IsDomReady = false;
            RaisePropertyChanged( "IsLoading" );
            this.OnBeginNavigation( this, e );
        }
Esempio n. 10
0
        private void internalBeginNavigationCallback( IntPtr caller, IntPtr url, IntPtr frame_name )
        {
            BeginNavigationEventArgs e = new BeginNavigationEventArgs( StringHelper.ConvertAweString( url ),
                StringHelper.ConvertAweString( frame_name ) );

            actualSource = e.Url;

            this.IsDomReady = false;
            this.Source = new Uri( e.Url );
            this.CoerceValue( WebControl.IsLoadingPageProperty );
            this.OnBeginNavigation( this, e );
        }
Esempio n. 11
0
        private void internalBeginNavigationCallback(IntPtr caller, IntPtr url, IntPtr frame_name)
        {
            BeginNavigationEventArgs e = new BeginNavigationEventArgs(this, StringHelper.ConvertAweString(url),
                StringHelper.ConvertAweString(frame_name));

            if (OnBeginNavigation != null)
                OnBeginNavigation(this, e);
        }
 private void WebBrowserOnBeginNavigation(object sender, BeginNavigationEventArgs beginNavigationEventArgs)
 {
     ProcessBeginNavigation(beginNavigationEventArgs.Url);
 }
Esempio n. 13
0
        private void internalBeginNavigationCallback( IntPtr caller, IntPtr url, IntPtr frame_name )
        {
            BeginNavigationEventArgs e = new BeginNavigationEventArgs( StringHelper.ConvertAweString( url ),
                StringHelper.ConvertAweString( frame_name ) );

            RaisePropertyChanged( "IsLoading" );
            RaisePropertyChanged( "HistoryBackCount" );
            RaisePropertyChanged( "HistoryForwardCount" );
            RaisePropertyChanged( "Source" );
            this.OnBeginNavigation( this, e );
        }
 private void webControl_BeginNavigation(object sender, BeginNavigationEventArgs e)
 {
     if (webControl.Source.Scheme != "about")
     {
         this.RefreshButtonStatus();
         this.Title = e.Url.ToString();
         this.IsLoading = true;
         if (string.IsNullOrEmpty(e.FrameName))
         {
             this.webSourceControl.Source = new Uri(e.Url);
         }
     }
 }
Esempio n. 15
0
 void OnNavigating(object sender, BeginNavigationEventArgs e)
 {
     TabText = "Preview - Navigating to URL...";
 }