7

Understanding Navigation

Until now, we’ve been working with one page at a time, with no way to get to a page except by setting it in AppShell.xaml. Of course, this will not do for a real application, so in this chapter, we’ll look at various options for navigating from page to page. As you’ll see, .NET MAUI uses shell navigation, a process we’ll look at in some depth.

This chapter includes the following topics:

  • Exploring the TabBar
  • Creating the About and Buddies pages
  • Shell navigation
  • Routing
  • Passing values from page to page

Technical requirements

To get the most out of this chapter, you’ll need a copy of Visual Studio. The source code for the completed code shown in this chapter can be found here: https://github.com/PacktPublishing/.NET-MAUI-for-C-Sharp-Developers/tree/Navigation ...

Get .NET MAUI for C# Developers now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.