Prsim中实现控件原生命令使用与viewmodel绑定(类似MvvmLight中cmd:EventToCommand )
需要应用
xmlns:prism="http://prismlibrary.com/"
xmlns:i="http://schemas.microsoft.com/xaml/behaviors"
<i:Interaction.Triggers>
<i:EventTrigger EventName="ItemTapped">
<prism:InvokeCommandAction Command="{Binding ItemTappedEvent}"/>
</i:EventTrigger>
</i:Interaction.Triggers>