MVVM light to Prism conversion

Jul 6, 2015 at 1:34 PM
Edited Jul 6, 2015 at 1:34 PM
How would I achieve the following in Prism (this is MVVM light)?

                        <local:RoutedEventTrigger RoutedEvent="{x:Static Validation.ErrorEvent}">
                                                    Command="{Binding EditVM.TheEntity.ConversionErrorCommand, Mode=OneWay}"
                                                    EventArgsConverter="{StaticResource BindingErrorEventArgsConverter}"
                                                    PassEventArgsToCommand="True" />
                        <local:RoutedEventTrigger RoutedEvent="{x:Static Binding.SourceUpdatedEvent}">
                                                    Command="{Binding EditVM.TheEntity.SourceUpdatedCommand, Mode=OneWay}"
                                                    EventArgsConverter="{StaticResource BindingSourcePropertyConverter}"
                                                    PassEventArgsToCommand="True" />
Jul 6, 2015 at 3:31 PM
Use the InvokeCommandAction behavior that is in the Prism.Interactivity library in Prism 5. It adds the ability to harvest event parameters when hooked up with an event trigger. See the Interactivity QuickStart for an example of its use.