失去了对用户控制的关注 [英] Lost focus on usercontrol
本文介绍了失去了对用户控制的关注的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一个包含TextBox的UserControl。我想注册UserControl的LostFocus,这意味着如果用户按下我的UserControl,应该调用该事件。我该怎么做?
I have a UserControl that contain TextBox's. I want to register to LostFocus of the UserControl, that mean that if the user press out of my UserControl the event should be called.How can I do this?
推荐答案
UserControl没有,但Window有一个名为Deactivated的事件。因此,如果用户按下该窗口,您将被解雇。
这符合我的目的。可以试试..(y)
UserControl doesn't but Window have a Event called "Deactivated". So if user press out of that window, you event will be fired.
That served my purpose. Can try.. (y)
这篇关于失去了对用户控制的关注的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文