开发者

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开发者_StackOverflow社区 only triggered when the mouse is actualy on my UserControl.

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

Thanks!


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

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜