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.
当我在WPF中右键单击开始拖放时,它将触发任何目标上的拖放而不等待鼠标右键出现。
1 个解决方案
#1
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).
要拖动,需要捕获鼠标,这只有在鼠标左键按下时才能实现。请参阅http://msdn.microsoft.com/en-us/library/system.windows.uielement.capturemouse(VS.95).aspx(对于Silverlight,但我认为它类似)。
#1
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).
要拖动,需要捕获鼠标,这只有在鼠标左键按下时才能实现。请参阅http://msdn.microsoft.com/en-us/library/system.windows.uielement.capturemouse(VS.95).aspx(对于Silverlight,但我认为它类似)。