我无法在我的Windows Phone 8.1应用中使用EventToCommand。
xmlns:i="clr-namespace:System.Windows.Interactivity;assembly=System.Windows.Interactivity"
xmlns:cmd="clr-namespace:GalaSoft.MvvmLight.Command;assembly=GalaSoft.MvvmLight.Extras.WP8"
我也尝试使用了[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>
我遇到了以下错误:
- 成员 "Triggers" 未被识别或无法访问。
- 在 XML 命名空间 'clr-namespace:System.Windows.Interactivity;assembly=System.Windows.Interactivity' 中未知类型 'EventTrigger'
- 错误 2:在类型 'Interaction' 中未找到可附加的属性 'Triggers'。...