Command and MVVM problem

Jun 10, 2011 at 5:02 PM

Hello, I am trying to use the Command on a PopupMenuItem (all in xaml) to call a method in my view model. I have the latest version. The method does not get called. A separate command button works. Is there an additional step I have misssed?

Also, is there a document somewhere showing XAML examples for all the features?

 

Coordinator
Jul 6, 2011 at 4:29 AM
Edited Jul 6, 2011 at 4:35 AM

I suggest you bind the command through a static resource instead. So after adding the latter using a key say 'ThemeCommand' the command implementation would look like this:

Command="{StaticResource ThemeCommand}"

 

The only examples with XAML I've provided are the ones included in the demo solution however.

As for the documentation you can expect to find it in the next release due in a week or two.