Skip to content

How to pass query parameters for QueryProperty in shell. #14

Answered by matt-goldman
Awesomer9561 asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @Awesomer9561, just thought I'd revisit this discussion.

If you're using Shell, you can pass parameters as navigation properties. These can be picked up either by the page you are navigating to, or the page's binding context. You can see more in this doc: https://learn.microsoft.com/dotnet/maui/fundamentals/shell/navigation?view=net-maui-7.0#pass-data

Since writing my previous answer, passing parameters via the constructor is now possible with PageResolver. You can see more about this approach in the wiki: https://github.com/matt-goldman/Maui.Plugins.PageResolver/wiki/1-Using-the-PageResolver#15-use-parameters

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@Awesomer9561
Comment options

Answer selected by Awesomer9561
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants