开发者

Silverlight mouse button up outside control

开发者 https://www.devze.com 2023-01-06 12:54 出处:网络
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.

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

精彩评论

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