Bind to existing ViewModel - WP7

Topics: Actions & Coroutines
May 27, 2011 at 1:44 PM
Edited May 27, 2011 at 1:45 PM
I have one MainPage + MainPageViewModel and LoginPage. I want to "SHARE" viewmodel MainPageViewModel with LoginPage.
When I use cal:Bind.Model="MainPageViewModel" on LoginView.xaml, 
it crashes on file

line 181
var viewModelType = viewModel.GetType();
and tells me that viewModel is NULL

Can you help me ?
May 27, 2011 at 1:49 PM

Can you email me a simple solution that reproduces your problem? You can send it to robertheisenberg at hotmail dot com I should be able to look at it this weekend.