How to find out which element has focus when debugging WPF?

I look through the keyboard and I do not visually see which element has focus. During debugging, I managed to break the execution in the method inside the window, but I don’t know what property the current focused control will display.

+4
source share
1 answer

Use Snoop and find the events in the events tab. Select all the events you want to listen to from the list of events. When you navigate your application, you can see that the tab is being updated with new controls that receive these events.

+13
source

All Articles