Root TabbedPage
A little bit more work is necessary for a TabbedPage
, and IPageServiceZero
is here to help!
First we'll need to register our TabbedPage
in the container. Add the following line to our registrations in MauiProgram.cs
:
Note we're using an AdaptedTabbedPage
instead of TabbedPage
until this Maui bug is fixed
We'll also need to register the pages and viewmodels the TabbedPage
is going to present, as well as the mappings from vm to page. See the Getting Started section for a walkthrough
Once we've registered everything in the container, this is how we configure and launch the app:
Simple.
Last updated