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?
3 Answers
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