其他分享
首页 > 其他分享> > WPF Beginner - Preview Event & Bubble Event

WPF Beginner - Preview Event & Bubble Event

作者:互联网

原文链接:http://www.cnblogs.com/pangpangxiong/archive/2009/08/18/1548877.html I am still confused about these 2 concepts.

Extracted from MSDN:

One frequent application of routed events within the WPF platform is for input events. In WPF, tunneling routed events names are prefixed with the word "Preview" by convention. Input events often come in pairs, with one being the bubbling event and the other being the tunneling event. For example, the KeyDown event and the PreviewKeyDown event have the same signature, with the former being the bubbling input event and the latter being the tunneling input event. Occasionally, input events only have a bubbling version, or perhaps only a direct routed version. In the documentation, routed event topics cross-reference similar routed events with alternative routing strategies if such routed events exist, and sections in the managed reference pages clarify the routing strategy of each routed event.


Try to add preview mouseleftbuttondown and mouseleftbuttondown, see what will happen?

转载于:https://www.cnblogs.com/pangpangxiong/archive/2009/08/18/1548877.html

标签:event,being,Event,input,WPF,Preview,events,routed
来源: https://blog.csdn.net/weixin_30375427/article/details/99239687