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.
