| | Microsoft Belgiƫ & Luxemburg - MSDN - The Command Pattern In Windows Presentation Foundation: |
 | | This design pattern basically abstracts all actions the user can perform in an application into the notion of "commands"; it has been implemented in many different ways on top of various UI frameworks, but now, it has finally made it into the gut of the system itself. |
 | | According to its original description in the famous "Design Patterns" book by the so-called Gang of Four, the Command pattern allows you to "encapsulate a request as an object, thereby letting you parameterize clients with different requests, queue or log requests, and support undoable operations". |
 | | A command binding basically keeps track of a command, and provides four routed events that allow you to preview or handle the invocation of the event (PreviewExecuted and Executed, respectively), and that provide a means for you to indicate if the command can currently execute (PreviewCanExecute and CanExecute, respectively). |
| www.microsoft.com /belux/msdn/nl/community/columns/jdruyts/wpf_commandpattern.mspx (3511 words) |