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

  1. Run your app.
  2. Run the snoop.
  3. Select your app in the dropdown.
  4. Click on the binocular ("snoop") button.
  5. On the right panel, click on the Events tab.
  6. Click to bring down the dropdown.
  7. Scroll down to the keyboard section and check the GotokiBboard focus, Lost Focus Board, and optionally preview XXX Events.
  8. 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

Popular posts from this blog

c# - sqlDecimal to decimal clr stored procedure Unable to cast object of type 'System.Data.SqlTypes.SqlDecimal' to type 'System.IConvertible' -

Calling GetGUIThreadInfo from Outlook VBA -

Obfuscating Python code? -