Explain routed events in WPF?


Routed events are those events which travel up or down the visual tree hierarchy. WPF events can be classified in to 3 types:-

Direct events: – In this case event is raised at the source and handled at the source itself like
“MouseEnter” events.

Bubbling events: – They travel up the visual tree hierarchy. For example “MouseDown” is a bubbling event.

Tunneling events: – These events travel down the visual tree hierarchy. “PreviewKeyDown” is a tunneling event.

Routed Events in WPF

Routed Events in WPF