Difference Between RoutedEventHandler and EventHandler

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-05 01:23:31
rockyashkumar

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

https://msdn.microsoft.com/en-us/library/ms742806(v=vs.100).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)

In short, RoutedEvents are routed. They can bubble up or drill down the visual tree until they hit a handler.

Standard events are just plain direct subscription.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!