8,757
社区成员
发帖
与我相关
我的任务
分享
<UserControl>
<Grid>
<StackPanel>
<TextBlock />
<TextBox />
<Button />
</StackPanel>
</Grid>
</UserControl>
需要Button在布局控件内,才可进行事件冒泡传递。
详细请看:http://silverlightchina.net/html/developer/silverlight/2013/0122/21582.html
实例代码下载:http://www.silverlightshow.net/Storage/Sources/SilverlightRoutedEvents.zip
<i:Interaction.Triggers>
<i:EventTrigger EventName="MouseLeftButtonDown" SourceName="button">
<ei:ControlStoryboardAction/>
</i:EventTrigger>
</i:Interaction.Triggers>