Using Shell
The INavigation
interface and NavigationPage
provide basic navigation functionalities. If we rely on them only, we have to create complicated navigation mechanisms by ourselves. In .NET MAUI, there are built-in page templates to choose from, and they can provide different navigation experiences.
As shown in the class diagram in Figure 5.2, there are built-in pages available for different use cases. All these pages – TabbedPage
, ContentPage
, FlyoutPage
, NavigationPage
, and Shell
– are derived classes of Page
:
Figure 5.2: Class diagram of the built-in pages in .NET MAUI
ContentPage
, TabbedPage
, and FlyoutPage
can be used to create various user interfaces per your requirements.
ContentPage
is the most used page and can include any layout and view elements. It is suitable in the case of a single-page design.TabbedPage
can be used to host multiple pages. Each child page can be selected by a series of tabs at the top or bottom...