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
