Using PageResolver to pass data in Shell. #37
-
Hello, I was wondering if I could use this plugin to pass data instead of using query parameters in Shell navigation. For example:
Navigating to Page:
I get an exception when I try this:
But I'm not sure if that is because I'm not allowed to do this if I am using Shell or I am doing something wrong. I saw a question similar to this but I was not sure if it meant this was allowed in Shell Navigation or not. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
Have you registered MyPage and your ViewModel with the DI container? |
Beta Was this translation helpful? Give feedback.
-
Thank you @IeuanWalker and @matt-goldman for the advice, you guys are correct. Shell did have mostly everything I needed. The only problem I had was not being able to resolve a popup page using Mopups, but using the Mopups extension in this package I was able to resolve that issue. :) |
Beta Was this translation helpful? Give feedback.
Agree here - using
Shell.Current.Navigation.PushAsync
doesn't really make sense.Shell
is within the navigation stack (where you would usePushAsync
), whereas navigation within …