views:

18

answers:

0

i am using EventTrigger in silverlight application to handle some events through MVVM model, trigger is working fine on the layoutroot controls, but there are some controls inside the pages resources but the trigger is not working with them :(

is there anything i should add or change the namespace or something ? here is my code

<i:Interaction.Triggers>
   <i:EventTrigger EventName="Loaded">
       <i:InvokeCommandAction Command="{Binding mediaElement_LoadedCommand}" CommandParameter="{Binding ElementName=mediaElement,Mode=OneWay}"> </i:InvokeCommandAction>
   </i:EventTrigger>
</i:Interaction.Triggers>