I am not able to use EventToCommand in my Windows Phone 8.1 App.
xmlns:i="clr-namespace:System.Windows.Interactivity;assembly=System.Windows.Interactivity"
xmlns:cmd="clr-namespace:GalaSoft.MvvmLight.Command;assembly=GalaSoft.MvvmLight.Extras.WP8"
I tried it also with assembly=GalaSoft.MvvmLight.Extras.WP81...
<controls:PivotItem Name="pivotItem">
<i:Interaction.Triggers>
<i:EventTrigger EventName="SelectionChanged">
<cmd:EventToCommand Command="{Binding SelectServiceCommand}"
CommandParameter="{Binding SelectedIndex, ElementName=pivotItem}"/>
</i:EventTrigger>
<!-- other stuff -->
</i:Interaction.Triggers>
I get the following erros:
- The member "Triggers" is not recognized or is not accessible.
- Unknown type 'EventTrigger' in XML namespace 'clr-namespace:System.Windows.Interactivity;assembly=System.Windows.Interactivity'
- Error 2 The attachable property 'Triggers' was not found in type 'Interaction'. ...
Can someone help me please?