Silverlight 4拖放替代品 [英] Silverlight 4 Drag and Drop Alternatives

查看:132
本文介绍了Silverlight 4拖放替代品的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想添加将用户控件从Silverlight 4页面的一部分拖到同一页面上的另一个用户控件上的功能(不要说新的Silverlight 4将文件从操作系统拖到页面上) 。

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.

推荐答案

我无法比较您所有的选项列出,但如果我想实现控件来控制拖放功能,我将从Silverlight中获取 DragDrop DragDropTarget 类工具包。它是我知道的唯一的DragDrop框架,它已被刷新为SL4,如果您已经使用Toolkit中的元素,那将是一个自然的解决方案。

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.

这篇关于Silverlight 4拖放替代品的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆