这个有用的类似乎从最新的 MVVM Light 版本中消失了,知道为什么或如何解决它吗?
我正在使用 MvvmLightLibs.5.0.1.0,肯定存在于 MvvmLightLibs.4.1.27.0 上。所以这个问题与一个无关Windows Phone 应用程序缺少 EventToCommand
环境:VS2013、WP8.0
最终,我找到了EventToCommand
Galasoft.MvvmLight.Platform 上的类。我想作为一个多平台框架,程序集的更改是有意义的。
xmlns:Command="clr-namespace:GalaSoft.MvvmLight.Command;assembly=GalaSoft.MvvmLight.Platform"
<i:Interaction.Triggers>
<i:EventTrigger EventName="Tap" >
<Command:EventToCommand Command="{Binding Path=MyVM.MyCommand, Source={StaticResource Locator}}"
PassEventArgsToCommand="False"
CommandParameter="{Binding}"/>
</i:EventTrigger>
</i:Interaction.Triggers>
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)