Windows phone 8 如何使用命令选择更改的轴控件

Windows phone 8 如何使用命令选择更改的轴控件,windows-phone-8,mvvm-light,Windows Phone 8,Mvvm Light,我正在使用最新版本的MVVMLight开发一个WP应用程序。我知道如何使用命令而不是在按钮单击事件中编写代码 <Button Content='Push me' Command='{Binding DisplayMessageCommand}' /> 但是,如何使用枢轴控制的SelectionChanged命令? 我不想在xaml页面的code behind.cs文件中的SelectionChanged事件中编写代码 <i:Interaction.Triggers>

我正在使用最新版本的MVVMLight开发一个WP应用程序。我知道如何使用命令而不是在按钮单击事件中编写代码

<Button Content='Push me' Command='{Binding DisplayMessageCommand}' />

但是,如何使用枢轴控制的
SelectionChanged
命令? 我不想在xaml页面的code behind.cs文件中的
SelectionChanged
事件中编写代码


<i:Interaction.Triggers>
  <i:EventTrigger EventName="SelectionChanged">
    <i:InvokeCommandAction Command="{Binding SampleCommand}"/>
  </i:EventTrigger>
</i:Interaction.Triggers>