SaphuA
SaphuA

Reputation: 3150

Silverlight mouse button up outside control

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!

Upvotes: 2

Views: 979

Answers (1)

Will A
Will A

Reputation: 24988

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

Upvotes: 2

Related Questions