Shell Navigation using query parameters

Ronald Rex 1,666 Reputation points

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");
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,087 questions
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