Silverlight 4 Drag and Drop Alternatives

こ雲淡風輕ζ 提交于 2019-12-11 01:53:40

问题


I want to add the ability to drag a user control from one part of a Silverlight 4 page onto another user control on the same page (not talking about the new Silverlight 4 ability to drag a file from the OS onto the page).

What approach is most straightforward? What approach offers the most flexibility?

Here are some alternatives I found so far

  • SO drag-and-drop-control-for-silverlight. Same question but answers apply to SL 2.
  • Alex van Beek's DragManager. Written for SL3.
  • Silverlight Drag Drop. Also written for SL3.

回答1:


I can't compare all of the options you've listed but if I wanted to implement control to control drag drop feature I would the DragDrop and the DragDropTarget classes from the Silveright Toolkit. Its the only DragDrop framework I know of that has been refreshed for SL4 and if you already use elements from the Toolkit then that would be a natural solution.



来源:https://stackoverflow.com/questions/2762707/silverlight-4-drag-and-drop-alternatives

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