Bind to existing ViewModel - WP7

Topics: Actions & Coroutines
May 27, 2011 at 1:44 PM
Edited May 27, 2011 at 1:45 PM
Hello,
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

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

Can you help me ?
Coordinator
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.