Is there a way to watch WPF Routed Events?

debugging, routed-events, wpf

Solution

Yes, but it requires some reflection. You're better off using a tool like Snoop that already does the hard lifting for you.

In the tab Events you can see list of events, and the element that handled it.

Problem

I was wondering if there's a way to watch all RoutedEvents that are raised in a WPF application. A way to write some info about the events fired to the console would be prefect to see what's going on.

Original source