Replies: 2 comments 1 reply
-
I have the same problem; can anyone show some basic sample about how to do it? Many thanks! |
Beta Was this translation helpful? Give feedback.
0 replies
-
Not sure if it's the best approach, but here's what I've done and it works for me:
var viewModel = new YourViewModel(); //Add all the required data for your VM here
_navigationService.Navigate(typeof(YourPage), viewModel); That's all, I'll appreciate if anyone has a better alternative and wants to share it here as well. Regards |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Today I wanted to give this beautiful library a shot, so I was playing around with it and everything was just fine until I tried to test some stuff as I usually do in MVVM pattern which one of them is passing data between view models, I went to the navigation documentation but didn't found anything related to this case, the idea is for example: ProductListViewModel we have many products and each of them has details page, I'm trying to pass the product Id to the product details view model.
how to work with this scenario, any workaround for that?
Thanks in advance
Beta Was this translation helpful? Give feedback.
All reactions