Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 58056

Share ViewModel between Views

$
0
0

I am using XLabs to do my MVVM.
I have a page with a listview. When I select a row I push to a new page. In my head it would be obvious to share the same ViewModel between the two views/pages. That way I already have the data I need in the page I push to, and if I pop back the data in the list is updated as well.

ViewFactory seems to only bind one View-ViewModel at a time?


Viewing all articles
Browse latest Browse all 58056

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>