D.R*_*ado 2 xaml mvvm mvvm-light eventtocommand windows-phone-8
这个有用的课程似乎已经从最新的MVVM Light版本中消失了,任何想法为什么或如何解决它?
我正在使用MvvmLightLibs.5.0.1.0,肯定是在MvvmLightLibs.4.1.27.0上.所以这个问题与一个EventToCommand Missing For Windows Phone App无关
环境: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>
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
4491 次 |
| 最近记录: |