WPF - Is there a way to cause a UI element to lose

2019-07-30 10:34发布

I would like to add an IsFocused property to a custom textbox that I am working on, is there any way to do this?

1条回答
Deceive 欺骗
2楼-- · 2019-07-30 11:27

Unless I'm mistaken something always has to be in focus. That being said you can Focus to a label or some non-editable/non-selectable element if you need. Or you can focus another application.

In general, however, something is always in focus.

查看更多
登录 后发表回答