Advertisement
Beginner .NET MAUI, Shell Navigation

What is .NET MAUI Shell?

Short answer

Shell is an app container that provides a common navigation structure: a flyout menu, bottom tabs, top tabs, and URI-based routing. It reduces boilerplate compared to manually composing NavigationPage and TabbedPage, and centralizes navigation, search handlers, and styling.

Save .NET MAUI mock interview
Advertisement
AModel answer
Shell is an app container that provides a common navigation structure: a flyout menu, bottom tabs, top tabs, and URI-based routing. It reduces boilerplate compared to manually composing NavigationPage and TabbedPage, and centralizes navigation, search handlers, and styling.
<Shell xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
       x:Class="MyApp.AppShell">
    <FlyoutItem Title="Home">
        <ShellContent ContentTemplate="{DataTemplate local:HomePage}" />
    </FlyoutItem>
</Shell>
Real-world example
A team gets a flyout, tabs, and deep-link routing for free by defining one AppShell instead of wiring navigation pages by hand.
Likely follow-ups
  • What navigation styles does Shell offer? | How do you register routes?
Related topics