按钮单击事件未触发 [英] button click Event is not firing
本文介绍了按钮单击事件未触发的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
<Button Content="Play" Width="80" Height="30" Canvas.Left="2" Canvas.Top="210" Grid.Row="1" Grid.Column="0">
<i:Interaction.Triggers>
<i:EventTrigger EventName="Click">
<i:InvokeCommandAction Command="{Binding PlayVideoCommand}" CommandParameter="{Binding ElementName=mediaElement}"/>
</i:EventTrigger>
</i:Interaction.Triggers>
</Button>
这是代码.这里的按钮点击事件没有触发..为什么?请帮助我..
This is the code. Here button click event is not firing.. why? Plz help me..
推荐答案
^ ]
http://www.silverlightshow.net/items/在Silverlight-2-Beta-1.aspx中使用按钮控件 [
http://www.c-sharpcorner.com/uploadfile/mahesh/programmatically-trigger-events-of-a-control-in-silverlight/[^]
http://www.silverlightshow.net/items/Using-the-Button-control-in-Silverlight-2-Beta-1.aspx[^]
这篇关于按钮单击事件未触发的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文