internal void OnNavigated(NavigationEventArgs e) { if (this.Navigated != null) { this.Navigated(this, e); } }
private void OnNavigationStoped(NavigationEventArgs e) { if (this.NavigationStopped != null) { this.NavigationStopped(this, e); } }
private object NavigateInternal(Type sourcePageType, object parameter, NavigationType navigationType) { this.IsNavigationInProgress = true; // navigating from if (this.CurrentPage != null) { var navigatingCancelEventArgs = new NavigatingCancelEventArgs(sourcePageType, NavigationMode.New); this.CurrentPage.InternalOnNavigatingFrom(navigatingCancelEventArgs); if (navigatingCancelEventArgs.Cancel) { this.IsNavigationInProgress = false; return BooleanBoxes.FalseBox; } } // navigated from var navigationEventArgs = new NavigationEventArgs(sourcePageType, parameter); if (this.CurrentPage != null) { this.CurrentPage.InternalOnNavigatedFrom(navigationEventArgs); this.backStack.Push(this.CurrentPage); } // Create page var pageConstructorInfo = sourcePageType.GetConstructor(new Type[] { }); AppercodePage pageInstance; try { pageInstance = (AppercodePage)pageConstructorInfo.Invoke(new object[] { }); } catch (TargetInvocationException e) { this.IsNavigationInProgress = false; throw e.InnerException; } pageInstance.NavigationService = this.NavigationService; this.visualRoot.Child = pageInstance; this.NativeShowPage(pageInstance, NavigationMode.New, navigationType); this.modalIsDisplayed |= navigationType == NavigationType.Modal; // navigated to pageInstance.InternalOnNavigatedTo(navigationEventArgs); this.CurrentPage = pageInstance; this.IsNavigationInProgress = false; return BooleanBoxes.TrueBox; }
protected override void OnNavigatedTo(Navigation.NavigationEventArgs e) { base.OnNavigatedTo(e); }
public override void OnPageFinished(WebView view, string url) { base.OnPageFinished(view, url); //NOTE: Original Mictosoft WebBrowser control sets only Uri property // other are always set to default: // NavigationMode === New; // IsNavigationInitiator === true; var e = new NavigationEventArgs(new Uri(url), null); //TODO: Actually in this case event rising sequence will be different from original Microsoft control, so we need to make it closer to original control behavior _Parent.OnNavigated(e); _Parent.OnLoadCompleted(e); }
private void NativeWebView_LoadFinished(object sender, EventArgs e) { this.DefineWindowExternalNotifyScriptFunction(); this.RefreshNavigationHistoryProperties(); var e1 = new NavigationEventArgs(this.lastLoaded, null); this.OnNavigated(e1); this.OnLoadCompleted(e1); }
/// <summary> /// Rises Navigated event /// </summary> /// <param name="e">Events arguments object to use</param> internal void OnNavigated(NavigationEventArgs e) { if (this.Navigated != null) { // As I understand in WP8 // NavigationEventArgs.NavigationMode === New // NavigationEventArgs.Content === null // NavigationEventArgs.IsNavigationInitiator === true // for eny LoadCompleted calls this.Navigated(this, e); } }
protected virtual void OnNavigatedTo(NavigationEventArgs e) { }
internal void InternalOnNavigatedFrom(NavigationEventArgs e) { this.OnNavigatedFrom(e); }