开发者

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 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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜