views:

20

answers:

1

Hello,

I have a made a simple UserControl that allows a user to drag a button around and drop it. It uses MouseLeftButtonDown and MouseLeftButtonUp to start and stop dragging.

The problem is, however, that MouseLeftButtonUp is only triggered when the mouse is actualy on my UserControl.

How can I catch 'global' mouse events on this UserControl?

Thanks!

+1  A: 

Take a look at the CaptureMouse method (Silverlight 3+) here.

Will A
Awesome, thanks!
SaphuA