开发者

DataGrid stops handling keyboard events when mouse events are intercepted

开发者 https://www.devze.com 2023-02-20 09:37 出处:网络
I\'ve added code to intercept PreviewMouseLeftButtonUp/PreviewMouseLeftButtonDown events, and after that DataGrid stopped responding to any keyboard commands (row u开发者_JAVA百科p/down, etc)

I've added code to intercept PreviewMouseLeftButtonUp/PreviewMouseLeftButtonDown events, and after that DataGrid stopped responding to any keyboard commands (row u开发者_JAVA百科p/down, etc)

It has keyboard focus, but loses it immediately when I press key up or down.

Why? Any ideas?

0

精彩评论

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