Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

4
  • Paul, I get the Compiler Error "Invalid expression ')'" when I use the syntax you suggest above. Commented May 1, 2009 at 12:24
  • the ** characters are to show emphasis - they should not be in the code you actually cut and paste. Commented May 1, 2009 at 14:41
  • 1
    Paul thanks you are right. I should have realized the ** on either side were for emphasis. Your solution works. I marked Kent's solution as the answer because it is simpler (or should I say easier to understand without the lambda expressions). Commented May 1, 2009 at 15:57
  • Would you mind editing your answer to show = new RelayCommand(param => this.CommandWithAParameter(param)). I think that will be easier for others to understand and they won't make the same cut and paste mistake I made. I am guessing I don't have enough reputation points to edit other's answers yet otherwise I would do it myself. Commented May 1, 2009 at 16:00