Click here to Skip to main content
16,011,608 members
Please Sign up or sign in to vote.
1.11/5 (2 votes)
See more:
C#
I want to know that what is the difference between GotFocus and GotKeyboardFocus in wpf?


What I have tried:

I am trying to open and close a Popup by setting a property: IsDropDownOpen just like a ComboBox through the GotFocus and LostFocus events.
Posted

 
Share this answer
 
From the first Google result when searching for "wpf gotfocus vs gotkeyboardfocus[^]":

WPF has 2 concepts regarding focus. There is the physical keyboard focus, and there is logical focus.

Only one element can have keyboard focus (and if the application isn't the active application, no element will have keyboard focus).

Multiple items can have logical focus.
 
Share this answer
 

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