如何在MVVM中引发Label的MouseUp事件

时间:2014-06-16 11:43:35

标签: wpf mvvm

我想在MVVM中引发Label的MouseUp事件。但我给了我错误"会员无法访问或无法识别" 。请告诉我错误的地方

<Label Content="UserName" MouseBehaviours:MouseBehaviour.MouseUpCommand="{Binding MouseUpCommand}"   Height="28" HorizontalAlignment="Left" Margin="40,5,0,0" Name="label1" VerticalAlignment="Top" >
            <i:Interaction.Triggers>
                <i:EventTrigger EventName="MouseUp">
                    <i:InvokeCommandAction Command="{Binding MouseUpCommand}"/>//here i am getting error
                </i:EventTrigger>
            </i:Interaction.Triggers>
        </Label>

0 个答案:

没有答案