Shell Navigation using query parameters

Ronald Rex 1,666 Reputation points
2023-05-09T20:24:19.0266667+00:00

I am trying to pass a query parameter in a shell application. The code is below. I have this code decorating the viewmodel

[QueryProperty(nameof(PayerMode), nameof(PayerMode))].

I shouldnt have to bind to anything to pass a parameter to another page, correct?

	async Task SavePayer() =>
				await Shell.Current.GoToAsync($"{nameof(PayerEditView)}?PayerMode = Edit");
.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,087 questions
C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
10,528 questions
{count} votes