Skip to content

Instantly share code, notes, and snippets.

@dylanberry
Last active April 18, 2020 18:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dylanberry/70fc2523e0c4e16dae751940babed32f to your computer and use it in GitHub Desktop.
Save dylanberry/70fc2523e0c4e16dae751940babed32f to your computer and use it in GitHub Desktop.
var tabbedPage = new TabbedPage();

tabbedPage.Children.Add(new ViewA());

var navigationPage = new NavigationPage(new ViewB());
tabbedPage.Children.Add(navigationPage);

// selectedTab=ViewB
tabbedPage.CurrentPage = navigationPage;

// selectedTab={ViewB|ViewC}
await navigationPage.PushAsync(new ViewC());
NavigationService.NavigateAsync("TabbedPage?selectedTab=ViewB/ViewC");

After talking to Dan, it was determined that we are going to change behaviour, if the selected tab is a navigation page, any subsequent pages requested in the uri will be pushed on to the existing stack within the selected tab. If developers wish to retain the existing modal functionality, they can use the useModalNavigation=true parameter.

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