Skip to content

WPF Commands – ICommand, RoutedCommand, RoutedUICommand

May 24, 2007

Commands aren’t necessarily the first thing you want to go deep on in WPF, however they are a wonderful feature that a number of people write about when they discover them.  My current side project, a Xaml Tool called XamlT, is my first big foray into WPF Commands.

compilewith.net just posted a nice writeup, discusses that fact how Chris Andersen‘s book covers them and then how Sells/Griffith‘s book adds additional info.

Previous writeups on Commands

Back in Feb 2006, I posted about WPF Commands pointing to Jelle Druyts’ article and Ian Griffith May 2005 post about "Avalon Input, Commands and Handlers".

Back in 9/2006, I linked to Keyvan Nayyeri’s article on Commands in Avalon as well.  I notice that he has done a more recent post on "How to add Commands to Custom WPF Control"

In MSDN, the WPF SDK covers commanding with: "Commanding Overview" and "Input and Commanding How-to Topics"

Useful at BusinessObject level?

Just yesterday WPF Architect Mike Hillberg, .Net Design Guidelines expert Krzysztof Cwalina and I were discussing ICommand (the foundation of WPF Commanding) and whether it (or the higher level RoutedCommand/RoutedUICommand) could be used on Business Objects…interesting area to dig into…

From → WPF

4 Comments
  1. Nhan permalink

    Rob, It was great running into you at MIX07.Cool pointers.  I love the Commands concept in WPF. Here are a few other resources that I found when I was looking into commands:

    Adam
    Nathan’s sample chapter on Important New Concepts in WPF: Commands

    MSDN
    article: The Command Pattern In WPF

    MSDN
    Library: CommandBinding Class

  2. John permalink

    Uh, you definitely do NOT want to couple a RoutedUICommand to your business object layer.  Doing so tightly couples your business layer to the WPF element tree.By the way, is there any way you can enable showing the year as part of the timestamp on blog posts and blog post  comments?  It is so vexing seeing "May 24" and not knowing what year someone wrote something.

  3. John permalink

    Uh, you definitely do NOT want to couple a RoutedUICommand to your business object layer.  Doing so tightly couples your business layer to the WPF element tree.By the way, is there any way you can enable showing the year as part of the timestamp on blog posts and blog post  comments?  It is so vexing seeing "May 24" and not knowing what year someone wrote something.

  4. Unknown permalink

    HTML clipboardالرياضة
    – forum
    – كورة
    – المنتدى
    – الدوري
    – car
    – صور
    – فيديو
    – تصميم
    – Design
    – kooora
    – yasser
    – ball
    – kaka
    – رياضة
    – foot ball
    – sport
    – Untitled
    – مواضيح عامة
    -مواضيع  – كوره
    – Home User – Profile – Archives – tags
    – blogs

     K O R A
    –  kaka

    Spain

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: