I know there is a mouse click event for every control but is there a way to determine when the mouse click is not on the control?
A:
you can check the IsMouseOver for false, and if you want to hook an action when the IsMouseOver == false, you can override the metadata of that dp.
abdelkrimnet
2009-06-20 22:53:41
A:
You can call CaptureMouse and then that object will receive all mouse events. You can then determine from the point of the mouse down whether it was within the bounds of your control or not. Or you can listen for the LostMouseCapture event instead.
Alex
2009-09-11 18:57:28