private void AuthBrowserOnBeginNavigation(object sender, BeginNavigationEventArgs beginNavigationEventArgs) { if (_authManager == null) { return; } string url = beginNavigationEventArgs.Url; CanSwitchAccounts = url.StartsWith(AuthenticationManager.LocalhostWidgetUrl) == false; }
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; }
void webView_BeginNavigation(object sender, BeginNavigationEventArgs e) { _url = e.Url; }
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(); }
/// <summary> /// Raises the <see cref="BeginNavigation"/> event. /// </summary> protected virtual void OnBeginNavigation( object sender, BeginNavigationEventArgs e ) { if ( BeginNavigation != null ) BeginNavigation( sender, e ); }
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 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 ); }
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 ); }
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); }
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); } } }
void OnNavigating(object sender, BeginNavigationEventArgs e) { TabText = "Preview - Navigating to URL..."; }