Hello,
I am reading Shawn Wildermuth's article on architecting Silverlight applications using MVVM light :- http://wildermuth.com/2010/01/02/Architecting_SL4_Apps_with_RIA_Services_MEF_and_MVVM_-_Part_4_%28of_3%29
I just wonder what is the difference between :-
<Button
Content="Previous Page" >
<i:Interaction.Triggers>
<i:EventTrigger EventName="Click">
<i:InvokeCommandAction CommandName="PreviousPage"/>
<ei:CallMethodAction TargetObject="{Binding ElementName=grid}"/>
</i:EventTrigger>
</i:Interaction.Triggers>
</Button>
And
<Button Command="{Binding PreviousPage}"
Grid.Row="0"
Content="Previous Page" />
When would you specifically use triggers?
Thanks in advance :)