I have a Metro style MVVM application and I've used MetroSliver to resolve view models and dependancies.
The problem is that, even if I've registered a ViewModel a singleton, a new instance is returned every time the page connected to that view model is displayed.
Here is my scenario:
- I open the application: the MainViewModel (connected to the main page) is invoked and the constructor is invoked.
- I go into a detail page
- I go back into the main page: the MainViewModel constructor is invoked again, while it shouldn't happen since I've registered MainViewModel as a singleton