views:

60

answers:

0

Hello , You wrote:

"I would use an ApplicationController which instantiates the LoginViewModel and shows the LoginView. When the user proceeds with the login screen the ApplicationController closes the LoginView and shows the MainView with its MainViewModel.

How this can be done is shown in the sample applications of the WPF Application Framework (WAF) project"

Link: http://stackoverflow.com/questions/1484233/wpf-mvvm-closing-a-view-from-viewmodel

I'm using WAF for my project and I didn't find a sample with LoginViewModel.

Could you explain me how I instantiate the LoginViewModel and how manage the dialogResult of LoginView please?