liveBook · Manning

Hierarchical navigation

As explained in .NET MAUI in Action

Hierarchical navigation is a navigation pattern in which pages are organized in parent-child levels and users move through that hierarchy.

Hierarchical navigation organizes pages in a parent-child sequence and displays them through a navigation stack. The newest page appears on screen, while returning removes it from the stack. section 7.4.3

A typical .NET MAUI flow works like this:

  • Start with a menu or landing page containing buttons for the available destinations. section 7.4.3
  • Push a destination page programmatically with Navigation.PushAsync, such as await Navigation.PushAsync(new InputPage());. section 7.4.3
  • Return to the previous page with Navigation.PopAsync or the navigation bar’s back button. section 7.4.3

Menu-driven stock-taking app

MauiStockTake can begin with a menu page offering Input and Report buttons. Selecting one pushes its page onto the stack; tapping the back chevron pops that page and returns to the menu. section 7.4.3

Figure 7.9 In hierarchical navigation, a page can be pushed onto the stack (left) or popped from the stack (right), following a last-in, first-out pattern.

Visualize the last-in, first-out relationship between pushed and popped pages. section 7.4.3

How .NET MAUI in Action covers it

How deep it goes
Explains NavigationPage, stack behavior, back navigation, and PushAsync and PopAsync, but does not provide a complete implementation.
Examples
Uses a menu, Input page, Report page, navigation buttons, and a back chevron in MauiStockTake.
What it assumes
Assumes basic familiarity with pages while introducing navigation stacks and programmatic page transitions.
What you can do after
Apply it via NavigationPage, Navigation.PushAsync, and Navigation.PopAsync to build stack-based page flows.
How it connects
Contrasts with tabbed navigation, flyout navigation, and Shell-based route navigation.

Related concepts

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.