liveBook · Manning

GoToAsync

As explained in .NET MAUI in Action

GoToAsync is a .NET MAUI Shell navigation method that asynchronously navigates to a route and can carry parameters.

GoToAsync is the asynchronous .NET MAUI Shell method for navigating to a registered route instead of directly supplying a page instance. It enables programmatic navigation to pages outside tabs or flyout items. section 7.5.4

Use GoToAsync procedurally:

  • Pass query values or a Dictionary<string, object> navigation state when the destination needs data. section 7.5.5

Navigate to product details

A button creates a Product, places it under the "Product" key, and navigates with await Shell.Current.GoToAsync("productdetails", pageParams). ProductPage receives it through [QueryProperty(nameof(Product), nameof(Product))], then exposes values for XAML bindings.

How .NET MAUI in Action covers it

How deep it goes
Explains route registration, asynchronous calls, query values, dictionary state, and QueryProperty handling without covering navigation internals.
Examples
Demonstrates LoginPage access and a ProductPage receiving a mock Product from InputPage.
What it assumes
Assumes basic Shell pages and C# event handlers while demonstrating route registration and parameter receipt.
What you can do after
Apply it via Shell.Current.GoToAsync to navigate between registered pages and transfer query or object parameters.
How it connects
Connects Shell navigation with routes, query parameters, QueryPropertyAttribute, and data binding.

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.