liveBook · Manning

AppShell

As explained in .NET MAUI in Action

AppShell is the template application's .NET MAUI class that defines the app's Shell hierarchy and navigation structure.

AppShell is the .NET MAUI class that defines an application's Shell hierarchy and navigation structure. The app assigns an AppShell instance to App.xaml.cs instead of assigning MainPage directly. section 7.5.3

Configure AppShell through XAML:

  • Use Shell as the root element and add ShellContent entries for pages. section 7.5.3
  • Set Title for navigation and tab labels. section 7.5.3
  • Use ContentTemplate with a DataTemplate to load a ContentPage when navigation reaches it. section 7.5.3

Tabbed MauiStockTake shell

A TabBar can expose InputPage and ReportPage as separate tabs. Each Tab contains ShellContent whose DataTemplate points to the corresponding page, allowing the pages to be created and navigated between.

How .NET MAUI in Action covers it

How deep it goes
Explains ShellContent, titles, templates, tabs, and flyouts, without detailing advanced navigation behavior.
Examples
Uses a MauiStockTake shell with InputPage and ReportPage tabs, icons, routes, and a logout flyout item.
What it assumes
Assumes a .NET MAUI project and basic XAML familiarity while introducing Shell-based startup and navigation.
What you can do after
Configure a .NET MAUI app's tabs, flyouts, page templates, titles, and initial Shell entry point.
How it connects
Connects .NET MAUI Shell with ContentPage, DataTemplate, tabs, flyouts, and application startup.

This explainer was generated by Manning's knowledge graph from the text of .NET MAUI in Action. The section links point to the parts of the book it draws on.