Prism: xamarin.forms TabbedPage switching tabs with navigating to child

Created on 16 Feb 2018  路  8Comments  路  Source: PrismLibrary/Prism

Hi.

I have TabbedPage with Children wrapped into NavigationPages. When trying to switch tabs and go to next page with
_await NavigationService.NavigateAsync($"BlnakApp1:///Main?{KnownNavigationParameters.SelectedTab}=Tab2/Content");_
app goes blank. It navigate to requested page but doesn't display anythig. Only on ios

Version: 7.0.0.396
Xamarin.Forms: 2.5.0.122203

Sample:
https://github.com/krzysiekkania7/TabbedPageSample

XF blocked by platform bug help wanted

Most helpful comment

I saw they placed it back in the backlog a couple of days before

BTW @brianlagunas in the above sample I noticed something weird, using the sample above updated to the latest Xam Forms version, on iOS and also Android, if I click on the GO button from the second tab "Categories" a navigation bar appears for the "Content" page which is to be expected since the tab is wrapped in a Navigation page but if I do this on the app start:

C# await NavigationService.NavigateAsync($"Main?{KnownNavigationParameters.SelectedTab}=Tab2/Content");

the "Content" page has no navigation bar, is this related to the Xam Forms bug or should I report it as a bug or am I missing something ?

All 8 comments

I have confirmed this as a bug within Xamarin.Forms. I have reproduced this in a non-Prism application and have submitted it to the XF GitHub issues for the Xamarin team to fix. I will update this issue when they have fixed their bug.

https://github.com/xamarin/Xamarin.Forms/issues/2562

It looks like they moved that issue to inactive - I hope it doesn't sit there too long.

Adding a Help Wanted tag to this issue. This is actually a Xamarin.Forms issue, however it is not likely to be worked on by the Forms team anytime soon. Anyone from the community who has capacity is encouraged to help out and tackle the issue xamarin/Xamarin.Forms#2562

Has anyone found a workaround for this one? Right now I'm navigating to the first tab page and immediately navigating the user to a child page with the stack. It feels a little hacky. Any ideas?

@lestersconyers this is a confirmed bug with Xamarin.Forms see the issue above. We've marked this help wanted. I would highly encourage you to submit a PR to Xamarin.Forms to fix the root issue.

Understood. Thank you.

I've left the comment on the main issue on XF repo to increase attention, hopefully they will try to fix it in some next releases. 馃槥

I saw they placed it back in the backlog a couple of days before

BTW @brianlagunas in the above sample I noticed something weird, using the sample above updated to the latest Xam Forms version, on iOS and also Android, if I click on the GO button from the second tab "Categories" a navigation bar appears for the "Content" page which is to be expected since the tab is wrapped in a Navigation page but if I do this on the app start:

C# await NavigationService.NavigateAsync($"Main?{KnownNavigationParameters.SelectedTab}=Tab2/Content");

the "Content" page has no navigation bar, is this related to the Xam Forms bug or should I report it as a bug or am I missing something ?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

znakeeye picture znakeeye  路  7Comments

brianlagunas picture brianlagunas  路  3Comments

tibitoth picture tibitoth  路  5Comments

vincentcastagna picture vincentcastagna  路  6Comments

kevinvella picture kevinvella  路  5Comments