Shell Navigation using query parameters

Ronald Rex 1,671 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");
Developer technologies | .NET | .NET MAUI
Developer technologies | C#
Developer technologies | 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.
{count} votes

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.