Binding to an MVVM Light relay command inside of a Windows Phone 7 item data template?

The problem is that inside a DataTemplate, the DataContext is the item itself, not your ViewModel. So when you say {Binding MyButtonActionClick} the binding is looking for a command called MyButtonActionClick on the item which I'm guessing is just a simple object and doesn't have command properties of its own.

As a side note, you may want to consider using the ButtonBaseExtensions class when associating commands with your buttons. This class can be found in the GalaSoft.MvvmLight. Command namespace in the GalaSoft.MvvmLight.

WP7 assembly.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions