0

I am using a NavigationWindow to house my pages in this WPF application. I am just learning MVVM with WPF and have been looking for a good solution to navigating pages while maintaining MVVM.

I have a LoginViewModel that does all SQL database credential checking, once the credentials have been verified against a Password Hash I want to navigate to a new page depending on who logs in.

I am looking for some suggestions or common answers to this solution. I have done a lot of research and keep seeing IOC containers or an application view model? I wanted to get some other opinions on the matter and possibly a point in the right direction!

Thanks!

Eric Obermuller
  • 245
  • 3
  • 19

1 Answers1

0

I would suggest using a framework to achieve the IOC container solution. Mvvm light for example uses a ViewModelLocator to store its ViewModels. An example for page navigation in MVVMLight can be found here.

Michael Hufnagel
  • 537
  • 1
  • 3
  • 13