我有网格控件,我需要传递MouseWheel事件来查看模型。WPF MVVM传递事件参数来查看模型
现在我这样做是这样的
<i:Interaction.Triggers>
<i:EventTrigger EventName="MouseWheel">
<i:InvokeCommandAction Command="{Binding MouseWheelCommand}" />
</i:EventTrigger>
</i:Interaction.Triggers>
,但我需要做的鼠标不同的动作向上滚动鼠标向下滚动。 如何做到这一点?
我可以在没有代码的情况下做到这一点,没有外部库吗?我使用C#,WPF,Visual Studio 2010 express。