Mike Taulty's Blog
Bits and Bytes from Microsoft UK
MSDN Article on WPF Command Routing
Mike Taulty's Blog

Mike's Badges

Follow on Twitter
View mike's profile on slideshare
Add to Technorati Favorites
CW Blog Awards
 
I spent a few years writing MFC code towards the end of the 1990's. One of my favourite things about the MFC was that it had a framework built into it for dealing with commands that the user executed. That framework dealt with whether the command was currently applicable or not (perhaps by enabling/disabling that piece of the UI) and it also dealt with routing the invocation of the command to a piece of code that could handle it (like a View or a Document).
 
When Windows Forms came along I was shocked to find that it didn't have any kind of mechanism that provided the same kind of functionality that MFC had in this area of command routing. You can build one but it's not there in the box which means that controls that you buy and download and so on won't automatically take part in any existing infrastructure.
 
With the WPF the idea of a built in command mechanism is back and it's back with a vengeance.
 
There's a great new article just gone up on the MSDN site that explains at a high level how the WPF command infrastructure works and what it can do for you. There's not a lot of documentation out there right now as to how this works (although IanG has written well on it) so this is a welcome addition.
 

Posted Fri, Feb 17 2006 1:28 AM by mtaulty

Comments

mtaulty wrote re: MSDN Article on WPF Command Routing
on Wed, May 17 2006 4:02 AM
That is a really cool and useful feature! Thanks.
(C) Mike Taulty, 2009. All rights reserved. The information in this weblog is provided "AS IS" with no warranties, and confers no rights. This weblog does not represent the thoughts, intentions, plans or strategies of my employer. It is solely my opinion. Inappropriate comments will be deleted at the authors discretion. All code samples are provided "AS IS" without warranty of any kind, either express or implied, including but not limited to the implied warranties of merchantability and/or fitness for a particular purpose.
Powered by Community Server (Non-Commercial Edition), by Telligent Systems