I develop an universal app Windows 8.1/ Windows Phone 8.1 with MVVMLight.
I would like to know which is the best practice to implement navigation between the pages.
There is the following pages:
- MainPage: is a login page
- HomePage: is a hub with different sections "list of themes", "list of contacts", "user details"
- ListArticlesFromTheme : list of articles for the selected theme
- DetailsContact : details of the selected contact
- DetailsArticle : details of the selected article
I need so to pass parameters by navigating from a page to another: the selected theme, the selected contact, the selected article, ...
I found an example implementation of navigation tavers MVVMLight v5, but without parameters:
navigationservice-in-mvvm-light-v5
I found another example with the parameters, but I haven't managed to implement it:
navigating-to-a-new-page-from-the-view-model-in-windows-phone-8-1-universal-app
- Is it better to manage navigation through the Views or the ViewModels?
- Do you have a more detailed example showing navigation with parameters?