Navigating to Tabbed Page

喜夏-厌秋 提交于 2019-12-13 20:26:59

问题


I have a ContentPage(Login Page) that should navigate to my TabbedPage(TabPage). The problem is when I use the code:

await Application.Current.MainPage.Navigation.PushModalAsync(new TabbedPage());

to navigate to my tab page is not displaying anything.

This is what I am seeing when I use the code above:

And this is what I am seeing when I set the Main Page:


回答1:


The Reason it is not working is that you are using the Xamarin.Forms.TabbedPage in place of your own TabbedPage

Changing that should solve your issue,

Good luck revert if this does not work

I would suggest one more thing your Page naming convention should be different so that you do not confuse yourself and the compiler.

For Eg, if your page has a TabbedPage and your functionality for it is something like playing music and different tabs for different types of it then you name it as MusicTabbedPage for better understanding



来源:https://stackoverflow.com/questions/55181779/navigating-to-tabbed-page

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!