Drag'n'Drop可排序列表框Windows Phone 7 [英] Drag'n'Drop sortable Listbox für Windows Phone 7

查看:184
本文介绍了Drag'n'Drop可排序列表框Windows Phone 7的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在Windows Phone 7应用程序中,我收到一个包含几个项目的ListBox。我希望用户能够通过触摸并拖动它们(在ListBox模板的左侧)对列表框中的项进行排序。

In a Windows Phone 7 application I got a ListBox containing a few items. I want the user to be able to sort the items in the ListBox by just touching and dragging them (on the left part of the ListBox template).

我将如何实现这个?有没有一个标准的方法或控制来获得这种拖放功能(最好是甚至使用动画)在Windows Phone 7?

How would I implement this? Is there a standard way or control to get this kind of drag and drop functionality (preferably even with animation) on Windows Phone 7?

还是有一些其他控件/面板哪个比ListBox更好用?

Or is there some other control / panel which is better to use than ListBox?

推荐答案

我在寻找同样的东西。这似乎是你必须编写自己的代码。在这个时候,没有标准的控件可用。

I was looking for the same thing. It seems to be that you have to write your own code. At this time there is no standard control available.

可能你会在这里找到一些提示:
http: codeproject.com/KB/silverlight/SL4DragDropListBox.aspx?pageflow=Fluid&fid=1572066&df=90&mpp=25&noise=3&sort=Position&view=Quick

Probably you will find some hints here: http://www.codeproject.com/KB/silverlight/SL4DragDropListBox.aspx?pageflow=Fluid&fid=1572066&df=90&mpp=25&noise=3&sort=Position&view=Quick

这是一个Silverlight 4实现。

It's a Silverlight 4 implementation.

这篇关于Drag'n'Drop可排序列表框Windows Phone 7的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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