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

Xamarin.Forms navigating from tab to another tab #1333

Closed
Arbalets opened this issue Jan 16, 2018 · 9 comments
Closed

Xamarin.Forms navigating from tab to another tab #1333

Arbalets opened this issue Jan 16, 2018 · 9 comments

Comments

@Arbalets
Copy link

Description

I have converted my project from Prism 6.3. Everything is working fine except navigating from TabbedPage tab to another tab in the same page.
I have a MasterDetail page from where I can navigate to all the TabbedPage tabs.

In 6.3 I had there following:

NavigationPage/MyTabbedPage/TabPageA
NavigationPage/MyTabbedPage/TabPageB
NavigationPage/MyTabbedPage/TabPageC

I replaced them with:

NavigationPage/MyTabbedPage?selectedTab=TabPageA
NavigationPage/MyTabbedPage?selectedTab=TabPageB
NavigationPage/MyTabbedPage?selectedTab=TabPageC

Steps to Reproduce

When navigation from another page everything works fine, but when already in some of the tabs and trying to navigate to another tab (from MasterDetail) nothing happens.

Expected Behavior

Go to the selected tab.

Actual Behavior

Nothing happens.

Basic Information

  • Version with issue: 7.0.0.362
  • Last known good version: 6.3
  • Xamarin.Forms version: 2.5.0.122203
@brianlagunas
Copy link
Member

brianlagunas commented Jan 16, 2018

Oh wait... I had to re-read that. I see that you are navigating from a MasterDetailPage, not from within the actual TabbedPage. This is actually a very interesting scenario. Can you please provide a sample app that sets up the scenario that I can use to test the behavior out?

@Arbalets
Copy link
Author

Arbalets commented Jan 16, 2018

Sure, here you go: https://github.com/Arbalets/TabNavigation
I've included 6.3 sample as well, just for comparison.

@brianlagunas
Copy link
Member

Done. You can test it out in the latest CI builds on MyGet, or wait for the SR release.

@Arbalets
Copy link
Author

Thanks

@dazinator
Copy link

dazinator commented Feb 13, 2018

I just updated from 7.0.0.362 to 7.0.0.396 and wanted to confirm that it solved my problem, which was: When navigating to a tabbed page, the default content page (tab) would be displayed. however it's viewmodel was not activated by prism and so it's UI was not data bound. After the NuGet package update to latest version it worked. Thank you.

@dazinator
Copy link

dazinator commented Feb 13, 2018

Turns out I spoke to soon, the issue was not completely resolved after upgrading. I think perhaps the fix wasn't in 7.0.0.396. I'll await the next release!

@brianlagunas
Copy link
Member

The fix is not on Nuget, it's in our CI feed.

@dazinator
Copy link

Ok great, I have grabbed the CI package, working as expected now, thanks

@lock
Copy link

lock bot commented Jan 29, 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 29, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants