I want to get notified when I click a window in WPF (I use the GotFocus event), but it only triggers when I click on a Combobox in the window. What I want is to get notified when the the window or any of the controls in the window is clicked. Any ideas of how to do this?
A:
You could try the IsKeyboardFocusWithinChanged
event. It should trigger when the keyboard focus is taken by an element of the window, or when it is taken by another window
Thomas Levesque
2009-08-01 19:22:28