private void OnNavigatingEvent(object sender, NavigatingCancelEventArgs e) { // We are navigating away var eventArgs = new NavigatingEventArgs(e.Uri.ToString(), e.NavigationMode.Convert()); RaiseNavigatingAway(eventArgs); e.Cancel = eventArgs.Cancel; }
private void OnNavigatingEvent(object sender, NavigatingCancelEventArgs e) { var sourcePage = string.Empty; if (e.SourcePageType != null) { sourcePage = e.SourcePageType.ToString(); } // We are navigating away var eventArgs = new NavigatingEventArgs(sourcePage, e.NavigationMode.Convert()); RaiseNavigatingAway(eventArgs); e.Cancel = eventArgs.Cancel; }
private void OnActivityPaused(object sender, ActivityEventArgs e) { _lastActivity = e.Activity; // We are navigating away var eventArgs = new NavigatingEventArgs(GetNavigationUri(e.Activity), NavigationMode.New); RaiseNavigatingAway(eventArgs); //e.Cancel = eventArgs.Cancel; }