页面上有多个 ListBoxDragDropTargets 会导致性能不佳
我正在开发一个 Silverlight 应用程序,其中用户需要能够从单个源列表框中拖动项目并将其放入任意大量目标列表框中。我使用 ListBoxDragDropTargets 进行此工作,但性能相当差。
具体来说,存在两个问题:
- 发生拖动时,它会占用大部分处理器时间
- 第一次拖动某个项目时,装饰器需要 1-2 秒才能出现并开始拖动操作。
这些问题是 Silverlight 工具包的拖放实现所特有的吗?还是可以采取一些措施来提高性能?
I'm working on a Silverlight application in which a user needs to be able to drag an item from a single source ListBox and drop it into any of a significant number of target list boxes. I have this working using ListBoxDragDropTargets, but the performance is quite poor.
Specifically, there are two problems:
- It uses a large portion of the processor time while a drag is occurring
- When an item is dragged for the first time, it takes 1-2 seconds for the adorner to appear and for the drag operation to start.
Are these issues endemic to the Silverlight toolkit's drag and drop implementation, or is theres something that can be done to improve the performance?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论