MVVM Light EventToCommand and PRism+MEF

Apr 23, 2013 at 8:13 AM
Hi,
I asked this question several times in several sites in several forms but no answer: Is it possible to use EventToCommand with Prism+MEF because i want to handle xaml event in the view model without code behind and i need to send Event Args to the vew model .
Thanks
Coordinator
Apr 23, 2013 at 8:26 AM
Hi,

Did you try it? I don't see any reason why it shouldn't work. Note however that Blend triggers cannot react to all event types, only routed events.

Thanks
Laurent
Apr 23, 2013 at 9:53 AM
Like Laurent said, there is no reason for EventToCommand not to work in your PRISM/MEF application. If it helps, we are currently using it in our PRISM 4 solution (we are also using MEF for DI) so I can confirm it works.
Apr 24, 2013 at 7:22 AM
Edited Apr 24, 2013 at 7:28 AM
Hi,
This is great news. Please check this discussion at How to Trigger and handle TextChanged event from Text Box within DataGridColumnHeader in style Resource Dictionary where i wrote down the problem in details and help me rectify the errors.
Thanks