.net - Any tips on debugging focus issues in WPF? -
Specifically, I have a button that opens a non-modal hair window in the main window something in the child's window Opens away as if it opens up
The entire general approach is to comment on some parts of the code until the problem is resolved. I am looking for ways to speedily.
I am using to do this now.
For the beginning, the snop shows the current concentrated element in the status bar and the current focusoscope.
You can get it to show all GotFocus and LostFocus events:
- Run your app.
- Run the snoop.
- Select your app in the dropdown.
- Click on the binocular ("snoop") button.
- On the right panel, click on the Events tab.
- Click to bring down the dropdown.
- Scroll down to the keyboard section and check the GotokiBboard focus, Lost Focus Board, and optionally preview XXX Events.
- You can track Focus Manager events in the same way, what you need to do now to manipulate the focus and see the snoop window.
By the way.
Comments
Post a Comment