Click here to Skip to main content
15,897,273 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have a WPF application that has a parent Grid, a child StackPanal. The StackPanel has two child ComboBoxes. I am trying to trigger two events on each of the comboboxes: GotKeyboardFocus and PreviewLostKeyboardFocus. The issue is, the PreviewLostKeyboardFocus appears to trigger before the respective combobox has focus. It doesn't matter which one I click on, the PreviewLostKeyboardFocus event is triggered immediately followed by the GotKeyboardFocus. Does this behavior have something to do with routed events?
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900