Is there a way to figure out which control in my visualtree has focus? This is mostly for debugging.
Finding out which control has focus [duplicate]
Asked Answered
every control has a property HasFocus. You might use it in some way to figure your requirements –
Flemming
The namespace is System.Windows.Input and is part of the PresentationCore.dll assembly. –
Berkley
as described here link
FocusManager.GetFocusedElement()
requires the focus-scope as parameter. I used FocusManager.GetFocusedElement(this)
–
Hadji © 2022 - 2024 — McMap. All rights reserved.