AppBarButton Message Property in WP7 apps

Oct 9, 2010 at 5:23 PM
Edited Oct 9, 2010 at 5:43 PM

Maybe I missed a post, but if I have a method called About() in my WP7 ViewModel, and I set up an AppBarButton with Message="About", it does not fire the About() method in the ViewModel. All the other conventions work just fine (buttons, property binding, etc.). Please, what did I miss? That was one of my last annoyances - I had to use code-behind to handle ApplicationBarIconButton clicks.

Update: I was using the std convention of the AppBarButton being named 'About', which is what I was also setting the message to. Once I changed it and aligned the ViewModel name, it worked