开发者

controls upon unfocued window doesn't effect on first click

Et least two clicks should be done to click s开发者_如何学编程ome control on unfocused window. Window gets focus on first click and then control gets MouseClick message on second.

Question: Is there possibility to click control on unfocused window by first click?


Just how I'd imagine doing it :

Subscribe to the MouseLeftButtonDown of the parent control, or the outer grid or whatever, then utilize the MouseButtonEventArgs, which have a Target property telling you who it's currently clicking.

Then do whatever clicking the element you wanted clicked yourself ;-)

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜