Quantcast
Channel: patterns & practices: Prism
Viewing all articles
Browse latest Browse all 1878

New Post: MVVM light to Prism conversion

$
0
0
How would I achieve the following in Prism (this is MVVM light)?
<i:Interaction.Triggers>
                        <local:RoutedEventTrigger RoutedEvent="{x:Static Validation.ErrorEvent}">
                            <e2c:EventToCommand
                                                    Command="{Binding EditVM.TheEntity.ConversionErrorCommand, Mode=OneWay}"
                                                    EventArgsConverter="{StaticResource BindingErrorEventArgsConverter}"
                                                    PassEventArgsToCommand="True" />
                        </local:RoutedEventTrigger>
                        <local:RoutedEventTrigger RoutedEvent="{x:Static Binding.SourceUpdatedEvent}">
                            <e2c:EventToCommand
                                                    Command="{Binding EditVM.TheEntity.SourceUpdatedCommand, Mode=OneWay}"
                                                    EventArgsConverter="{StaticResource BindingSourcePropertyConverter}"
                                                    PassEventArgsToCommand="True" />
                        </local:RoutedEventTrigger>
                    </i:Interaction.Triggers>

Viewing all articles
Browse latest Browse all 1878

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>