Skip to content
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

[Bug] MasterDetail Navigation: OnNavigatedTo parameters is null #1857

Closed
michaelmairegger opened this issue Jul 26, 2019 · 3 comments
Closed
Labels

Comments

@michaelmairegger
Copy link
Contributor

michaelmairegger commented Jul 26, 2019

Description

If I navigate on a MasterDetailPage without specifying any NavigationParameters then the parameters method parameter passed to OnNavigatedFrom(INavigationParameters parameters) is null rather than empty.

In the other case if I explicitly call _navigationService.NavigateAsync("viewname, null)
the parameters method parameter passed to OnNavigatedTo(INavigationParameters parameters) is not null but empty.

Expected Behavior

The value of parameters is a empty collection

Actual Behavior

The value of parameters is null

related #1589

@brianlagunas
Copy link
Member

The quick fix is to not pass null 😄

@brianlagunas
Copy link
Member

brianlagunas commented Jul 26, 2019

This was fixed. The update will be on MyGet shortly.

NOTE: There is a limitation with the use of a query string parameter (for example ?name=brian). This will not be supported. If you wish to use parameters in this SPECIFIC scenario, you must use the NavigationParameters class.

@lock
Copy link

lock bot commented Jan 28, 2020

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked as resolved and limited conversation to collaborators Jan 28, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants