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

Add shell parameters for passing complex objects #2004

Merged
merged 2 commits into from Aug 9, 2021

Conversation

PureWeen
Copy link
Member

@PureWeen PureWeen commented Aug 8, 2021

Description of Change

Add a method to GotoAsync that allows users to pass complex objects via Shell

xamarin/Xamarin.Forms#12465

Additions made

  • Shell.GoToAsync(ShellNavigationState state, IDictionary<string,object> parameters)
  • Shell.GoToAsync(ShellNavigationState state, bool animated, IDictionary<string,object> parameters)

Testing Procedure

When you navigate with Shell you can pass IDictionary<string,object> in the method, just like:

await Shell.Current.GoToAsync("//myAwesomeUri", new Dictionary { {"My key", someObj} });

@Redth Redth added this to the 6.0.100-preview.7 milestone Aug 9, 2021
@Redth Redth merged commit 9b1db5f into release/6.0.1xx-preview7 Aug 9, 2021
@Redth Redth deleted the shell_params branch August 9, 2021 15:30
@TonyLugg
Copy link

This is much needed! 👍

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-controls-shell Shell Navigation, Routes, Tabs, Flyout area-navigation NavigationPage
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants