Drag and drop right click wpf

亡梦爱人 提交于 2019-12-20 03:49:15

问题


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:


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).



来源:https://stackoverflow.com/questions/1060856/drag-and-drop-right-click-wpf

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!