WPF command/click argument

Posted by Joel Barsotti on Stack Overflow See other posts from Stack Overflow or by Joel Barsotti
Published on 2010-04-29T01:59:54Z Indexed on 2010/04/29 2:07 UTC
Read the original article Hit count: 500

Filed under:
|

So I have a background in ASP.NET where a button could have a click handler or a command handler and then a command argument.

That pattern was great for when you had a bunch of buttons that basically needed to execute the same block of code with only a slightly different argument.

Is there a collary in WPF?

From what I've seen of the Command in WPF is that it revolves around an action that is independent of the control that invokes it (and still doesn't provide a way to provide an argument). Which is not really what I need.

© Stack Overflow or respective owner

Related posts about wpf

Related posts about .NET