Hello,
TabbedPage is incompatible with .NET MAUI Shell apps, and an exception will be thrown if you attempt to use TabbedPage in a Shell app.
From TabbedPage document
Can I set the main page as a tabbed page but have no tabs, just a content page? And then can I launch other tabbed pages from a tabbed page?
Yes, you can set the MainPage to MainPage =new NavigationPage( new NewTabbedPage1());
in the app.xaml.cs. As note: NewTabbedPage1 is a Tabbedpage.
public partial class App : Application
{
public App()
{
InitializeComponent();
MainPage =new NavigationPage( new NewTabbedPage1());
}
}
Then when you need to navigate to second Tabbedpage, you can use Navigation.PushAsync
to do it, and it will keep the back icon.
await Navigation.PushAsync(new MyTabbedpagePage());
Best Regards,
Leon Lu
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.