Drag and drop right click wpf

后端 未结 1 2003
既然无缘
既然无缘 2021-01-23 11:11

When I start a drag and drop using a right click in WPF it will fire the drop on any target with out waiting for the right mouse button to come up.

1条回答
  •  走了就别回头了
    2021-01-23 11:24

    To drag, the mouse needs to be captured, which can only be achieved when the left mouse button is down. See http://msdn.microsoft.com/en-us/library/system.windows.uielement.capturemouse(VS.95).aspx (for Silverlight, but I think it's similar).

    0 讨论(0)
提交回复
热议问题