This project has moved and is read-only. For the latest updates, please go here.

EventToCommand versus InvokeCommandAction

Apr 1, 2010 at 3:47 PM

Hi Laurent,

can you give me a reason to use EventToCommand over Blend's new InvokeCommandAction?
Is there any difference?
If not: have they asked, if they can use your source code? ;) Just kidding...


Apr 1, 2010 at 10:06 PM


Actually InvokeDataCommand was made before I did EventToCommand, and I "inspired" (aka stole) a lot of their code (with their permission).

I made EventToCommand because

- The WPF version was buggy and I wanted it to work the same in WPF and SL
- The CommandParameter was not bindable.
- I added the PassEventArgsToCommand property

I need to make a feature-to-feature comparison of InvokeDataCommand vs EventToCommand in SL4/WPF4 and see if maybe we can get rid ot EventToCommand. I will do that after SL4 is released.