WP7: ViewModel is not binding with View

Topics: Conventions
Jul 30, 2012 at 1:11 PM


I have my views in 'Views' folder and ViewModels in ViewModels folder. I have named my view and viewmodel like these

View : LoginPage

VM : LoginPageViewModel.

It seems that the view is not binding with ViewModel. do i have to specify anything in view to resolve the VM ?

Jul 31, 2012 at 3:13 AM

are you registering the ViewModels with the IoC container in the bootstrapper?

Jul 31, 2012 at 4:47 AM

yes, like the below.


Jul 31, 2012 at 10:46 AM

I fixed this, was happening bevause the view and viewmodel name spaces are not in equal level

Aug 1, 2012 at 3:02 AM

that would indeed cause the issue