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 ;-)
精彩评论