Windows phone 7 使用windows phone 8未触发的EventTrigger点击事件

Windows phone 7 使用windows phone 8未触发的EventTrigger点击事件,windows-phone-7,mvvm,windows-phone-8,expression-blend,eventtrigger,Windows Phone 7,Mvvm,Windows Phone 8,Expression Blend,Eventtrigger,知道为什么我的项目(listboxitem模板的一部分)没有使用以下代码触发我的EventTrigger吗: <TextBlock Text="{Binding FieldLabel}" Grid.Column="0" Margin="5,0,0,0" Foreground="Black"> <i:Interaction.Triggers> <i:EventTrigger EventName="Tap"> <

知道为什么我的项目(listboxitem模板的一部分)没有使用以下代码触发我的EventTrigger吗:

<TextBlock Text="{Binding FieldLabel}" Grid.Column="0" Margin="5,0,0,0" Foreground="Black">
    <i:Interaction.Triggers>
        <i:EventTrigger EventName="Tap">
           <i:InvokeCommandAction x:Name="FieldLabelTap" Command="{Binding DisplayInfoCommand, Mode=OneWay}" CommandParameter="{Binding}" />
        </i:EventTrigger>
    </i:Interaction.Triggers>
</TextBlock>

我花了很多时间在这件事上,但我就是不知道我做错了什么,或者我错过了什么


谢谢。

问题解决了!我在错误的ViewModel(即ListBoxViewModel)中定义了DisplayInfoCommand的ICommand,而它本应在实际定义了FieldLabel的ListBoxItemViewModel中定义