I'm currently working on a Xamarin.forms project using .NET Standard as code sharing strategy. This app use multiple pages/views. I try to use the MVVM pattern by using the MvvmLightLibsStd10 library. I already successfully setup the MVVM structure just like my previous problem:
Xamarin.Forms How to switch pages using MVVMLight
I following the same code structure. Every view (page) has his own ViewModel with all the logic. In the app there is a page that contains a Listview with objects. When an object is chosen, that object need to be passed to my second page viewmodel since I need to do something with this object in my secondVM. I already can get the selectedObject from the list in the Viewmodel of the listview view/page. I like to respect the MVVM concept as close as possible, so I to try to avoid code behind of a view as much as possible.
Sure, there must be a way to build a multipaged app with MVVM and pass data between the pages. But I really don't know how to do this. Since I am novice user to MVVM in Xamarin.forms.
I like to keep The header with back button navigation in tact. Thanks in advance.