New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NavigationContext does not contains parameters on INavigationService.GoBack #1221

Open
vkotov opened this Issue Oct 4, 2018 · 1 comment

Comments

Projects
None yet
2 participants
@vkotov

vkotov commented Oct 4, 2018

Steps to reproduce

  1. Navigate to page with parameters:
    var parameters = new Dictionary<string, object> { { "query", "search text"} }; _navigationService.Navigate<SearchViewModel>(parameters);
  2. Navigate to another page:
    _navigationService.Navigate<ResultViewModel>();
  3. Go back to previous page:
    if (_navigationService.CanGoBack) { _navigationService.GoBack(); }
  4. See parameters in SearchViewModel.OnNavigationCompleted overload.

Platform:
.NET version: 4.6.1
WPF System.Windows.Controls.Frame control used as root for navigation.

Expected behaviour

NavigationContext.Values should contains parameters like "query"/"search text".

Actual behaviour

NavigationContext.Values contains one key/value: "context"/null.

@GeertvanHorrik

This comment has been minimized.

Member

GeertvanHorrik commented Oct 30, 2018

@vkotov thanks for reporting. If you can provide a small repro, then we can hopefully fix this soon.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment