ViewModel Property binded to ContentControl stay blank

Feb 9, 2011 at 6:28 PM

Hey all,

I'm facing a problem that I have use on other project and that works fine. But on one particular project It does not and I do not know what I have done wrong.

I have a searchViewModel with a property Binded to a ContentControl of its view SearchView.

The binded attribute is another ViewModel. I can debug and I can see the property containing the other ViewModel but the content control stay dramaticaly blank.

I raise a NotifyPropertyChange when the property is set but the ContentControl stay dramatically blank... :( Any idea where I should start looking at?

thanks for any help.

Coordinator
Feb 9, 2011 at 7:54 PM

Would it be possible for you to send me a simple solution that reproduces the behavior?

Feb 11, 2011 at 9:05 AM

Thanks for your quick reply.

The fact is I know it should work. I have done it on other projects and it worked. I took the Gamelibrary and it works there as well. :(

It is something I am doing wrong. I was just hopping for a tip or an advice on where I should start looking for a binding from a view to a property of the view model that returns another ViewModel that doesn't work.

There is probably someting like a default bindding manager by convention or something that his doing the binding itself and instantiating the screen.

Any idea? I know it is not easy but I tryed to prototype the error and it works on the prototype :(

I'm applying the same pattern of the GameLibrary sample (SearchView, ResultView,NoResultView...)

Thansk for any help

 

Feb 11, 2011 at 11:26 AM

Maybe you can post some snippet of the binding to ContentControl and the VM property... 

Feb 12, 2011 at 9:40 AM
Edited Feb 12, 2011 at 9:41 AM

Thanks for the help.

I find out my mistake. A tipo in the name of the controls that is bind by convention to the child view model. :)

I knew it was something fullish :)