Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个 Adorner,我希望该 Adorner 能够接收键盘事件,但是我对那些整个焦点的东西有问题。有人可以告诉,必须做些什么才能使装饰器能够接收键盘事件?非常感谢您的帮助!
这是解决方案:
adorner.Focusable=true; Keyboard.Focus(adorner);