Tabbed pages in MAUI
Hello I'm trying to create a TabbedPage in MAUI using the following code:
I get 2 errors:
Partial declarations of 'DashboardView' must not specify different base classes
and Argument 1: cannot convert from 'Project.View.DashboardView' to 'Microsoft.Maui.Controls.Page
If i change <TabbedPage>
to ContentPage
it works.
Here's the line of code where the error occurs:
4 Replies
Show what's in
DashboardView.xaml.cs
as wellprobably having problems because your main page (now a
TabbedPage
) is still extending ContentPage
change your code in
DashboardView.xaml.cs
to
and after that change the DashboardView.xaml
to TabbedPage
again.