Catel.MVVM.Navigation.NavigationAdapter.OnNavigatingEvent C# (CSharp) Method

OnNavigatingEvent() public method

Called when the Navigated event is invoked.
This method is public due to the fact that weak events are used. Otherwise, the navigation completed events could not be handled (because we unsubscribed from the RootFrame) when navigating away to prevent memory leaks. Please, do not call this method yourself, otherwise you can seriously ruin your apps.
public OnNavigatingEvent ( object sender, System.Windows.Navigation.NavigatingCancelEventArgs e ) : void
sender object The sender.
e System.Windows.Navigation.NavigatingCancelEventArgs The instance containing the event data.
return void
        public 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;
        }