EditCategory
Routed Events
EditQuestion
Is there a naming convention for Routed Events?
EditAnswer
Yes. While the naming convention is not formal nor enforced, it is suggested to prefix "Preview" to any Tunneling event. No such prefix exists for Bubbling events.
This prefix lets you identify the routing strategy of a routed event without having to see its declaration.
Also, this naming convention reflects the fact that most of the routed events already implemented will have a Tunneling event raised right before a Bubbling event is raised, hence the name "Preview".
Example:
A "PreviewMouseDown" event is always raised right before a "MouseDown" event occurs.
This lets the ancestors of the element actually receiving the mouse down intercept the event and react to it.
Generally speaking, if a "Preview" event is marked as handled, the Bubbling counterpart will not occur.
EditKeywords
preview, tunneling, tunnel, routed event