Dom*_*ikP 5 mvvm-light eventtocommand windows-phone-8 windows-phone-8.1
我无法在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"
Run Code Online (Sandbox Code Playgroud)
我也尝试使用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>
Run Code Online (Sandbox Code Playgroud)
我得到以下错误:
有谁可以帮助我吗?
| 归档时间: |
|
| 查看次数: |
2754 次 |
| 最近记录: |