开发者

Keyboard.FocusedElement is null, what are the possible causes?

开发者 https://www.devze.com 2023-03-18 06:07 出处:网络
While keyboard navigating a WPF app, in one step, between one control and another, the Keyboard.FocusedElement is null. If there is no reference to this property in the code, which methods can cause t

While keyboard navigating a WPF app, in one step, between one control and another, the Keyboard.FocusedElement is null. If there is no reference to this property in the code, which methods can cause this? Is there开发者_StackOverflow中文版 an Unfocus method for any control?


One way this could happen is if focus is on a control and then the Focusable property of that control is set to false. Keyboard.FocusedElement would then be null.

0

精彩评论

暂无评论...
验证码 换一张
取 消