/// <summary> /// Handles the Navigated event of the Frame control. /// </summary> /// <param name="sender">The source of the event.</param> /// <param name="e">The <see cref="MvvmNavigatedEventArgs"/> instance containing the event data.</param> private void frame_Navigated(object sender, MvvmNavigatedEventArgs e) { // Update the page type and parameter of the last navigation _sessionStateService.SessionState[LastNavigationPageKey] = _frame.Content.GetType().FullName; _sessionStateService.SessionState[LastNavigationParameterKey] = e.Parameter; NavigateToCurrentViewModel(e.NavigationMode, e.Parameter); }
private void FacadeNavigatedEventHandler(object sender, NavigationEventArgs e) { foreach (var handler in _navigatedEventHandlers) { var eventArgs = new MvvmNavigatedEventArgs() { NavigationMode = e.NavigationMode, Parameter = e.Parameter }; handler(this, eventArgs); } }