开发者

WPF: Adorner not receiving any keyboard events

I have an Adorner and I want that Adorner to be able to receive keyboard events, but I'm having problems with those whole focus stuff. Can somebody please tell, what has to be done to make an adorner able to receive keyboard events? Thank you v开发者_运维百科ery much for any help!


Here's the solution:

adorner.Focusable=true;
Keyboard.Focus(adorner);
0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜