Answered by:
Is Commanding available in 7.1?

Question
-
I was under the impression this would be included in 7.1, but I just tried looking for any concrete command classes (i.e. DelegateCommand) and could not find them. If it is available, anyone have any examples of its usage in WP? Thanks!Friday, June 10, 2011 3:01 AM
Answers
-
I have no idea what those classes are for, but all of the new APIs can be found on these pages:
What's New in Windows Phone Developer Tools
New APIs for Windows Phone OS 7.1
What's New in Silverlight for Windows Phone
If it's not in there, it's probably not in the Mango release.
Friday, June 10, 2011 3:16 AM
All replies
-
I have no idea what those classes are for, but all of the new APIs can be found on these pages:
What's New in Windows Phone Developer Tools
New APIs for Windows Phone OS 7.1
What's New in Silverlight for Windows Phone
If it's not in there, it's probably not in the Mango release.
Friday, June 10, 2011 3:16 AM -
Cool thanks. I found it supported for ButtonBase derived classes, but was hoping it would be supported for more; particularly ApplicationBarIconButtons. Oh well.Friday, June 10, 2011 5:20 AM
-
I think that you are searching for ICommand interface. As msdn documentation reported here http://social.msdn.microsoft.com/Forums/en-US/wpdevelop/thread/928b6124-d570-4f0e-ad58-33c03b1aeadc#928b6124-d570-4f0e-ad58-33c03b1aeadc it seems to be supported by WP7.Friday, June 10, 2011 6:32 AM
-
I think that you are searching for ICommand interface. As msdn documentation reported here http://social.msdn.microsoft.com/Forums/en-US/wpdevelop/thread/928b6124-d570-4f0e-ad58-33c03b1aeadc#928b6124-d570-4f0e-ad58-33c03b1aeadc it seems to be supported by WP7.
The ICommand has always been around, but the part that was missing is the actual execution of the Commands implemented from these classes - i.e. there was a tag for Command on Buttons, but it didn't work. So we had to resort to libraries (MVVM Light, Prism, etc.) to fill this gap, but there are limitations with these methods.Commanding has now been added for Buttons and Hyperlinks and seems to be working; although I had hoped for the obvious - Commanding for the app bar buttons.I do appreciate the post though.Saturday, June 11, 2011 2:44 AM -
You can also take a look at this post: Building a Reusable ICommand implementation for Windows Phone Mango MVVM apps
Friday, June 17, 2011 4:58 PM -
Thanks, it's good to see the actual implementation of DelegateCommands; I've just been using the ones that ship with the Prism libraries until know - maybe I'll roll my own.Tuesday, June 21, 2011 2:31 AM
-
Commanding comes with the Windows Phone 7.1 Mango update. Here are some helpful posts with examples:
Building a Reusable ICommand implementation for Windows Phone Mango MVVM apps
Windows Phone Mango: Getting Started with MVVM in 10 Minutes
Hope this will help you.
Thursday, June 23, 2011 4:03 PM