通过Grip在ListView中拖放 [英] Drag and Drop in a ListView via Grip

查看:69
本文介绍了通过Grip在ListView中拖放的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,


我使用XAML和ListView创建了一个Windows 8.1应用程序。它设置了以下属性:AllowDrop =" True"   CanDragItems = QUOT;真" CanReorderItems = QUOT;真" ;.使用鼠标,拖放效果非常好。


现在我希望用鼠标代替鼠标。因此,抓住鼠标应该可以放下鼠标。移动手柄是拖动并释放手柄释放鼠标。


所有其余的都工作,所以我看到我的手,我可以用手按下列表视图中的项目。如果列表视图有滚动条,我可以用夹点移动内容。但拖放项目不起作用。 


我已经看到有Kinect和拖放的示例。但是他们使用绘图画布实现自己的控件并实现整个拖放操作。我想只使用拖放重用构建而不是鼠标使用手。


我使用Kinect SDK 2.0。


是否有简单的解决方案?


谢谢。

解决方案

看看这个主题:
https://social.msdn.microsoft.com/Forums/en-US/970aa6d7-da26-4dc1-9445-90d09d6a15eb/doing-drag-drop-with-handpointers?forum=kinectv2sdk

Hello,

I created a Windows 8.1 app with XAML and a ListView. It has set the following properties: AllowDrop="True"   CanDragItems="True" CanReorderItems="True". With the mouse the drag and drop works perfectly.

Now I would like that instead of the mouse I use the hand. So making a grip should do the mouse down. Moving the grip is dragging and releasing the grip is releasing the mouse.

All the rest is working, so I see my hand, I can press an item in the listview with the hand. In case the listview has a scrollbar I can move the content with the grip. But drag and drop of an item does not work. 

I have seen there are examples with Kinect and drag+drop. But they implement own controls with drawing canvas and implementing the whole drag and drop stuff. I would like to reuse the build in drag and drop only instead of mouse use the hand.

I use Kinect SDK 2.0.

Is there an easy solution?

Thanks.

解决方案

Have a look at this thread: https://social.msdn.microsoft.com/Forums/en-US/970aa6d7-da26-4dc1-9445-90d09d6a15eb/doing-drag-drop-with-handpointers?forum=kinectv2sdk


这篇关于通过Grip在ListView中拖放的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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