Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

I'm navigating with the keyboard, and I can't find visually which element has the focus. While debugging I managed to break the execution in a method inside the Window but I don't know which property will reveal the current focused control.

like image 512
Jader Dias Avatar asked Jul 06 '11 16:07

Jader Dias


1 Answers

Use Snoop and look for the events in events tab. Select all the events you want to listen from the events combo box. As you move through your application you can see the tab refreshing with new controls that are receiving those events.

like image 170
anivas Avatar answered Nov 12 '22 07:11

anivas