Silverlight中Eventhandler和Routed事件处理程序之间的区别 [英] Diffrences between Eventhandler and Routed event handler in Silverlight

查看:60
本文介绍了Silverlight中Eventhandler和Routed事件处理程序之间的区别的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Silverlight中事件处理程序和路由事件处理程序之间的区别

Diffrences between Eventhandler and Routed event handler in Silverlight

推荐答案

您可以随时查看msdn网站.
You can always have a look at the msdn website.


这里是一个简单而正确的答案:

EventHandler的第二个参数是EventArgs的实例,而RoutedEventHandler的第二个参数是RoutedEventArgs ...

看起来像这样:
Here is a simple and correct answer:

The second parameter of EventHandler is an instance of EventArgs while the second parameter of RoutedEventHandler is RoutedEventArgs...

It looks like this:
public delegate void EventHandler(object sender, EventArgs e);
public delegate void RoutedEventHandler(object sender, RoutedEventArgs e);





好吧,我知道我给你的答案是没有用的,所以我再给你一个:

我假设您想知道事件路由事件之间的区别.这2篇文章可能对您有帮助:

http://msdn.microsoft.com/en-us/library/ms742806.aspx ( MSDN文章)

http://joshsmithonwpf.wordpress.com/2008/03/18/understanding-routed-commands /(关于路由命令的精彩文章,其中也包含对路由事件的很好的解释)





Ok, I know the answer I gave you is pretty useless, so I''ll give you another one:

I assume you want to know what''s the difference between Events and Routed Events. These 2 articles might help you:

http://msdn.microsoft.com/en-us/library/ms742806.aspx (a MSDN article)

http://joshsmithonwpf.wordpress.com/2008/03/18/understanding-routed-commands/ (a great article about Routed Commands that also contains a very nice explanation of Routed Events)


这篇关于Silverlight中Eventhandler和Routed事件处理程序之间的区别的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆