I have a user control that consists of a dockpanel, inside of which are a textbox, a stack panel (containing two user controls), and another user control. I am handling the LostFocus event for the dockpanel. Since LostFocus deals with Logical
Focus in WPF parlance, one would logically (pun intended) assume that if one was to click anywhere inside the dockpanel, the LostFocus event should NOT be fired for that control. However, it appears that If I click anywhere outside of the textbox in
the dockpanel, the LostFocus event is fired. I am not using custom focus scopes since there are multiple of these user controls in my WPF window and I only want one of them to have focus at any given time.
I've read many blogs and articles on WPF focus issues and so far nothing has worked. Any help would be highly appreciated.
View Complete Post