开发者

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

开发者 https://www.devze.com 2023-03-18 21:46 出处:网络
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 Wi开发者_如何学Pythonndow but I don\'

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 Wi开发者_如何学Pythonndow but I don't know which property will reveal the current focused control.


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消