Пример #1
0
        /// <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 ContentFrameNavigated(object sender, MvvmNavigatedEventArgs e)
        {
            // Update the page type and parameter of the last navigation
            _sessionStateService.SessionState[LAST_CONTENT_NAVIGATION_PAGE_KEY]      = _contentFrameFacade.Content.GetType().FullName;
            _sessionStateService.SessionState[LAST_CONTENT_NAVIGATION_PARAMETER_KEY] = e.Parameter;

            NavigateToCurrentViewModel(e.NavigationMode, e.Parameter);
        }
Пример #2
0
        /// <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);
        }